X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fcompute%2Ftest%2Ftest_device.cpp;h=bc370c1ee38770acddd01ae5e36fc78f2eb250b6;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=164e3f781e3ee25c4716a58fab537101b14dd957;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/libs/compute/test/test_device.cpp b/ceph/src/boost/libs/compute/test/test_device.cpp index 164e3f781..bc370c1ee 100644 --- a/ceph/src/boost/libs/compute/test/test_device.cpp +++ b/ceph/src/boost/libs/compute/test/test_device.cpp @@ -237,6 +237,9 @@ BOOST_AUTO_TEST_CASE(get_info_specializations) BOOST_AUTO_TEST_CASE(get_host_timer) { boost::compute::device device = boost::compute::system::default_device(); + + REQUIRES_OPENCL_VERSION(2, 1); + BOOST_CHECK(device.get_host_timer() != 0); #ifndef BOOST_COMPUTE_NO_HDR_CHRONO @@ -253,6 +256,9 @@ BOOST_AUTO_TEST_CASE(get_host_timer) BOOST_AUTO_TEST_CASE(get_device_and_host_timer) { boost::compute::device device = boost::compute::system::default_device(); + + REQUIRES_OPENCL_VERSION(2, 1); + typedef std::pair dah_timer; dah_timer timer; BOOST_CHECK_NO_THROW(timer = device.get_device_and_host_timer()); @@ -276,6 +282,8 @@ BOOST_AUTO_TEST_CASE(get_info_opencl21_queries) { boost::compute::device device = boost::compute::system::default_device(); + REQUIRES_OPENCL_VERSION(2, 1); + BOOST_CHECK(!device.get_info().empty()); BOOST_CHECK(device.get_info() > 0); BOOST_CHECK_NO_THROW(