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.

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

200  {
201  if (host != nullptr) {
202  cudaCheck(cudaFree(host->params.cellFineX_));
203  cudaCheck(cudaFreeHost(host));
204  }
205  cudaCheck(cudaFree(device));
206 }
hgcal_conditions::HeterogeneousHEFConditionsESProduct * host
hgcal_conditions::HeterogeneousHEFConditionsESProduct * device
parameters::HeterogeneousHGCalHEFParameters params
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:69

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().