spec: check: More tightly check CUDA build artifacts versions
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This commit is contained in:
parent
97e8cf1efa
commit
e6fba35f45
1 changed files with 2 additions and 0 deletions
|
|
@ -198,6 +198,8 @@ printf '%%s\n' llama-server llama-simple llama-run llama-mtmd-cli |
|
|||
install -Dp %_cmake__builddir/bin/rpc-server %buildroot%_bindir/llama-rpc-server
|
||||
|
||||
%check
|
||||
( ! cuobjdump --list-elf %buildroot%_libexecdir/llama/libggml-cuda.so | grep -F -v -e .cubin )
|
||||
( ! cuobjdump --list-ptx %buildroot%_libexecdir/llama/libggml-cuda.so | grep -F -v -e .sm_80.ptx -e .sm_52.ptx )
|
||||
# Local path are more useful for debugging becasue they are not stripped by default.
|
||||
%dnl export LD_LIBRARY_PATH=%buildroot%_libdir:%buildroot%_libexecdir/llama PATH+=:%buildroot%_bindir
|
||||
export LD_LIBRARY_PATH=$PWD/%_cmake__builddir/bin PATH+=:$PWD/%_cmake__builddir/bin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue