CMS 3D CMS Logo

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

◆ ~GPUData()

HeterogeneousHGCalHEBConditionsWrapper::GPUData::~GPUData ( )

Definition at line 169 of file HeterogeneousHGCalHEBConditions.cc.

169  {
170  if (host != nullptr) {
171  cudaCheck(cudaFree(host->params.testD_));
172  cudaCheck(cudaFreeHost(host));
173  }
174  cudaCheck(cudaFree(device));
175 }

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

Member Data Documentation

◆ device

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

Definition at line 54 of file HeterogeneousHGCalHEBConditions.h.

Referenced by ~GPUData().

◆ host

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

Definition at line 52 of file HeterogeneousHGCalHEBConditions.h.

Referenced by ~GPUData().

hgcal_conditions::parameters::HeterogeneousHGCalHEBParameters::testD_
double * testD_
Definition: HGCConditions.h:129
HeterogeneousHGCalHEBConditionsWrapper::GPUData::device
hgcal_conditions::HeterogeneousHEBConditionsESProduct * device
Definition: HeterogeneousHGCalHEBConditions.h:54
cudaCheck
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:62
HeterogeneousHGCalHEBConditionsWrapper::GPUData::host
hgcal_conditions::HeterogeneousHEBConditionsESProduct * host
Definition: HeterogeneousHGCalHEBConditions.h:52
hgcal_conditions::HeterogeneousHEBConditionsESProduct::params
parameters::HeterogeneousHGCalHEBParameters params
Definition: HGCConditions.h:193