Skip to content

Commit

Permalink
More suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 13, 2025
1 parent 9c9880d commit 6a5b631
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thrust/testing/async/exclusive_scan/using_vs_adl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ struct using_namespace
// Importing the CPO into the current namespace should unambiguously resolve
// this call to the CPO, as opposed to resolving to the thrust:: algorithm
// via ADL. This is verified by checking that an event is returned.
_CCCL_SUPPRESS_DEPRECATED_PUSH
using namespace thrust::async;
thrust::device_event e = exclusive_scan(
std::get<PrefixArgIndices>(THRUST_FWD(prefix_tuple))...,
input.cbegin(),
input.cend(),
output.begin(),
std::get<PostfixArgIndices>(THRUST_FWD(postfix_tuple))...);
_CCCL_SUPPRESS_DEPRECATED_POP
return e;
}
};
Expand Down
2 changes: 2 additions & 0 deletions thrust/testing/async/inclusive_scan/using_vs_adl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ struct using_namespace
// Importing the CPO into the current namespace should unambiguously resolve
// this call to the CPO, as opposed to resolving to the thrust:: algorithm
// via ADL. This is verified by checking that an event is returned.
_CCCL_SUPPRESS_DEPRECATED_PUSH
using namespace thrust::async;
thrust::device_event e = inclusive_scan(
std::get<PrefixArgIndices>(THRUST_FWD(prefix_tuple))...,
input.cbegin(),
input.cend(),
output.begin(),
std::get<PostfixArgIndices>(THRUST_FWD(postfix_tuple))...);
_CCCL_SUPPRESS_DEPRECATED_POP
return e;
}
};
Expand Down
4 changes: 4 additions & 0 deletions thrust/testing/async_reduce.cu
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,16 @@ struct test_async_reduce_using
// When you import the customization points into the global namespace,
// they should be selected instead of the synchronous algorithms.
{
_CCCL_SUPPRESS_DEPRECATED_PUSH
using namespace thrust::async;
f0a = reduce(d0a.begin(), d0a.end());
_CCCL_SUPPRESS_DEPRECATED_POP
}
{
_CCCL_SUPPRESS_DEPRECATED_PUSH
using thrust::async::reduce;
f0b = reduce(d0b.begin(), d0b.end());
_CCCL_SUPPRESS_DEPRECATED_POP
}

// ADL should find the synchronous algorithms.
Expand Down
4 changes: 4 additions & 0 deletions thrust/testing/async_transform.cu
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,16 @@ struct test_async_transform_using
// When you import the customization points into the global namespace,
// they should be selected instead of the synchronous algorithms.
{
_CCCL_SUPPRESS_DEPRECATED_PUSH
using namespace thrust::async;
f0a = transform(d0a.begin(), d0a.end(), d1a.begin(), op);
_CCCL_SUPPRESS_DEPRECATED_POP
}
{
_CCCL_SUPPRESS_DEPRECATED_PUSH
using thrust::async::transform;
f0b = transform(d0b.begin(), d0b.end(), d1b.begin(), op);
_CCCL_SUPPRESS_DEPRECATED_POP
}

// ADL should find the synchronous algorithms.
Expand Down

0 comments on commit 6a5b631

Please sign in to comment.