CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

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