-
Notifications
You must be signed in to change notification settings - Fork 188
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
[BUG]: Visual Studio 2019 + CUDA <= 11.2 __builtin_is_constant_evaluated
compilation error
#1179
Closed
1 task done
Labels
bug
Something isn't working right.
Comments
11 tasks
miscco
added a commit
to miscco/cccl
that referenced
this issue
Dec 6, 2023
@ptheywood found that there is an unfortunate incompatability of MSVC2019 which does support `__builtin_is_constant_evaluated` from 19.24 onwards and old nvcc below 11.3 which does not. Fix this by hardening the condition we use to detect availability Fixes NVIDIA#1179
@ptheywood thanks a lot for bringing this up. This is indeed a bug that stems from the unfortunate need to manually select features on MSVC. I have opened a PR to fix this |
jrhemstad
pushed a commit
that referenced
this issue
Dec 8, 2023
@ptheywood found that there is an unfortunate incompatability of MSVC2019 which does support `__builtin_is_constant_evaluated` from 19.24 onwards and old nvcc below 11.3 which does not. Fix this by hardening the condition we use to detect availability Fixes #1179
github-actions bot
pushed a commit
that referenced
this issue
Dec 8, 2023
@ptheywood found that there is an unfortunate incompatability of MSVC2019 which does support `__builtin_is_constant_evaluated` from 19.24 onwards and old nvcc below 11.3 which does not. Fix this by hardening the condition we use to detect availability Fixes #1179 (cherry picked from commit f8262e8)
miscco
added a commit
to miscco/cccl
that referenced
this issue
Dec 8, 2023
@ptheywood found that there is an unfortunate incompatability of MSVC2019 which does support `__builtin_is_constant_evaluated` from 19.24 onwards and old nvcc below 11.3 which does not. Fix this by hardening the condition we use to detect availability Fixes NVIDIA#1179
jrhemstad
pushed a commit
that referenced
this issue
Dec 13, 2023
@ptheywood found that there is an unfortunate incompatability of MSVC2019 which does support `__builtin_is_constant_evaluated` from 19.24 onwards and old nvcc below 11.3 which does not. Fix this by hardening the condition we use to detect availability Fixes #1179
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a duplicate?
Type of Bug
Compile-time Error
Component
libcu++
Describe the bug
Compialtion using Visual Studio 2019 (MSVC
19.29.30153.0
, unsure if other versions are effected) encounters compilation errors using CUDA 11.1 and 11.2 (and 11.0, but that's not supported by CCCL).This occurs within the
examples/exmaple_project
example in this repository.How to Reproduce
example/example_project
cmake -B build -S .
cmake --build build
Expected behavior
Successfull compilation of the example
Reproduction link
https://github.com/ptheywood/cccl-is-constant-evaluated-mwe-vs2019
Operating System
Windows with Visual Studio 2019
nvidia-smi output
No response
NVCC version
11.2.152
11.1.105
11.0.221 (but this is unsupported by CCCL)
The text was updated successfully, but these errors were encountered: