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 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

◆ 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  }

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

◆ m_workItemCounters

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

Definition at line 65 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