CMS 3D CMS Logo

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

Public Member Functions

 ~GPUData ()
 

Public Attributes

pixelCPEforGPU::ParamsOnGPUparamsOnGPU_d = nullptr
 
pixelCPEforGPU::ParamsOnGPU paramsOnGPU_h
 

Detailed Description

Definition at line 54 of file PixelCPEFast.h.

Constructor & Destructor Documentation

◆ ~GPUData()

PixelCPEFast::GPUData::~GPUData ( )

Definition at line 412 of file PixelCPEFast.cc.

References pixelCPEforGPU::ParamsOnGPU::m_averageGeometry, pixelCPEforGPU::ParamsOnGPU::m_commonParams, pixelCPEforGPU::ParamsOnGPU::m_detParams, pixelCPEforGPU::ParamsOnGPU::m_layerGeometry, paramsOnGPU_d, and paramsOnGPU_h.

412  {
413  if (paramsOnGPU_d != nullptr) {
414  cudaFree((void*)paramsOnGPU_h.m_commonParams);
415  cudaFree((void*)paramsOnGPU_h.m_detParams);
416  cudaFree((void*)paramsOnGPU_h.m_averageGeometry);
417  cudaFree((void*)paramsOnGPU_h.m_layerGeometry);
418  cudaFree(paramsOnGPU_d);
419  }
420 }
DetParams const * m_detParams
pixelCPEforGPU::ParamsOnGPU paramsOnGPU_h
Definition: PixelCPEFast.h:57
LayerGeometry const * m_layerGeometry
AverageGeometry const * m_averageGeometry
CommonParams const * m_commonParams
pixelCPEforGPU::ParamsOnGPU * paramsOnGPU_d
Definition: PixelCPEFast.h:58

Member Data Documentation

◆ paramsOnGPU_d

pixelCPEforGPU::ParamsOnGPU* PixelCPEFast::GPUData::paramsOnGPU_d = nullptr

Definition at line 58 of file PixelCPEFast.h.

Referenced by ~GPUData().

◆ paramsOnGPU_h

pixelCPEforGPU::ParamsOnGPU PixelCPEFast::GPUData::paramsOnGPU_h

Definition at line 57 of file PixelCPEFast.h.

Referenced by ~GPUData().