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.

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

182  {
183  if (host != nullptr) {
184  cudaCheck(cudaFree(host->params.cellFineX_));
185  cudaCheck(cudaFreeHost(host));
186  }
187  cudaCheck(cudaFree(device));
188 }
hgcal_conditions::HeterogeneousEEConditionsESProduct * host
parameters::HeterogeneousHGCalEEParameters params
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:69
hgcal_conditions::HeterogeneousEEConditionsESProduct * device

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