ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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
 

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 16 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 36 of file TrigITkModuleCuda.h.

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

◆ configure()

bool TrigITkModuleCuda::configure ( )
virtual

◆ 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 30 of file TrigITkModuleCuda.h.

30  {
32  }

◆ 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 50 of file TrigITkModuleCuda.h.

◆ m_dumpTimeLine

bool TrigITkModuleCuda::m_dumpTimeLine
private

Definition at line 62 of file TrigITkModuleCuda.h.

◆ m_h_detmodel

unsigned char* TrigITkModuleCuda::m_h_detmodel
private

Definition at line 48 of file TrigITkModuleCuda.h.

◆ m_maxDevice

int TrigITkModuleCuda::m_maxDevice
private

Definition at line 52 of file TrigITkModuleCuda.h.

◆ m_timeLine

WorkTimeStampQueue TrigITkModuleCuda::m_timeLine
private

Definition at line 65 of file TrigITkModuleCuda.h.

◆ m_workItemCounters

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

Definition at line 64 of file TrigITkModuleCuda.h.


The documentation for this class was generated from the following file:
TrigAccel::TrigITkModuleID_CUDA
constexpr unsigned int TrigITkModuleID_CUDA
Definition: TrigInDetAccelCodes.h:13
histSizes.code
code
Definition: histSizes.py:129
calibdata.exit
exit
Definition: calibdata.py:236
error
Definition: IImpactPoint3dEstimator.h:70