-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
CUDA build fails #2177
Comments
Probably, I think it seems necessary to switch between if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.8 OR (MSVC AND (CMAKE_VERSION VERSION_GREATER_EQUAL 3.9)))
# use add_executable()/add_library()
else()
# use cuda_add_executable()/cuda_add_library()
endif() |
I tried replacing
There might be a few more things to change, unfortunately I don't understand cmake good enough to know what to modify. Here they describe a bunch of changes to get tensorflow to build, how can this be adapted here? |
Hi, I'm currently dealing issues of my own that I'm running into with CUDA 9 and stumbled upon this issue, I'm just popping by to say that switching between
The error message you posted is not helpful though. I'm not very familiar with building from VS, but if you can find a way to get a more verbose build output and post the underlying error, I'll take a look at it and integrate the fix in #2181 if I can find one. |
Thanks for looking into that. The comment above was already the output from the diagnostic build. I have attached a bit more and attached the pcl_cuda_features.log file, from the first project that failed.
Here again my setup:
Let me know if you need any other information or log files. |
That's good, but that looks like it's only Visual Studio/MSBuild logs, I don't see any output from NVCC here. There are the following lines in your first message: |
I tried to build PCL 1.8.1-Dev with Windows 10, VS 2017, CUDA 9.1 without success too. In these forums I found that there are incompatibilities between VS17 x CUDA91: These orientations from the first forum worked to me:
|
Hi, thanks a lot for the tip, tried that but also encountered some problems. Do you compile with cmake (if so which version) and any specific settings, eg. changing the path to CUDA_HOST_COMPILER? And what version of Visual Studio do you have (15.4, 15.5.?)? |
OK that would explain why it works for me then, since I'm using the 2015 toolset. @cwule The way to do that with CMake is to start a VS2017 command shell loading the VS2015 toolset (A command along the lines of |
I used vs 15.4 and CMake 3.10. I didn't change the CUDA_HOST_COMPILER. |
I might have to install VS 15.4, tried all these tips (I have 15.5.3, a bit tricky to reverse to a previous version without reinstalling) and only the cuda builds keep failing. But from looking around, you are right, it seems to be a cuda and visual studio issue, not a pcl issue. |
Please re-open if there is an evidence that the problem is on the PCL side. |
Incompatibilities between VS2017 x CUDA9.2 |
Build of pcl_cuda projects fails with
Error msg:
The rest of the projects builds fine.
A similar problem is described here, so I wonder whether it has to do with changes in cmake 3.9 with respect to cuda?
The text was updated successfully, but these errors were encountered: