ATLAS Offline Software
Loading...
Searching...
No Matches
TrigITkModuleCuda Class Reference

#include <TrigITkModuleCuda.h>

Inheritance diagram for TrigITkModuleCuda:
Collaboration diagram for TrigITkModuleCuda:

Public Member Functions

 TrigITkModuleCuda ()
 ~TrigITkModuleCuda ()
bool configure ()
TrigAccel::WorkcreateWork (int, std::shared_ptr< TrigAccel::OffloadBuffer >)
const std::vector< int > getProvidedAlgs ()
virtual int getFactoryId ()

Private Member Functions

void checkError (int code=0) const
SeedMakingDeviceContextcreateSeedMakingContext (int) const
SeedMakingManagedDeviceContextcreateManagedSeedMakingContext (int) const
GbtsDeviceContextcreateGbtsContext (int id, const TrigAccel::ITk::GRAPH_MAKING_INPUT_DATA *) const

Private Attributes

unsigned char * m_h_detmodel
std::map< int, unsigned char * > m_d_detmodel_ptrs
int m_maxDevice
bool m_dumpTimeLine
std::atomic< unsigned int > m_workItemCounters [100]
WorkTimeStampQueue m_timeLine

Detailed Description

Definition at line 17 of file TrigITkModuleCuda.h.

Constructor & Destructor Documentation

◆ TrigITkModuleCuda()

TrigITkModuleCuda::TrigITkModuleCuda ( )

◆ ~TrigITkModuleCuda()

TrigITkModuleCuda::~TrigITkModuleCuda ( )

Member Function Documentation

◆ checkError()

void TrigITkModuleCuda::checkError ( int code = 0) const
inlineprivate

Definition at line 37 of file TrigITkModuleCuda.h.

37 {
38 cudaError_t error = cudaGetLastError();
39 if(error != cudaSuccess) {
40 printf("%d CUDA error %d: %s\n", getpid(), code, cudaGetErrorString(error));
41 exit(-1);
42 }
43 };

◆ configure()

bool TrigITkModuleCuda::configure ( )
virtual

◆ createGbtsContext()

GbtsDeviceContext * TrigITkModuleCuda::createGbtsContext ( int id,
const TrigAccel::ITk::GRAPH_MAKING_INPUT_DATA *  ) const
private

◆ createManagedSeedMakingContext()

SeedMakingManagedDeviceContext * TrigITkModuleCuda::createManagedSeedMakingContext ( int ) const
private

◆ createSeedMakingContext()

SeedMakingDeviceContext * TrigITkModuleCuda::createSeedMakingContext ( int ) const
private

◆ createWork()

TrigAccel::Work * TrigITkModuleCuda::createWork ( int ,
std::shared_ptr< TrigAccel::OffloadBuffer >  )
virtual

◆ getFactoryId()

virtual int TrigITkModuleCuda::getFactoryId ( )
inlinevirtual

Implements TrigAccel::WorkFactory.

Definition at line 31 of file TrigITkModuleCuda.h.

31 {
33 }
constexpr unsigned int TrigITkModuleID_CUDA

◆ getProvidedAlgs()

const std::vector< int > TrigITkModuleCuda::getProvidedAlgs ( )
virtual

Member Data Documentation

◆ m_d_detmodel_ptrs

std::map<int, unsigned char*> TrigITkModuleCuda::m_d_detmodel_ptrs
private

Definition at line 51 of file TrigITkModuleCuda.h.

◆ m_dumpTimeLine

bool TrigITkModuleCuda::m_dumpTimeLine
private

Definition at line 64 of file TrigITkModuleCuda.h.

◆ m_h_detmodel

unsigned char* TrigITkModuleCuda::m_h_detmodel
private

Definition at line 49 of file TrigITkModuleCuda.h.

◆ m_maxDevice

int TrigITkModuleCuda::m_maxDevice
private

Definition at line 53 of file TrigITkModuleCuda.h.

◆ m_timeLine

WorkTimeStampQueue TrigITkModuleCuda::m_timeLine
private

Definition at line 67 of file TrigITkModuleCuda.h.

◆ m_workItemCounters

std::atomic<unsigned int> TrigITkModuleCuda::m_workItemCounters[100]
private

Definition at line 66 of file TrigITkModuleCuda.h.


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