-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Macro redefinition on windows with CUDA #2603
Comments
Same here with CUDA 12 and Visual Studio 2022. |
Can you check if the linked commit fixes your issue? |
It "works" but I have another error now:
Looks like these pragma were introduced in CUDA 11.5 I can propose a fix, if you want |
Yeah I don't have access to nvcc, so PRs are welcome. |
Describe the bug
Building my project on MSVC + CUDA, I have some CUDA tests (e.g.
test_foo.cu
) that are compiled with nvcc.Compilation of these files fail with this error:
The problem is indeed that both
_MSC_VER
and__CUDACC__
are defined for these files.Platform information:
Relates to: #2307
The text was updated successfully, but these errors were encountered: