[BUG]: thrust/execution_policy.h is not safe to include without cuda runtime available #3483
Open
1 task done
Labels
bug
Something isn't working right.
Is this a duplicate?
Type of Bug
Compile-time Error
Component
Thrust
Describe the bug
Including the execution_policy.h file in a TU being compiled by a host compiler without the CUDA runtime libraries present triggers an immediate compile error:
How to Reproduce
With this CMake:
and this C++ file
running
cmake -S . -B build/ && cmake --build build/
is sufficient to trigger the compilation error.Expected behavior
Thrust should be safe to include in host TUs without the CUDA libraries available.
Reproduction link
No response
Operating System
Ubuntu Linux 24.04
nvidia-smi output
N/A (not using GPU)
NVCC version
N/A (not using nvcc)
The text was updated successfully, but these errors were encountered: