Skip to content

Commit 3f6ec0b

Browse files
Use arch dispatch workaround on GCC 7-8 as well (#7349)
Fixes: NVBug 5838921
1 parent 9e72637 commit 3f6ec0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cub/cub/device/dispatch/dispatch_radix_sort.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,8 @@ public:
11531153
return __invoke_single_tile(kernel_source.RadixSortSingleTileKernel(), policy.single_tile);
11541154
}
11551155

1156-
#if _CCCL_COMPILER(GCC, <, 8)
1157-
// gcc 7 fails to use `policy` in a constant expression, so we just compute it again inplace
1156+
#if _CCCL_COMPILER(GCC, <, 10)
1157+
// gcc 7-9 fail to use `policy` in a constant expression, so we just compute it again inplace
11581158
if CUB_DETAIL_CONSTEXPR_ISH (PolicyGetter{}().use_onesweep)
11591159
#else // _CCCL_COMPILER(GCC, <, 8)
11601160
if CUB_DETAIL_CONSTEXPR_ISH (policy.use_onesweep)

0 commit comments

Comments
 (0)