EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Sycl::QueueWrapper Class Reference

#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 ()
 
QueueWrapperoperator= (QueueWrapper &&rhs) noexcept
 Move assignment operator.
 
QueueWrapperoperator= (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.
 

Detailed Description

Definition at line 23 of file QueueWrapper.hpp.

View newest version in sPHENIX GitHub at line 23 of file QueueWrapper.hpp

Constructor & Destructor Documentation

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().

+ Here is the call graph for this function:

Acts::Sycl::QueueWrapper::QueueWrapper ( QueueWrapper &&  parent)
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.

Member Function Documentation

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().

+ Here is the caller graph for this function:

void Acts::Sycl::QueueWrapper::initialize ( const std::string &  deviceNameSubstring = "")
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QueueWrapper & Acts::Sycl::QueueWrapper::operator= ( QueueWrapper &&  rhs)
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.

Member Data Documentation

bool Acts::Sycl::QueueWrapper::m_ownsQueue
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().

cl::sycl::queue* Acts::Sycl::QueueWrapper::m_queue
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().


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