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

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

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