diff options
author | Luke Iwanski <luke@codeplay.com> | 2017-01-23 15:56:45 +0000 |
---|---|---|
committer | Luke Iwanski <luke@codeplay.com> | 2017-01-23 15:56:45 +0000 |
commit | bf44fed9b7f8f2716fd433d4121d0a91d0d84883 (patch) | |
tree | 882c04f6cb9a1e5d22728240abba084379b752a6 /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h | |
parent | 602f8c27f5307f1da966df2fc26745ecd0e78fc9 (diff) |
Allows AMD APU
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 722a5d894..b70b2ff79 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h @@ -59,7 +59,7 @@ EIGEN_STRONG_INLINE auto get_sycl_supported_devices()->decltype(cl::sycl::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= (*it).template get_info<cl::sycl::info::device::vendor>(); std::transform(s.begin(), s.end(), s.begin(), ::tolower); - if((*it).is_cpu() && s.find("amd")!=std::string::npos){ // remove amd cpu as it is not supported by computecpp + 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); } else{ |