Analysis Software
Documentation for sPHENIX simulation software
|
Custom device selector that refuses to select NVIDIA OpenCL backends. More...
#include <acts/blob/sPHENIX/Plugins/Sycl/include/Acts/Plugins/Sycl/Utilities/DeviceSelector.hpp>
Public Member Functions | |
DeviceSelector (const std::string &deviceName="") | |
int | operator() (const cl::sycl::device &d) const |
Private Attributes | |
cl::sycl::default_selector | m_defaultSelector |
Fallback device selector. | |
std::string | m_deviceName |
Substring of the preferred device's name. | |
Custom device selector that refuses to select NVIDIA OpenCL backends.
It is also possible to the tell the selector explicitly which device we want to use by providing a substring of the preferred device's name.
Definition at line 22 of file DeviceSelector.hpp.
View newest version in sPHENIX GitHub at line 22 of file DeviceSelector.hpp
Acts::Sycl::DeviceSelector::DeviceSelector | ( | const std::string & | deviceName = "" | ) |
Definition at line 16 of file DeviceSelector.cpp.
View newest version in sPHENIX GitHub at line 16 of file DeviceSelector.cpp
int Acts::Sycl::DeviceSelector::operator() | ( | const cl::sycl::device & | d | ) | const |
Definition at line 20 of file DeviceSelector.cpp.
View newest version in sPHENIX GitHub at line 20 of file DeviceSelector.cpp
References m_defaultSelector, m_deviceName, and perf_headwind::name.
|
private |
Fallback device selector.
Definition at line 29 of file DeviceSelector.hpp.
View newest version in sPHENIX GitHub at line 29 of file DeviceSelector.hpp
Referenced by operator()().
|
private |
Substring of the preferred device's name.
Definition at line 32 of file DeviceSelector.hpp.
View newest version in sPHENIX GitHub at line 32 of file DeviceSelector.hpp
Referenced by operator()().