-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
compilation issue with NVCC 9.0 #1773
Comments
If this is only on the host side, consider using a CMake External Project and linking to your JSON libraries (I have several and use): If you are supporting it on the GPU side, I had no luck there. |
In order to asses your issue, we need the following information:
|
We are using a Kokkos and ours is only needed on the host; we (eventually) got around this around this by adding the CMake line to specify that this will only run on the host to the nvcc_wrapper Currently we are NOT using JSON for GPU/GPU or CPU/GPU communications. |
@palebluedot19 What nvcc version are you using? Are you able to compile tests with it? |
We use nvcc 9.2 as that is the highest that Kokkos supports at this time. I have not tried to run any of the nlohmann tests. We are using only a very limited number of features for input file parsing at this time. |
It is nvcc 9.0. Yes, I am able to compile tests. I think that tests are compiled using g++/gcc. |
I want to the json parser in a source file containing CUDA. So I need to use nvcc to compile the source code. During the compilation, the above error messages pop up. If I remove all the device code and rename the source file with cpp suffix, the code compiles. I have tried nvcc 9.0 and 10.1 on Ubuntu 16.04. Neither of the two works. Here is the hash for the version I used, ce3a76d959f81263f5847392d60d12b4b63f1712. Yes, I can compile and run the unit tests. |
Sorry. I sent you wrong hash for the repo. I used the version in develop branch. Sorry again for my mistake on the version. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Related to #1347. |
I am not using nvcc myself, so I may have tried the wrong thing. But I can compile and run the test suite on macOS with
with
(after removing all but |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Was this issue ever fixed? I'm encountering the same issue with 3.9.1 (CUDA 10.1), when a |
@minitu I could not find a way to solve it. What I did is putting CUDA source files in a separate compilation unit. I call the kernel through a driver. |
Can someone help me to solve the compilation errors? I compiled a simple test source code with g++. The code does compile successfully. However, I get error messages (see below) if I compile the same code with nvcc.
The text was updated successfully, but these errors were encountered: