This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
CUB 1.15.0 compilation errors if included after Windows.h
#422
Labels
compiler: msvc
Specific to the MSVC compiler
P1: should have
Necessary, but not critical.
repro: verified
The provided repro has been validated.
type: bug: functional
Does not work as intended.
Milestone
If
Windows.h
is included prior tocub/cub.cuh
under MSVC compilation will fail with the following:This impacts the use of NVIDIA/Jitify and NVRTC.
nvrtc.h
conditionally includesWindows.h
ifNVRTC_GET_TYPE_NAME
is defined to a non-zero value (as used in Jitify).This only occurs since CUB
1.15.0
with multiple CUDA versions, and only ifWindows.h
is included prior to CUB.It is not due to the min/max macros (checked via
-DNOMINMAX
).I've created a repository to reproduce this, and demonstrate this through GitHub Actions:
https://github.com/ptheywood/cub-1.15-windows.h-demo
The minimal example to reproduce this is:
GitHub Action run with logs valid for 90 days (?): https://github.com/ptheywood/cub-1.15-windows.h-demo/runs/4851931940?check_suite_focus=true
The CUDA 11.6 + CUB 1.15.0 log has been archived at https://gist.github.com/ptheywood/87b821860931bf6a2c700bbe3803d3f4 for longer term storage.
The text was updated successfully, but these errors were encountered: