From b8cc5635d581d3b3ea9950ce8359681ae01491a2 Mon Sep 17 00:00:00 2001 From: Mehdi Goli Date: Wed, 23 Nov 2016 16:30:41 +0000 Subject: Removing unsupported device from test case; cleaning the tensor device sycl. --- unsupported/test/cxx11_tensor_device_sycl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'unsupported/test/cxx11_tensor_device_sycl.cpp') diff --git a/unsupported/test/cxx11_tensor_device_sycl.cpp b/unsupported/test/cxx11_tensor_device_sycl.cpp index 9e13d2f1b..7f9372c04 100644 --- a/unsupported/test/cxx11_tensor_device_sycl.cpp +++ b/unsupported/test/cxx11_tensor_device_sycl.cpp @@ -72,6 +72,10 @@ template void sycl_device_test_per_device(const cl::sycl::dev void test_cxx11_tensor_device_sycl() { for (const auto& device : cl::sycl::device::get_devices()) { - CALL_SUBTEST(sycl_device_test_per_device(device)); + /// get_devices returns all the available opencl devices. Either use device_selector or exclude devices that computecpp does not support (AMD OpenCL for CPU ) + auto s= device.template get_info(); + std::transform(s.begin(), s.end(), s.begin(), ::tolower); + if(!device.is_cpu() || s.find("amd")==std::string::npos) + CALL_SUBTEST(sycl_device_test_per_device(device)); } } -- cgit v1.2.3