-
Notifications
You must be signed in to change notification settings - Fork 287
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
CTranslate2 cmake error when trying to build the code from source with cuda support enabled on Windows. #1697
Comments
Hi, There is an extra blank space in front of
Remove it and try again. |
HI @panosk, |
Ignore these warnings, that's not the problem. Check carefully your variables. I see you are setting
but in the CMake command you are defining
Also, try one step at a time, try to only build without install:
|
Thanks @panosk for pointing it out. I did as suggested. Yet when I perform a fresh cmake, I do get this warning And I'm still facing the same situation where the build never completes. Any thoughts on the same. |
The message is self-explanatory as you are defining cmake -DCMAKE_INSTALL_PREFIX=%CTRANSLATE2_ROOT% -DBUILD_CLI=OFF -DWITH_DNNL=ON -DWITH_CUDA=ON -DWITH_CUDNN=ON -DCUDA_DYNAMIC_LOADING=ON .. |
Thank you @panosk. Reducing the number of flags being passed helped in fixing the issue. Also, I wasn't using CUDA. So removing those flags also helped. |
HI All,
When I try to install CTranslate2 from source on windows with CUDA, I get the below error.
I've installed Intel oneDNN, oneAPI, CUDA and CUDNN.
I'm mostly following the steps provided in prepare_build_environment_windows.sh
Is it because of the updated CMAKE support for CUDA based on Policy CMP0146. unable to proceed with building the code.
Any help or suggestions regarding this is greatly appreciated.
Thanks in advance.
Versions of Software being Used:
Below are the steps to reproduce:
The text was updated successfully, but these errors were encountered: