CMS 3D CMS Logo

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

Public Member Functions

 ~GPUData ()
 

Public Attributes

hgcal_conditions::HeterogeneousEEConditionsESProductdevice = nullptr
 
hgcal_conditions::HeterogeneousEEConditionsESProducthost = nullptr
 

Detailed Description

Definition at line 45 of file HeterogeneousHGCalEEConditions.h.

Constructor & Destructor Documentation

◆ ~GPUData()

HeterogeneousHGCalEEConditionsWrapper::GPUData::~GPUData ( )

Definition at line 182 of file HeterogeneousHGCalEEConditions.cc.

182  {
183  if (host != nullptr) {
184  cudaCheck(cudaFree(host->params.cellFineX_));
185  cudaCheck(cudaFreeHost(host));
186  }
187  cudaCheck(cudaFree(device));
188 }

References hgcal_conditions::parameters::HeterogeneousHGCalEEParameters::cellFineX_, cudaCheck, device, host, and hgcal_conditions::HeterogeneousEEConditionsESProduct::params.

Member Data Documentation

◆ device

hgcal_conditions::HeterogeneousEEConditionsESProduct* HeterogeneousHGCalEEConditionsWrapper::GPUData::device = nullptr

Definition at line 51 of file HeterogeneousHGCalEEConditions.h.

Referenced by ~GPUData().

◆ host

hgcal_conditions::HeterogeneousEEConditionsESProduct* HeterogeneousHGCalEEConditionsWrapper::GPUData::host = nullptr

Definition at line 49 of file HeterogeneousHGCalEEConditions.h.

Referenced by ~GPUData().

hgcal_conditions::parameters::HeterogeneousHGCalEEParameters::cellFineX_
double * cellFineX_
Definition: HGCConditions.h:110
HeterogeneousHGCalEEConditionsWrapper::GPUData::host
hgcal_conditions::HeterogeneousEEConditionsESProduct * host
Definition: HeterogeneousHGCalEEConditions.h:49
HeterogeneousHGCalEEConditionsWrapper::GPUData::device
hgcal_conditions::HeterogeneousEEConditionsESProduct * device
Definition: HeterogeneousHGCalEEConditions.h:51
hgcal_conditions::HeterogeneousEEConditionsESProduct::params
parameters::HeterogeneousHGCalEEParameters params
Definition: HGCConditions.h:185
cudaCheck
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:69