]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/compute/test/test_device.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / compute / test / test_device.cpp
index 164e3f781e3ee25c4716a58fab537101b14dd957..bc370c1ee38770acddd01ae5e36fc78f2eb250b6 100644 (file)
@@ -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<boost::compute::ulong_, boost::compute::ulong_> 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<CL_DEVICE_IL_VERSION>().empty());
     BOOST_CHECK(device.get_info<CL_DEVICE_MAX_NUM_SUB_GROUPS>() > 0);
     BOOST_CHECK_NO_THROW(