-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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, C++14, and GCC 6+ #1080
Comments
Not sure. The definition of Line 274 in c21c6b8
|
I’m going to keep investigating. I will report here with what I find. So far, GCC 4.8 + C++11 works, and GCC 6 + C++14 fails. A simple example seems to work fine, so it’s seems to be a change in behavior somewhere else |
@henryiii, have you figured out what the problem is? |
I've got two users who have seen this issue; one verified that if you rebuild everything with C++11 even with GCC 6, it works. So it's the change from 11 to 14 that triggers the issue. That's all I have so far, I've been traveling most of this month and will still be out till the 8th of April. |
Closing since I don't think it's a bug in the library, but a PR to workaround the issue would be welcome. |
OK, I’ll let you know if I find out anything. |
Using the latest bit from the master branch, my project (not using CUDA) broke with Microsoft C++ compiler Version 19.21.27702.2 for x64.
|
Removing the template parameter in the definition seems to fix all of them but I don't know enough about the library and its testing to confirm this does not have an unwanted side-effect. For example:
|
Line 11 in 5b7bbf8
@yves-dolce, how do you link with {fmt}? |
Including the fmt header seems to kill nvcc compiling device code; I believe even if fmt is not used. This only starts happening if C++14 is turned on for host and device code (requires CUDA 9 or better).
Any ideas? I expect another check for CUDA needs to be added to the 1-2 that are already there.
fmt 5.3. Adding as subdirectory in CMake. I have not been able to reproduce this yet in a small example.
The text was updated successfully, but these errors were encountered: