Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Sycl::DeviceSelector Struct Reference

Custom device selector that refuses to select NVIDIA OpenCL backends. More...

#include <acts/blob/sPHENIX/Plugins/Sycl/include/Acts/Plugins/Sycl/Utilities/DeviceSelector.hpp>

+ Inheritance diagram for Acts::Sycl::DeviceSelector:
+ Collaboration diagram for Acts::Sycl::DeviceSelector:

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.
 

Detailed Description

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

Constructor & Destructor Documentation

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

Member Function Documentation

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.

Member Data Documentation

cl::sycl::default_selector Acts::Sycl::DeviceSelector::m_defaultSelector
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()().

std::string Acts::Sycl::DeviceSelector::m_deviceName
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()().


The documentation for this struct was generated from the following files: