From 7318daf887c4f06fa62e59e29fa675e48ad168f9 Mon Sep 17 00:00:00 2001 From: Mehdi Goli Date: Fri, 25 Nov 2016 16:19:07 +0000 Subject: Fixing LLVM error on TensorMorphingSycl.h on GPU; fixing int64_t crash for tensor_broadcast_sycl on GPU; adding get_sycl_supported_devices() on syclDevice.h. --- unsupported/test/cxx11_tensor_sycl.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'unsupported/test/cxx11_tensor_sycl.cpp') diff --git a/unsupported/test/cxx11_tensor_sycl.cpp b/unsupported/test/cxx11_tensor_sycl.cpp index 670b5f379..150414f15 100644 --- a/unsupported/test/cxx11_tensor_sycl.cpp +++ b/unsupported/test/cxx11_tensor_sycl.cpp @@ -197,11 +197,8 @@ template void sycl_computing_test_per_ test_sycl_computations(sycl_device); } void test_cxx11_tensor_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 ) - 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_computing_test_per_device(device)); + auto devices =Eigen::get_sycl_supported_devices(); + for (const auto& device :Eigen::get_sycl_supported_devices()) { + CALL_SUBTEST(sycl_computing_test_per_device(device)); } } -- cgit v1.2.3