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
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

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

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