Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/test_command_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ BOOST_AUTO_TEST_CASE(copy_with_wait_list)
CHECK_HOST_RANGE_EQUAL(int, 4, data2, (1, 3, 5, 7));
}

#ifndef BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST
BOOST_AUTO_TEST_CASE(enqueue_kernel_with_extents)
{
using boost::compute::dim;
Expand Down Expand Up @@ -311,5 +312,6 @@ BOOST_AUTO_TEST_CASE(enqueue_kernel_with_extents)
CHECK_RANGE_EQUAL(int, 4, output1, (0, 1, 0, 1));
CHECK_RANGE_EQUAL(int, 4, output2, (0, 1, 0, 1));
}
#endif // BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST

BOOST_AUTO_TEST_SUITE_END()
4 changes: 4 additions & 0 deletions test/test_extents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

namespace compute = boost::compute;

#ifndef BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST
BOOST_AUTO_TEST_CASE(initialize)
{
compute::extents<1> one(1);
Expand All @@ -31,6 +32,7 @@ BOOST_AUTO_TEST_CASE(initialize)
BOOST_CHECK_EQUAL(xyz[1], size_t(2));
BOOST_CHECK_EQUAL(xyz[2], size_t(3));
}
#endif

BOOST_AUTO_TEST_CASE(size)
{
Expand All @@ -54,6 +56,7 @@ BOOST_AUTO_TEST_CASE(subscript_operator)
BOOST_CHECK_EQUAL(xyz[2], size_t(30));
}

#ifndef BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST
BOOST_AUTO_TEST_CASE(data)
{
compute::extents<3> xyz = compute::dim(5, 6, 7);
Expand Down Expand Up @@ -92,5 +95,6 @@ BOOST_AUTO_TEST_CASE(copy_to_vector)
BOOST_CHECK_EQUAL(vec[1], size_t(5));
BOOST_CHECK_EQUAL(vec[2], size_t(6));
}
#endif

BOOST_AUTO_TEST_SUITE_END()
2 changes: 2 additions & 0 deletions test/test_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ BOOST_AUTO_TEST_CASE(move_ctor_custom_alloc)
#endif // BOOST_COMPUTE_NO_RVALUE_REFERENCES

#ifdef BOOST_COMPUTE_USE_CPP11
#ifndef BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST
BOOST_AUTO_TEST_CASE(initializer_list_ctor)
{
// ctor with std::initializer_list<T> always uses
Expand All @@ -225,6 +226,7 @@ BOOST_AUTO_TEST_CASE(initializer_list_ctor)
BOOST_CHECK_EQUAL(vector[2], 6);
BOOST_CHECK_EQUAL(vector[3], 8);
}
#endif // BOOST_COMPUTE_NO_HDR_INITIALIZER_LIST
#endif // BOOST_COMPUTE_USE_CPP11

BOOST_AUTO_TEST_CASE(vector_double)
Expand Down