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
PixelCPEFast::GPUData Struct Reference

Public Member Functions

 ~GPUData ()
 

Public Attributes

pixelCPEforGPU::ParamsOnGPUparamsOnGPU_d = nullptr
 
pixelCPEforGPU::ParamsOnGPU paramsOnGPU_h
 

Detailed Description

Definition at line 50 of file PixelCPEFast.h.

Constructor & Destructor Documentation

PixelCPEFast::GPUData::~GPUData ( )

Definition at line 346 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.

346  {
347  if (paramsOnGPU_d != nullptr) {
348  cudaFree((void*)paramsOnGPU_h.m_commonParams);
349  cudaFree((void*)paramsOnGPU_h.m_detParams);
350  cudaFree((void*)paramsOnGPU_h.m_averageGeometry);
351  cudaFree((void*)paramsOnGPU_h.m_layerGeometry);
352  cudaFree(paramsOnGPU_d);
353  }
354 }
DetParams const * m_detParams
pixelCPEforGPU::ParamsOnGPU paramsOnGPU_h
Definition: PixelCPEFast.h:53
LayerGeometry const * m_layerGeometry
AverageGeometry const * m_averageGeometry
CommonParams const * m_commonParams
pixelCPEforGPU::ParamsOnGPU * paramsOnGPU_d
Definition: PixelCPEFast.h:54

Member Data Documentation

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

Definition at line 54 of file PixelCPEFast.h.

Referenced by PixelCPEFast::getGPUProductAsync(), and ~GPUData().

pixelCPEforGPU::ParamsOnGPU PixelCPEFast::GPUData::paramsOnGPU_h

Definition at line 53 of file PixelCPEFast.h.

Referenced by PixelCPEFast::getGPUProductAsync(), and ~GPUData().