Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile for HIPBLAS ( undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case ) #2247

Open
mega-ice opened this issue Jun 19, 2024 · 0 comments

Comments

@mega-ice
Copy link

ROCm: 6.1.2
Ubuntu 6.5.0-41-generic / Ubuntu 22.04.4 LTS
RDNA3 GPU
commit bf4cb4a

i have tried to compile it with cmake or make, and i get the same error.
CC=/opt/rocm/llvm/bin/clang CXX=/opt/rocm/llvm/bin/clang++ cmake -DWHISPER_HIPBLAS=ON -DCMAKE_CXX_FLAGS="--offload-arch=gfx1100"
OR
CXX=hipcc CC=hipcc cmake -DWHISPER_HIPBLAS=ON -DAMDGPU_TARGETS="gfx1100" -DBUILD_SHARED_LIBS=ON ../whisper.cpp
OR
WHISPER_HIPBLAS=1 make -j8

.
.
[ 74%] Built target whisper
[ 76%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o
[ 78%] Building CXX object examples/CMakeFiles/common.dir/common-ggml.cpp.o
[ 80%] Building CXX object examples/CMakeFiles/common.dir/grammar-parser.cpp.o
[ 82%] Linking CXX static library libcommon.a
[ 82%] Built target common
[ 85%] Building CXX object examples/main/CMakeFiles/main.dir/main.cpp.o
[ 87%] Linking CXX executable ../../bin/main
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<64, 32, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<64, 8, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<64, 16, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<64, 16, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<64, 32, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<80, 32, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<96, 32, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<112, 32, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<128, 32, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<80, 16, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<96, 16, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<112, 16, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<128, 16, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<256, 16, float>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<80, 16, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<96, 16, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<112, 16, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<128, 16, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<256, 16, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: void ggml_cuda_flash_attn_ext_wmma_f16_case<96, 8, __half>(ggml_backend_cuda_context&, ggml_tensor*)

referenced by ../../libwhisper.so.1.6.2

ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant