Skip to content

Commit

Permalink
More replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 13, 2025
1 parent fc5b106 commit 1d0bc43
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions thrust/testing/async/exclusive_scan/large_indices.cu
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,17 @@ namespace
{

//------------------------------------------------------------------------------
// Generate the output sequence using counting iterators and thrust::max<> for
// Generate the output sequence using counting iterators and ::cuda::maximum<> for
// custom operator overloads.
struct custom_bin_op_overloads
{
using postfix_args_type = std::tuple< // List any extra arg overloads:
std::tuple<uint64_t, thrust::maximum<>> // - initial_value, binop
std::tuple<uint64_t, ::cuda::maximum<>> // - initial_value, binop
>;

static postfix_args_type generate_postfix_args()
{
return postfix_args_type{std::make_tuple(0, thrust::maximum<>{})};
return postfix_args_type{std::make_tuple(0, ::cuda::maximum<>{})};
}
};

Expand Down
6 changes: 3 additions & 3 deletions thrust/testing/async/inclusive_scan/large_indices.cu
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,17 @@ namespace
{

//------------------------------------------------------------------------------
// Generate the output sequence using counting iterators and thrust::max<> for
// Generate the output sequence using counting iterators and ::cuda::maximum<> for
// custom operator overloads.
struct custom_bin_op_overloads
{
using postfix_args_type = std::tuple< // List any extra arg overloads:
std::tuple<thrust::maximum<>> // - custom binary op
std::tuple<::cuda::maximum<>> // - custom binary op
>;

static postfix_args_type generate_postfix_args()
{
return postfix_args_type{std::make_tuple(thrust::maximum<>{})};
return postfix_args_type{std::make_tuple(::cuda::maximum<>{})};
}
};

Expand Down
2 changes: 1 addition & 1 deletion thrust/testing/cuda/is_partitioned.cu
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void TestIsPartitionedDevice(ExecutionPolicy exec)
{
size_t n = 1000;

n = thrust::max<size_t>(n, 2);
n = ::cuda::std::max<size_t>(n, 2);

thrust::device_vector<int> v = unittest::random_integers<int>(n);

Expand Down
2 changes: 1 addition & 1 deletion thrust/thrust/system/tbb/detail/reduce_by_key.inl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ thrust::pair<Iterator3, Iterator4> reduce_by_key(
}

// count the number of processors
const unsigned int p = thrust::max<unsigned int>(1u, std::thread::hardware_concurrency());
const unsigned int p = ::cuda::std::max<unsigned int>(1u, std::thread::hardware_concurrency());

// generate O(P) intervals of sequential work
// XXX oversubscribing is a tuning opportunity
Expand Down

0 comments on commit 1d0bc43

Please sign in to comment.