CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HeterogeneousHGCalHEFCellPositionsConditions::GPUData Struct Reference

Public Member Functions

 ~GPUData ()
 

Public Attributes

hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProductdevice = nullptr
 
hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProducthost = nullptr
 

Detailed Description

Definition at line 61 of file HeterogeneousHGCalHEFCellPositionsConditions.h.

Constructor & Destructor Documentation

◆ ~GPUData()

HeterogeneousHGCalHEFCellPositionsConditions::GPUData::~GPUData ( )

Definition at line 299 of file HeterogeneousHGCalHEFCellPositionsConditions.cc.

References cudaCheck, device, host, hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct::posmap, and hgcal_conditions::positions::HeterogeneousHGCalPositionsMapping::x.

299  {
300  if (host != nullptr) {
301  cudaCheck(cudaFree(host->posmap.x));
302  cudaCheck(cudaFreeHost(host));
303  }
304  cudaCheck(cudaFree(device));
305 }
positions::HeterogeneousHGCalPositionsMapping posmap
hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct * device
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:69
hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct * host

Member Data Documentation

◆ device

hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* HeterogeneousHGCalHEFCellPositionsConditions::GPUData::device = nullptr

Definition at line 67 of file HeterogeneousHGCalHEFCellPositionsConditions.h.

Referenced by ~GPUData().

◆ host

hgcal_conditions::HeterogeneousHEFCellPositionsConditionsESProduct* HeterogeneousHGCalHEFCellPositionsConditions::GPUData::host = nullptr