Skip to content

Commit 40e339a

Browse files
committed
Strips any refs to determinism
1 parent 080bb34 commit 40e339a

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

cub/cub/device/device_merge_sort.cuh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <cub/device/dispatch/dispatch_merge_sort.cuh>
1919
#include <cub/util_namespace.cuh>
2020

21-
#include <cuda/__execution/determinism.h>
2221
#include <cuda/__execution/require.h>
2322
#include <cuda/std/__execution/env.h>
2423

@@ -241,7 +240,6 @@ public:
241240
//! - Stream: Query via ``cuda::get_stream``
242241
//! - Memory resource: Query via ``cuda::mr::get_memory_resource``
243242
//!
244-
//! - This operation provides ``run_to_run`` determinism.
245243
//! - SortPairs is not guaranteed to be stable.
246244
//!
247245
//! Snippet
@@ -296,17 +294,6 @@ public:
296294
{
297295
_CCCL_NVTX_RANGE_SCOPE(GetName());
298296

299-
static_assert(!::cuda::std::execution::__queryable_with<EnvT, ::cuda::execution::determinism::__get_determinism_t>,
300-
"Determinism should be used inside requires to have an effect.");
301-
using requirements_t = ::cuda::std::execution::
302-
__query_result_or_t<EnvT, ::cuda::execution::__get_requirements_t, ::cuda::std::execution::env<>>;
303-
using determinism_t =
304-
::cuda::std::execution::__query_result_or_t<requirements_t,
305-
::cuda::execution::determinism::__get_determinism_t,
306-
::cuda::execution::determinism::run_to_run_t>;
307-
static_assert(!::cuda::std::is_same_v<determinism_t, ::cuda::execution::determinism::gpu_to_gpu_t>,
308-
"gpu_to_gpu determinism is not supported for unstable sort. Use StableSortPairs instead.");
309-
310297
using ChooseOffsetT = detail::choose_offset_t<OffsetT>;
311298

312299
return detail::dispatch_with_env(env, [&]([[maybe_unused]] auto tuning, void* storage, size_t& bytes, auto stream) {
@@ -610,7 +597,6 @@ public:
610597
//! - Stream: Query via ``cuda::get_stream``
611598
//! - Memory resource: Query via ``cuda::mr::get_memory_resource``
612599
//!
613-
//! - This operation provides ``run_to_run`` determinism.
614600
//! - SortKeys is not guaranteed to be stable.
615601
//!
616602
//! Snippet
@@ -655,17 +641,6 @@ public:
655641
{
656642
_CCCL_NVTX_RANGE_SCOPE(GetName());
657643

658-
static_assert(!::cuda::std::execution::__queryable_with<EnvT, ::cuda::execution::determinism::__get_determinism_t>,
659-
"Determinism should be used inside requires to have an effect.");
660-
using requirements_t = ::cuda::std::execution::
661-
__query_result_or_t<EnvT, ::cuda::execution::__get_requirements_t, ::cuda::std::execution::env<>>;
662-
using determinism_t =
663-
::cuda::std::execution::__query_result_or_t<requirements_t,
664-
::cuda::execution::determinism::__get_determinism_t,
665-
::cuda::execution::determinism::run_to_run_t>;
666-
static_assert(!::cuda::std::is_same_v<determinism_t, ::cuda::execution::determinism::gpu_to_gpu_t>,
667-
"gpu_to_gpu determinism is not supported for unstable sort. Use StableSortKeys instead.");
668-
669644
using ChooseOffsetT = detail::choose_offset_t<OffsetT>;
670645

671646
return detail::dispatch_with_env(env, [&]([[maybe_unused]] auto tuning, void* storage, size_t& bytes, auto stream) {
@@ -955,7 +930,6 @@ public:
955930
//! - Stream: Query via ``cuda::get_stream``
956931
//! - Memory resource: Query via ``cuda::mr::get_memory_resource``
957932
//!
958-
//! - This operation provides ``gpu_to_gpu`` determinism.
959933
//! - StableSortPairs preserves the relative ordering of equivalent elements.
960934
//!
961935
//! Snippet
@@ -1136,7 +1110,6 @@ public:
11361110
//! - Stream: Query via ``cuda::get_stream``
11371111
//! - Memory resource: Query via ``cuda::mr::get_memory_resource``
11381112
//!
1139-
//! - This operation provides ``gpu_to_gpu`` determinism.
11401113
//! - StableSortKeys preserves the relative ordering of equivalent elements.
11411114
//!
11421115
//! Snippet

0 commit comments

Comments
 (0)