-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Bug: failed compile rocm build on windows using cmake #7743
Comments
Try deleting the |
cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLAMA_HIPBLAS=ON -DLLAMA_OPENOP=OFF -DCMAKE_C_COMPILER="C:/Program Files/AMD/ROCm/5.7/bin/clang.exe" -DCMAKE_CXX_COMPILER="C:/Program Files/AMD/ROCm/5.7/bin/clang++.exe" -DAMDGPU_TARGETS="gfx1100" CMake Warning:
I remove everything in the cmake folder, it does not help. |
Sorry, the correct flag is |
ye, I think it work with openmp off |
It seems like OpenMP is broken for rocm on windows even cmake said it support it my both of my system. |
It might work on a more recent version of ROCm, but it won't make a difference unless you are partially offloading a model or using nkvo. |
I can confirm this issue happens in my case too. Maybe, perhaps, |
Use E.g.
This has compiled for me with x64 Native VS 2022 on current master. Change target to whatever you got. |
(ggerganov#9666) Fix the compilation error "call to undeclared function '_mm256_dpbusd_epi32'". The function _mm256_dpbusd_epi32 is defined in avxintrin.h, while _mm256_dpbusd_epi32 is defined in avx512vlvnniintrin.h. Therefore, __AVX__, __AVX512VNNI__, and __AVX512VL__ need to be defined. According to (ggerganov#7743), DGGML_OPENMP=OFF is needed to add, so adding it in doc.
What happened?
cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLAMA_HIPBLAS=ON -DCMAKE_C_COMPILER="C:/Program Files/AMD/ROCm/5.7/bin/clang.exe" -DCMAKE_CXX_COMPILER="C:/Program Files/AMD/ROCm/5.7/bin/clang++.exe" -DAMDGPU_TARGETS="gfx1100"
Name and Version
version 3083 rocm 5.7
What operating system are you seeing the problem on?
Windows11
Relevant log output
The text was updated successfully, but these errors were encountered: