ATLAS Offline Software
Loading...
Searching...
No Matches
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 17 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 37 of file TrigInDetModuleCuda.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 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 31 of file TrigInDetModuleCuda.h.

31 {
33 }
constexpr unsigned int TrigInDetModuleID_CUDA

◆ 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 51 of file TrigInDetModuleCuda.h.

◆ m_dumpTimeLine

bool TrigInDetModuleCuda::m_dumpTimeLine
private

Definition at line 63 of file TrigInDetModuleCuda.h.

◆ m_h_detmodel

unsigned char* TrigInDetModuleCuda::m_h_detmodel
private

Definition at line 49 of file TrigInDetModuleCuda.h.

◆ m_maxDevice

int TrigInDetModuleCuda::m_maxDevice
private

Definition at line 53 of file TrigInDetModuleCuda.h.

◆ m_timeLine

WorkTimeStampQueue TrigInDetModuleCuda::m_timeLine
private

Definition at line 66 of file TrigInDetModuleCuda.h.

◆ m_workItemCounters

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

Definition at line 65 of file TrigInDetModuleCuda.h.


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