Replace THRUST_UNUSED_VAR
MODIFY
thrust/async/copy.h
thrust/async/copy.h
@@ -48,16 +48,11 @@ template <
__host__
event<FromPolicy>
async_copy(
- thrust::execution_policy<FromPolicy>& from_exec
-, thrust::execution_policy<ToPolicy>& to_exec
-, ForwardIt first, Sentinel last, OutputIt output
+ thrust::execution_policy<FromPolicy>&
+, thrust::execution_policy<ToPolicy>&
+, ForwardIt , Sentinel , OutputIt
)
{
- THRUST_UNUSED_VAR(from_exec);
- THRUST_UNUSED_VAR(to_exec);
- THRUST_UNUSED_VAR(first);
- THRUST_UNUSED_VAR(last);
- THRUST_UNUSED_VAR(output);
THRUST_STATIC_ASSERT_MSG(
(thrust::detail::depend_on_instantiation<ForwardIt, false>::value)
, "this algorithm is not implemented for the specified system"

MODIFY
thrust/async/transform.h
thrust/async/transform.h
@@ -49,15 +49,10 @@ template <
__host__
event<DerivedPolicy>
async_transform(
- thrust::execution_policy<DerivedPolicy>& exec
-, ForwardIt first, Sentinel last, OutputIt output, UnaryOperation op
+ thrust::execution_policy<DerivedPolicy>&
+, ForwardIt , Sentinel , OutputIt , UnaryOperation
)
{
- THRUST_UNUSED_VAR(exec);
- THRUST_UNUSED_VAR(first);
- THRUST_UNUSED_VAR(last);
- THRUST_UNUSED_VAR(output);
- THRUST_UNUSED_VAR(op);
THRUST_STATIC_ASSERT_MSG(
(thrust::detail::depend_on_instantiation<ForwardIt, false>::value)
, "this algorithm is not implemented for the specified system"

MODIFY
thrust/system/hip/detail/cross_system.h
thrust/system/hip/detail/cross_system.h
@@ -126,16 +126,14 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
std::declval<ExecutionPolicy1>()))>
THRUST_CONSTEXPR __host__ __device__
auto is_device_to_host_copy(
- ExecutionPolicy0 const& exec0
- , ExecutionPolicy1 const& exec1
+ ExecutionPolicy0 const&
+ , ExecutionPolicy1 const&
)
noexcept ->
thrust::detail::integral_constant<
bool, hipMemcpyDeviceToHost== Direction::value
>
{
- THRUST_UNUSED_VAR(exec0);
- THRUST_UNUSED_VAR(exec1);
return {};
}
@@ -144,13 +142,12 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
typename Direction =
decltype(direction_of_copy(std::declval<ExecutionPolicy>()))>
THRUST_CONSTEXPR __host__ __device__
- auto is_device_to_host_copy(ExecutionPolicy const& exec)
+ auto is_device_to_host_copy(ExecutionPolicy const& )
noexcept ->
thrust::detail::integral_constant<
bool, hipMemcpyDeviceToHost == Direction::value
>
{
- THRUST_UNUSED_VAR(exec);
return {};
}
@@ -162,16 +159,14 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
std::declval<ExecutionPolicy1>()))>
THRUST_CONSTEXPR __host__ __device__
auto is_host_to_device_copy(
- ExecutionPolicy0 const& exec0
- , ExecutionPolicy1 const& exec1
+ ExecutionPolicy0 const&
+ , ExecutionPolicy1 const&
)
noexcept ->
thrust::detail::integral_constant<
bool, hipMemcpyHostToDevice == Direction::value
>
{
- THRUST_UNUSED_VAR(exec0);
- THRUST_UNUSED_VAR(exec1);
return {};
}
@@ -180,13 +175,12 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
typename Direction =
decltype(direction_of_copy(std::declval<ExecutionPolicy>()))>
THRUST_CONSTEXPR __host__ __device__
- auto is_host_to_device_copy(ExecutionPolicy const& exec)
+ auto is_host_to_device_copy(ExecutionPolicy const& )
noexcept ->
thrust::detail::integral_constant<
bool, hipMemcpyHostToDevice == Direction::value
>
{
- THRUST_UNUSED_VAR(exec);
return {};
}
@@ -198,16 +192,14 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
std::declval<ExecutionPolicy1>()))>
THRUST_CONSTEXPR __host__ __device__
auto is_device_to_device_copy(
- ExecutionPolicy0 const& exec0
- , ExecutionPolicy1 const& exec1
+ ExecutionPolicy0 const&
+ , ExecutionPolicy1 const&
)
noexcept ->
thrust::detail::integral_constant<
bool, hipMemcpyDeviceToDevice == Direction::value
>
{
- THRUST_UNUSED_VAR(exec0);
- THRUST_UNUSED_VAR(exec1);
return {};
}
@@ -216,13 +208,12 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
typename Direction =
decltype(direction_of_copy(std::declval<ExecutionPolicy>()))>
THRUST_CONSTEXPR __host__ __device__
- auto is_device_to_device_copy(ExecutionPolicy const& exec)
+ auto is_device_to_device_copy(ExecutionPolicy const& )
noexcept ->
thrust::detail::integral_constant<
bool, hipMemcpyDeviceToDevice == Direction::value
>
{
- THRUST_UNUSED_VAR(exec);
return {};
}

Replace THRUST_UNUSED_VAR