Fixed unused paramter
MODIFY
test/test_memory.cpp
test/test_memory.cpp
@@ -163,6 +163,7 @@ void return_temporary_buffer(my_new_temporary_allocation_system, Pointer p)
{
// This should never be called (the three-argument with size overload below
// should be preferred) and shouldn't be ambiguous.
+ THRUST_UNUSED_VAR(p);
ASSERT_EQ(true, false);
}

MODIFY
testing/memory.cu
testing/memory.cu
@@ -96,6 +96,7 @@ void return_temporary_buffer(my_new_temporary_allocation_system, Pointer p)
{
// This should never be called (the three-argument with size overload below
// should be preferred) and shouldn't be ambiguous.
+ THRUST_UNUSED_VAR(p);
ASSERT_EQUAL(true, false);
}

MODIFY
thrust/async/copy.h
thrust/async/copy.h
@@ -53,6 +53,11 @@ async_copy(
, ForwardIt first, Sentinel last, OutputIt output
)
{
+ 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
@@ -53,6 +53,11 @@ async_transform(
, ForwardIt first, Sentinel last, OutputIt output, UnaryOperation op
)
{
+ 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
@@ -134,6 +134,8 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
bool, hipMemcpyDeviceToHost== Direction::value
>
{
+ THRUST_UNUSED_VAR(exec0);
+ THRUST_UNUSED_VAR(exec1);
return {};
}
@@ -148,6 +150,7 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
bool, hipMemcpyDeviceToHost == Direction::value
>
{
+ THRUST_UNUSED_VAR(exec);
return {};
}
@@ -167,6 +170,8 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
bool, hipMemcpyHostToDevice == Direction::value
>
{
+ THRUST_UNUSED_VAR(exec0);
+ THRUST_UNUSED_VAR(exec1);
return {};
}
@@ -181,6 +186,7 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
bool, hipMemcpyHostToDevice == Direction::value
>
{
+ THRUST_UNUSED_VAR(exec);
return {};
}
@@ -200,6 +206,8 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
bool, hipMemcpyDeviceToDevice == Direction::value
>
{
+ THRUST_UNUSED_VAR(exec0);
+ THRUST_UNUSED_VAR(exec1);
return {};
}
@@ -214,6 +222,7 @@ struct cross_system : execution_policy<cross_system<Sys1, Sys2> >
bool, hipMemcpyDeviceToDevice == Direction::value
>
{
+ THRUST_UNUSED_VAR(exec);
return {};
}

Fixed unused paramter