-
Notifications
You must be signed in to change notification settings - Fork 447
Fix segmented sort compilation in case of windows.h #423
Fix segmented sort compilation in case of windows.h #423
Conversation
@@ -42,5 +42,6 @@ | |||
// projects build with NOMINMAX this doesn't seem to be high priority to fix. | |||
//#define min(...) CUB_MACRO_CHECK('min', windows.h) | |||
//#define max(...) CUB_MACRO_CHECK('max', windows.h) | |||
#define small CUB_MACRO_CHECK('small', windows.h) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you push a PR to add this to Thrust, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, here it is!
8426302
to
c6e338d
Compare
Rebased to pull in CI fixes. |
gpuCI: NVIDIA/thrust#1594 |
Which CUDA version will incorporate this modification? |
The remaining CUDA 11.X releases will ship CUB 1.15.X. Regular updates of Thrust and CUB in CTK will resume after the next major version bump, so this patch (which landed in CUB 1.16) will be available in CTK 12. |
@senior-zero I am hitting this issue with CUDA 11.8 on Visual Studio 2022 (v143), how do I resolve this issue for that when apparently CUB 1.16 is only first available in CUDA 12.x? If I understand this correctly?
|
Including the following at top of file where this was causing the issue (or in stdafx.h) appears to resolve.
|
This PR fixes the issue related to device segmented sort compilation in the presence of windows.h header.