diff options
Diffstat (limited to 'unsupported/test/cxx11_tensor_morphing_sycl.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_morphing_sycl.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/unsupported/test/cxx11_tensor_morphing_sycl.cpp b/unsupported/test/cxx11_tensor_morphing_sycl.cpp index 4ca73ea1b..9074c8331 100644 --- a/unsupported/test/cxx11_tensor_morphing_sycl.cpp +++ b/unsupported/test/cxx11_tensor_morphing_sycl.cpp @@ -82,12 +82,7 @@ template<typename DataType, typename dev_Selector> void sycl_slicing_test_per_de } void test_cxx11_tensor_morphing_sycl() { - for (const auto& device : cl::sycl::device::get_devices()) { - /// get_devices returns all the available opencl devices. Either use device_selector or exclude devices that computecpp does not support (AMD OpenCL for CPU ) - /// Currentlly it only works on cpu. Adding GPU cause LLVM ERROR in cunstructing OpenCL Kernel at runtime. - auto s= device.template get_info<cl::sycl::info::device::vendor>(); - std::transform(s.begin(), s.end(), s.begin(), ::tolower); - if(device.is_cpu() && s.find("amd")==std::string::npos) - CALL_SUBTEST(sycl_slicing_test_per_device<float>(device)); + for (const auto& device :Eigen::get_sycl_supported_devices()) { + CALL_SUBTEST(sycl_slicing_test_per_device<float>(device)); } } |