-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Build] build from source with cuda12.2 failed #19328
Comments
here is my nvcc info:
|
Here is my build script:
You may try set CudaToolkitDir environment variable. |
In the build folder this a folder named "CMakeFiles" which has more detailed logs that can tell us why compiling "CMakeCUDACompilerId.cu" failed . And, please provide the ONNX Runtime's source code version. If you were using the main branch, try to update it. yesterday I just merged an important change for the build system. |
@tianleiwu @snnn I just reinstall cuda into the default location,and this error gone.thanks |
I finally got my whl file,as 'onnxruntime_gpu-1.18.0-cp310-cp310-win_amd64.whl'.But when i install it to inference i got an error, can you help?
|
@Gpwner, that error means cuda architecture is not matched. You need change |
yeah,it works.thank you very much |
Describe the issue
Hi,I have notice that 'Not officially supporting CUDA 12’.But I want to have a shot.here come a problem:
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Urgency
yes it is urgent
Target platform
windows11
Build script
.\build.bat --config RelWithDebInfo --build_wheel --compile_no_warning_as_error --skip_submodule_sync --use_cuda --cuda_home D:\\CUDA12.2 --cudnn_home D:\\CUDA12.2 --cuda_version=12.2 --nvcc_threads 1 --cmake_generator "Visual Studio 17 2022"
Error / output
Visual Studio Version
Visual Studio community 2022 (17.8.5)
GCC / Compiler Version
(onnx) D:\onnxruntime>cmake --version cmake version 3.28.1 CMake suite maintained and supported by Kitware (kitware.com/cmake).
The text was updated successfully, but these errors were encountered: