Skip to content

Commit 1de3972

Browse files
committed
Remove any references to determinism
1 parent 40a08c5 commit 1de3972

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

cub/cub/device/device_run_length_encode.cuh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include <cuda/std/__execution/env.h>
3333
#include <cuda/std/__type_traits/enable_if.h>
34-
#include <cuda/std/__type_traits/is_integral.h>
3534
#include <cuda/std/__type_traits/is_same.h>
3635

3736
CUB_NAMESPACE_BEGIN
@@ -231,9 +230,6 @@ struct DeviceRunLengthEncode
231230
//! - ``[d_num_runs_out, d_num_runs_out + 1)``
232231
//! - ``[d_in, d_in + num_items)``
233232
//!
234-
//! - The algorithm is deterministic: it produces the same output for the same input across runs
235-
//! on the same or different GPUs. No determinism requirements need to be specified via the environment.
236-
//!
237233
//! Snippet
238234
//! +++++++++++++++++++++++++++++++++++++++++++++
239235
//!
@@ -480,9 +476,6 @@ struct DeviceRunLengthEncode
480476
//! - ``[d_num_runs_out, d_num_runs_out + 1)``
481477
//! - ``[d_in, d_in + num_items)``
482478
//!
483-
//! - The algorithm is deterministic: it produces the same output for the same input across runs
484-
//! on the same or different GPUs. No determinism requirements need to be specified via the environment.
485-
//!
486479
//! Snippet
487480
//! +++++++++++++++++++++++++++++++++++++++++++++
488481
//!

cub/cub/device/device_select.cuh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <cub/device/dispatch/dispatch_select_if.cuh>
2424
#include <cub/device/dispatch/dispatch_unique_by_key.cuh>
2525

26-
#include <cuda/__execution/determinism.h>
2726
#include <cuda/__execution/require.h>
2827
#include <cuda/std/__execution/env.h>
2928
#include <cuda/std/__functional/operations.h>

cub/test/catch2_test_device_run_length_encode_env.cu

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ TEST_CASE("DeviceRunLengthEncode::Encode works with default environment", "[run_
3333
auto d_counts_out = c2h::device_vector<int>(8);
3434
auto d_num_runs_out = c2h::device_vector<int>(1);
3535

36-
REQUIRE(
37-
cudaSuccess
38-
== cub::DeviceRunLengthEncode::Encode(
39-
d_in.begin(), d_unique_out.begin(), d_counts_out.begin(), d_num_runs_out.begin(), (int) d_in.size()));
36+
REQUIRE(cudaSuccess
37+
== cub::DeviceRunLengthEncode::Encode(
38+
d_in.begin(), d_unique_out.begin(), d_counts_out.begin(), d_num_runs_out.begin(), (int) d_in.size()));
4039

4140
c2h::device_vector<int> expected_unique{0, 2, 9, 5, 8};
4241
c2h::device_vector<int> expected_counts{1, 2, 1, 3, 1};
@@ -56,10 +55,9 @@ TEST_CASE("DeviceRunLengthEncode::NonTrivialRuns works with default environment"
5655
auto d_lengths_out = c2h::device_vector<int>(8);
5756
auto d_num_runs_out = c2h::device_vector<int>(1);
5857

59-
REQUIRE(
60-
cudaSuccess
61-
== cub::DeviceRunLengthEncode::NonTrivialRuns(
62-
d_in.begin(), d_offsets_out.begin(), d_lengths_out.begin(), d_num_runs_out.begin(), (int) d_in.size()));
58+
REQUIRE(cudaSuccess
59+
== cub::DeviceRunLengthEncode::NonTrivialRuns(
60+
d_in.begin(), d_offsets_out.begin(), d_lengths_out.begin(), d_num_runs_out.begin(), (int) d_in.size()));
6361

6462
c2h::device_vector<int> expected_offsets{1, 4};
6563
c2h::device_vector<int> expected_lengths{2, 3};

cub/test/catch2_test_device_run_length_encode_env_api.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: BSD-3-Clause
33

44
#include "insert_nested_NVTX_range_guard.h"
5-
// above header needs to be included first
65

76
#include <cub/device/device_run_length_encode.cuh>
87

0 commit comments

Comments
 (0)