mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Removing unsupported device from test case; cleaning the tensor device sycl.
This commit is contained in:
@@ -197,11 +197,11 @@ template<typename DataType, typename dev_Selector> void sycl_computing_test_per_
|
||||
test_sycl_computations<DataType, ColMajor>(sycl_device);
|
||||
}
|
||||
void test_cxx11_tensor_sycl() {
|
||||
printf("Test on GPU: OpenCL\n");
|
||||
CALL_SUBTEST(sycl_computing_test_per_device<float>((cl::sycl::gpu_selector())));
|
||||
printf("repeating the test on CPU: OpenCL\n");
|
||||
CALL_SUBTEST(sycl_computing_test_per_device<float>((cl::sycl::cpu_selector())));
|
||||
printf("repeating the test on CPU: HOST\n");
|
||||
CALL_SUBTEST(sycl_computing_test_per_device<float>((cl::sycl::host_selector())));
|
||||
printf("Test Passed******************\n" );
|
||||
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<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_computing_test_per_device<float>(device));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user