CMS 3D CMS Logo

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

Public Member Functions

 ~GPUData ()
 

Public Attributes

hgcal_conditions::HeterogeneousHEFConditionsESProductdevice = nullptr
 
hgcal_conditions::HeterogeneousHEFConditionsESProducthost = nullptr
 

Detailed Description

Definition at line 54 of file HeterogeneousHGCalHEFConditions.h.

Constructor & Destructor Documentation

◆ ~GPUData()

HeterogeneousHGCalHEFConditionsWrapper::GPUData::~GPUData ( )

Definition at line 200 of file HeterogeneousHGCalHEFConditions.cc.

200  {
201  if (host != nullptr) {
202  cudaCheck(cudaFree(host->params.cellFineX_));
203  cudaCheck(cudaFreeHost(host));
204  }
205  cudaCheck(cudaFree(device));
206 }

References hgcal_conditions::parameters::HeterogeneousHGCalHEFParameters::cellFineX_, cudaCheck, device, host, and hgcal_conditions::HeterogeneousHEFConditionsESProduct::params.

Member Data Documentation

◆ device

hgcal_conditions::HeterogeneousHEFConditionsESProduct* HeterogeneousHGCalHEFConditionsWrapper::GPUData::device = nullptr

Definition at line 60 of file HeterogeneousHGCalHEFConditions.h.

Referenced by ~GPUData().

◆ host

hgcal_conditions::HeterogeneousHEFConditionsESProduct* HeterogeneousHGCalHEFConditionsWrapper::GPUData::host = nullptr

Definition at line 58 of file HeterogeneousHGCalHEFConditions.h.

Referenced by ~GPUData().

hgcal_conditions::HeterogeneousHEFConditionsESProduct::params
parameters::HeterogeneousHGCalHEFParameters params
Definition: HGCConditions.h:188
HeterogeneousHGCalHEFConditionsWrapper::GPUData::host
hgcal_conditions::HeterogeneousHEFConditionsESProduct * host
Definition: HeterogeneousHGCalHEFConditions.h:58
hgcal_conditions::parameters::HeterogeneousHGCalHEFParameters::cellFineX_
double * cellFineX_
Definition: HGCConditions.h:120
HeterogeneousHGCalHEFConditionsWrapper::GPUData::device
hgcal_conditions::HeterogeneousHEFConditionsESProduct * device
Definition: HeterogeneousHGCalHEFConditions.h:60
cudaCheck
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:62