Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 13707fb

Browse files
committed
Use constexpr if in case it's available
1 parent 83eaecc commit 13707fb

File tree

1 file changed

+3
-3
lines changed
  • thrust/system/cuda/detail

1 file changed

+3
-3
lines changed

thrust/system/cuda/detail/sort.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ namespace __merge_sort {
7777
return cudaSuccess;
7878
}
7979

80-
if (STABLE::value)
80+
THRUST_IF_CONSTEXPR(STABLE::value)
8181
{
82-
if (SORT_ITEMS::value)
82+
THRUST_IF_CONSTEXPR(SORT_ITEMS::value)
8383
{
8484
return cub::DeviceMergeSort::StableSortPairs(d_temp_storage,
8585
temp_storage_bytes,
@@ -103,7 +103,7 @@ namespace __merge_sort {
103103
}
104104
else
105105
{
106-
if (SORT_ITEMS::value)
106+
THRUST_IF_CONSTEXPR(SORT_ITEMS::value)
107107
{
108108
return cub::DeviceMergeSort::SortPairs(d_temp_storage,
109109
temp_storage_bytes,

0 commit comments

Comments
 (0)