-
-
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
ordered_json::reset() compile error with nvcc #3013
Comments
Thanks for reporting. We really need an NVCC running in our CI - see also #2676. We have nvcc 10.1.243 in our Docker image (https://github.com/nlohmann/json-ci), but so far failed to properly build the library with it. Is there a way to build the test suite with it? |
We now added NVCC to the CI. I added your code example to check if I can reproduce the issue. |
I can reproduce your findings:
I am, however, not sure if this is actually an error, because |
I suggest using NVCC 11.0 or later in the CI. Older versions have a very poor support of C++ and parser fails in reading template notations. CUDA officially supports C++-17 starting version 11.0. |
We use 11.0.221 in the CI. |
Thanks for the fix 🎉 Just as x-ref: now also reported as Nvidia bug ID 3487723 (developer.nvidia.com). |
Thanks for checking back! Good to know that it was actually a bug. |
Compiling this code:
with following command:
/usr/local/cuda-11.4/bin/nvcc -I/path/to/nlohmann-json/include/ -c file.cu -o a.out
fails with:
nlohmann json version: 3.9.1
gcc version: 9.3
Tested with nvcc version 11.0, 11.1, 11.2, 11.3, and 11.4 with same error. This code compiles fine with gcc. Possibly an
nvcc
/C++ bug, but there might be a solution in nlohmann/json side?The text was updated successfully, but these errors were encountered: