Windows build w/ CUDA failing #23704
Unanswered
carsonswope
asked this question in
EP Q&A
Replies: 2 comments 2 replies
-
Hi, are you putting the root directory of cuda ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
There are the commands that I successfully used today to build with CUDA on Windows (using the latest changes on the main branch):
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to build locally on windows with CUDA enabled. It fails with this error:
(Note I downloaded my own copy of the CUDA SDK and put it in the build directory, and passed that path to
build.bat
via--cuda_home
argument, so the path shown above is as expected)I see that the
CMAKE_CUDA_COMPILER
variable is set inbuild.py
here:onnxruntime/tools/ci_build/build.py
Line 1290 in da6b950
Which I see was changed from this commit: #20987
This change seems reasonable enough on linux, but on windows executables are
.exe
files. If I changebuild.py
to add a'.exe'
to the end of the nvcc path, then it works fine on windows, as the provided path now is the full path to nvcc.But clearly the CI windows build haven't been broken for 6 months.. So what am I missing?
Beta Was this translation helpful? Give feedback.
All reactions