EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Plugins/Sycl/include/Acts/Plugins/Sycl/Utilities/QueueWrapper.hpp>
Public Member Functions | |
QueueWrapper (const std::string &="") | |
QueueWrapper (QueueWrapper &&parent) noexcept | |
QueueWrapper (const QueueWrapper &other) | |
~QueueWrapper () | |
QueueWrapper & | operator= (QueueWrapper &&rhs) noexcept |
Move assignment operator. | |
QueueWrapper & | operator= (const QueueWrapper &other) |
Copy assignment operator. | |
cl::sycl::queue * | getQueue () const |
Get stored pointer. | |
Private Member Functions | |
void | initialize (const std::string &="") |
This function creates the SYCL queue object. | |
Private Attributes | |
cl::sycl::queue * | m_queue |
Raw pointer to SYCL queue object. | |
bool | m_ownsQueue |
Owns queue. | |
Definition at line 23 of file QueueWrapper.hpp.
View newest version in sPHENIX GitHub at line 23 of file QueueWrapper.hpp
Acts::Sycl::QueueWrapper::QueueWrapper | ( | const std::string & | deviceNameSubtring = "" | ) |
Create queue with default selector or given name Default constructed queue wrappers are owners.
Definition at line 24 of file QueueWrapper.cpp.
View newest version in sPHENIX GitHub at line 24 of file QueueWrapper.cpp
References initialize().
|
noexcept |
Move constructor It takes ownership (if it is given).
Definition at line 28 of file QueueWrapper.cpp.
View newest version in sPHENIX GitHub at line 28 of file QueueWrapper.cpp
Acts::Sycl::QueueWrapper::QueueWrapper | ( | const QueueWrapper & | other | ) |
Copy constructor Does not give ownership to the underlying pointer.
Definition at line 34 of file QueueWrapper.cpp.
View newest version in sPHENIX GitHub at line 34 of file QueueWrapper.cpp
References m_ownsQueue, and m_queue.
Acts::Sycl::QueueWrapper::~QueueWrapper | ( | ) |
Destructor Destroy the underlying pointer, but only if it is owned.
Definition at line 39 of file QueueWrapper.cpp.
View newest version in sPHENIX GitHub at line 39 of file QueueWrapper.cpp
References m_ownsQueue, and m_queue.
cl::sycl::queue * Acts::Sycl::QueueWrapper::getQueue | ( | ) | const |
Get stored pointer.
Definition at line 77 of file QueueWrapper.cpp.
View newest version in sPHENIX GitHub at line 77 of file QueueWrapper.cpp
References m_queue.
Referenced by Acts::Sycl::createSeedsForGroupSycl().
|
private |
This function creates the SYCL queue object.
Definition at line 81 of file QueueWrapper.cpp.
View newest version in sPHENIX GitHub at line 81 of file QueueWrapper.cpp
References ACTS_FATAL, ACTS_INFO, ACTS_LOCAL_LOGGER, Acts::UnitConstants::e, Acts::getDefaultLogger(), Acts::Logging::INFO, m_ownsQueue, m_queue, and name.
Referenced by QueueWrapper().
|
noexcept |
Move assignment operator.
Definition at line 45 of file QueueWrapper.cpp.
View newest version in sPHENIX GitHub at line 45 of file QueueWrapper.cpp
References m_ownsQueue, and m_queue.
QueueWrapper & Acts::Sycl::QueueWrapper::operator= | ( | const QueueWrapper & | other | ) |
Copy assignment operator.
Definition at line 66 of file QueueWrapper.cpp.
View newest version in sPHENIX GitHub at line 66 of file QueueWrapper.cpp
References m_ownsQueue, and m_queue.
|
private |
Owns queue.
Definition at line 50 of file QueueWrapper.hpp.
View newest version in sPHENIX GitHub at line 50 of file QueueWrapper.hpp
Referenced by initialize(), operator=(), QueueWrapper(), and ~QueueWrapper().
|
private |
Raw pointer to SYCL queue object.
Definition at line 48 of file QueueWrapper.hpp.
View newest version in sPHENIX GitHub at line 48 of file QueueWrapper.hpp
Referenced by getQueue(), initialize(), operator=(), QueueWrapper(), and ~QueueWrapper().