Enable functional_placeholders tests
MODIFY
testing/CMakeLists.txt
testing/CMakeLists.txt
@@ -81,12 +81,12 @@ add_thrust_test("functional_arithmetic")
add_thrust_test("functional_bitwise")
add_thrust_test("functional")
add_thrust_test("functional_logical")
-# add_thrust_test("functional_placeholders_arithmetic")
-# add_thrust_test("functional_placeholders_bitwise")
-# add_thrust_test("functional_placeholders_compound_assignment")
-# add_thrust_test("functional_placeholders_logical")
-# add_thrust_test("functional_placeholders_miscellaneous")
-# add_thrust_test("functional_placeholders_relational")
+add_thrust_test("functional_placeholders_arithmetic")
+add_thrust_test("functional_placeholders_bitwise")
+add_thrust_test("functional_placeholders_compound_assignment")
+add_thrust_test("functional_placeholders_logical")
+add_thrust_test("functional_placeholders_miscellaneous")
+add_thrust_test("functional_placeholders_relational")
add_thrust_test("gather")
add_thrust_test("generate")
add_thrust_test("inner_product")

MODIFY
testing/functional_placeholders_arithmetic.cu
testing/functional_placeholders_arithmetic.cu
template<typename Vector> \
struct TestFunctionalPlaceholders##name \
{ \
- void operator()(const size_t dummy) \
+ void operator()(const size_t) \
{ \
static const size_t num_samples = 10000; \
const size_t zero = 0; \
@@ -72,4 +72,3 @@ template<typename T>
UNARY_FUNCTIONAL_PLACEHOLDERS_TEST(UnaryPlus, +, unary_plus_reference);
UNARY_FUNCTIONAL_PLACEHOLDERS_TEST(Negate, -, thrust::negate);
-

MODIFY
testing/functional_placeholders_bitwise.cu
testing/functional_placeholders_bitwise.cu
@@ -23,7 +23,7 @@ template<typename T, typename U>
template<typename Vector> \
struct TestFunctionalPlaceholders##name \
{ \
- void operator()(const size_t dummy) \
+ void operator()(const size_t) \
{ \
static const size_t num_samples = 10000; \
const size_t zero = 0; \
@@ -82,4 +82,3 @@ template<typename Vector>
ASSERT_EQUAL(reference, result);
}
DECLARE_VECTOR_UNITTEST(TestFunctionalPlaceholdersBitNegate);
-

MODIFY
testing/functional_placeholders_compound_assignment.cu
testing/functional_placeholders_compound_assignment.cu
template<typename Vector> \
struct TestFunctionalPlaceholders##name \
{ \
- void operator()(const size_t dummy) \
+ void operator()(const size_t) \
{ \
const size_t num_samples = 10000; \
typedef typename Vector::value_type T; \
@@ -189,5 +189,3 @@ DECLARE_VECTOR_UNITTEST(TestFunctionalPlaceholdersSuffix##name);
SUFFIX_FUNCTIONAL_PLACEHOLDERS_TEST(Increment, ++, suffix_increment_reference);
SUFFIX_FUNCTIONAL_PLACEHOLDERS_TEST(Decrement, --, suffix_decrement_reference);
-
-

MODIFY
testing/functional_placeholders_miscellaneous.cu
testing/functional_placeholders_miscellaneous.cu
@@ -20,7 +20,7 @@ template<typename T>
template<typename Vector>
struct TestFunctionalPlaceholdersValue
{
- void operator()(const size_t dummy)
+ void operator()(const size_t)
{
const size_t n = 10000;
typedef typename Vector::value_type T;
@@ -45,7 +45,7 @@ VectorUnitTest<TestFunctionalPlaceholdersValue, ThirtyTwoBitTypes, thrust::host_
template<typename Vector>
struct TestFunctionalPlaceholdersTransformIterator
{
- void operator()(const size_t dummy)
+ void operator()(const size_t)
{
const size_t n = 10000;
typedef typename Vector::value_type T;
@@ -70,4 +70,3 @@ template<typename Vector>
};
VectorUnitTest<TestFunctionalPlaceholdersTransformIterator, ThirtyTwoBitTypes, thrust::device_vector, thrust::device_malloc_allocator> TestFunctionalPlaceholdersTransformIteratorInstanceDevice;
VectorUnitTest<TestFunctionalPlaceholdersTransformIterator, ThirtyTwoBitTypes, thrust::host_vector, std::allocator> TestFunctionalPlaceholdersTransformIteratorInstanceHost;
-

MODIFY
testing/sequence.cu
testing/sequence.cu
template<typename ForwardIterator>
+__host__ __device__
void sequence(my_system &system, ForwardIterator, ForwardIterator)
{
system.validate_dispatch();
@@ -40,6 +41,7 @@ DECLARE_UNITTEST(TestSequenceDispatchExplicit);
template<typename ForwardIterator>
+__host__ __device__
void sequence(my_tag, ForwardIterator first, ForwardIterator)
{
*first = 13;

Enable functional_placeholders tests