diff options
author | Luke Iwanski <luke@codeplay.com> | 2017-03-08 18:26:34 +0000 |
---|---|---|
committer | Luke Iwanski <luke@codeplay.com> | 2017-03-08 18:26:34 +0000 |
commit | 1b32a10053a942b1c6010afd719b44393b115d42 (patch) | |
tree | f8a93682b23cbd38f23478cdf88371ec1f2023ee /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h | |
parent | aadb7405a7362ce0160d8ecb3843dc33a59e809a (diff) |
Use name to distinguish name instead of the vendor
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h index 5fa7423d0..ed21d7b56 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h @@ -76,7 +76,7 @@ EIGEN_STRONG_INLINE auto get_sycl_supported_devices()->decltype(cl::sycl::device std::vector<cl::sycl::device>::iterator it =devices.begin(); while(it!=devices.end()) { ///FIXME: Currently there is a bug in amd cpu OpenCL - auto s= (*it).template get_info<cl::sycl::info::device::vendor>(); + auto s= (*it).template get_info<cl::sycl::info::device::name>(); std::transform(s.begin(), s.end(), s.begin(), ::tolower); if((*it).is_cpu() && s.find("amd")!=std::string::npos && s.find("apu") == std::string::npos){ // remove amd cpu as it is not supported by computecpp allow APUs it=devices.erase(it); |