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
HeterogeneousHGCalHEBConditionsWrapper::GPUData Struct Reference

Public Member Functions

 ~GPUData ()
 

Public Attributes

hgcal_conditions::HeterogeneousHEBConditionsESProductdevice = nullptr
 
hgcal_conditions::HeterogeneousHEBConditionsESProducthost = nullptr
 

Detailed Description

Definition at line 48 of file HeterogeneousHGCalHEBConditions.h.

Constructor & Destructor Documentation

HeterogeneousHGCalHEBConditionsWrapper::GPUData::~GPUData ( )

Definition at line 169 of file HeterogeneousHGCalHEBConditions.cc.

References cudaCheck, device, host, hgcal_conditions::HeterogeneousHEBConditionsESProduct::params, and hgcal_conditions::parameters::HeterogeneousHGCalHEBParameters::testD_.

169  {
170  if (host != nullptr) {
171  cudaCheck(cudaFree(host->params.testD_));
172  cudaCheck(cudaFreeHost(host));
173  }
174  cudaCheck(cudaFree(device));
175 }
hgcal_conditions::HeterogeneousHEBConditionsESProduct * host
parameters::HeterogeneousHGCalHEBParameters params
hgcal_conditions::HeterogeneousHEBConditionsESProduct * device
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:69

Member Data Documentation

hgcal_conditions::HeterogeneousHEBConditionsESProduct* HeterogeneousHGCalHEBConditionsWrapper::GPUData::device = nullptr
hgcal_conditions::HeterogeneousHEBConditionsESProduct* HeterogeneousHGCalHEBConditionsWrapper::GPUData::host = nullptr