mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Use name to distinguish name instead of the vendor
This commit is contained in:
parent
aadb7405a7
commit
1b32a10053
@ -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();
|
std::vector<cl::sycl::device>::iterator it =devices.begin();
|
||||||
while(it!=devices.end()) {
|
while(it!=devices.end()) {
|
||||||
///FIXME: Currently there is a bug in amd cpu OpenCL
|
///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);
|
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
|
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);
|
it=devices.erase(it);
|
||||||
|
Loading…
Reference in New Issue
Block a user