ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TrigInDetModuleCuda Class Reference

#include <TrigInDetModuleCuda.h>

Inheritance diagram for TrigInDetModuleCuda:
Collaboration diagram for TrigInDetModuleCuda:

Public Member Functions

 TrigInDetModuleCuda ()
 
 ~TrigInDetModuleCuda ()
 
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 TrigInDetModuleCuda.h.

Constructor & Destructor Documentation

◆ TrigInDetModuleCuda()

TrigInDetModuleCuda::TrigInDetModuleCuda ( )

◆ ~TrigInDetModuleCuda()

TrigInDetModuleCuda::~TrigInDetModuleCuda ( )

Member Function Documentation

◆ checkError()

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

Definition at line 36 of file TrigInDetModuleCuda.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 TrigInDetModuleCuda::configure ( )
virtual

◆ createManagedSeedMakingContext()

SeedMakingManagedDeviceContext* TrigInDetModuleCuda::createManagedSeedMakingContext ( int  ) const
private

◆ createSeedMakingContext()

SeedMakingDeviceContext* TrigInDetModuleCuda::createSeedMakingContext ( int  ) const
private

◆ createWork()

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

◆ getFactoryId()

virtual int TrigInDetModuleCuda::getFactoryId ( )
inlinevirtual

Implements TrigAccel::WorkFactory.

Definition at line 30 of file TrigInDetModuleCuda.h.

30  {
32  }

◆ getProvidedAlgs()

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

Member Data Documentation

◆ m_d_detmodel_ptrs

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

Definition at line 50 of file TrigInDetModuleCuda.h.

◆ m_dumpTimeLine

bool TrigInDetModuleCuda::m_dumpTimeLine
private

Definition at line 62 of file TrigInDetModuleCuda.h.

◆ m_h_detmodel

unsigned char* TrigInDetModuleCuda::m_h_detmodel
private

Definition at line 48 of file TrigInDetModuleCuda.h.

◆ m_maxDevice

int TrigInDetModuleCuda::m_maxDevice
private

Definition at line 52 of file TrigInDetModuleCuda.h.

◆ m_timeLine

WorkTimeStampQueue TrigInDetModuleCuda::m_timeLine
private

Definition at line 65 of file TrigInDetModuleCuda.h.

◆ m_workItemCounters

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

Definition at line 64 of file TrigInDetModuleCuda.h.


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