CMS 3D CMS Logo

Namespaces | Macros | Functions
cudaCheck.h File Reference
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <cuda.h>
#include <cuda_runtime.h>
#include "FWCore/Utilities/interface/Likely.h"

Go to the source code of this file.

Namespaces

 cms
 Namespace of DDCMS conversion namespace.
 
 cms::cuda
 

Macros

#define cudaCheck(ARG, ...)   (cms::cuda::cudaCheck_(__FILE__, __LINE__, #ARG, (ARG), ##__VA_ARGS__))
 

Functions

void cms::cuda::abortOnCudaError (const char *file, int line, const char *cmd, const char *error, const char *message, std::string_view description=std::string_view())
 
bool cms::cuda::cudaCheck_ (const char *file, int line, const char *cmd, CUresult result, std::string_view description=std::string_view())
 
bool cms::cuda::cudaCheck_ (const char *file, int line, const char *cmd, cudaError_t result, std::string_view description=std::string_view())
 

Macro Definition Documentation

◆ cudaCheck

#define cudaCheck (   ARG,
  ... 
)    (cms::cuda::cudaCheck_(__FILE__, __LINE__, #ARG, (ARG), ##__VA_ARGS__))

Definition at line 69 of file cudaCheck.h.

Referenced by HcalCPUDigisProducer::acquire(), HcalDigisProducerGPU::acquire(), TestCUDAProducerGPUtoCPU::acquire(), HcalCPURecHitsProducer::acquire(), SiPixelDigisSoAFromCUDA::acquire(), TestCUDAProducerGPUEW::acquire(), EcalCPUUncalibRecHitProducer::acquire(), PixelVertexSoAFromCUDA::acquire(), EcalCPUDigisProducer::acquire(), EcalCPURecHitProducer::acquire(), TestCUDAProducerGPUEWTask::acquire(), PixelTrackSoAFromCUDAT< TrackerTraits >::acquire(), SiPixelRecHitSoAFromCUDAT< TrackerTraits >::acquire(), EcalRecHitProducerGPU::acquire(), TestCUDAProducerGPUEWTask::addSimpleWork(), cms::cuda::allocate_device(), cms::cuda::allocate_host(), HeterogeneousHGCalHEFCellPositionsConditions::allocate_memory_(), HeterogeneousHGCalHEFConditionsWrapper::allocate_memory_params_(), CAHitNtupletGeneratorKernelsCPU< TrackerTraits >::allocateOnGPU(), CUDATestWrapperAdditionModule::analyze(), CUDATestKernelAdditionModule::analyze(), CUDATestDeviceAdditionModule::analyze(), CAHitNtupletGeneratorOnGPU< TrackerTraits >::beginJob(), cms::cuda::copyAsync(), CUDAService::CUDAService(), cms::cuda::currentDevice(), cms::cuda::ESProduct< HcalGainWidthsGPU::Product >::dataForCurrentDeviceAsync(), notcub::CachingDeviceAllocator::DeviceAllocate(), cms::cuda::deviceCount(), notcub::CachingDeviceAllocator::DeviceFree(), cms::cuda::impl::ScopedContextHolderHelper::enqueueCallback(), cms::cuda::eventWorkHasCompleted(), cms::cuda::free_device(), cms::cuda::free_host(), notcub::CachingHostAllocator::FreeAllCached(), notcub::CachingDeviceAllocator::FreeAllCached(), cms::cuda::StreamCache::get(), SiPixelGainCalibrationForHLTGPU::getGPUProductAsync(), SiPixelROCsStatusAndMappingWrapper::getGPUProductAsync(), PixelCPEFast< TrackerTraits >::getGPUProductAsync(), HeterogeneousHGCalHEFCellPositionsConditions::getHeterogeneousConditionsESProductAsync(), HeterogeneousHGCalHEFConditionsWrapper::getHeterogeneousConditionsESProductAsync(), HeterogeneousHGCalHEBConditionsWrapper::getHeterogeneousConditionsESProductAsync(), HeterogeneousHGCalEEConditionsWrapper::getHeterogeneousConditionsESProductAsync(), SiPixelROCsStatusAndMappingWrapper::getModToUnpAllAsync(), SiPixelROCsStatusAndMappingWrapper::getModToUnpRegionalAsync(), EcalPulseCovariancesGPU::getProduct(), EcalPulseShapesGPU::getProduct(), HcalMahiPulseOffsetsGPU::getProduct(), hcal::raw::ElectronicsMappingGPU::getProduct(), HcalRecoParamsWithPulseShapesGPU::getProduct(), HeterogeneousHGCalEEConditionsWrapper::HeterogeneousHGCalEEConditionsWrapper(), HeterogeneousHGCalHEBConditionsWrapper::HeterogeneousHGCalHEBConditionsWrapper(), TrackingRecHitSoADevice< TrackerTraits >::hitsModuleStartToHostAsync(), notcub::CachingHostAllocator::HostAllocate(), notcub::CachingHostAllocator::HostFree(), cms::cuda::launch(), cms::cuda::launch_cooperative(), TrackingRecHitSoADevice< TrackerTraits >::localCoordToHostAsync(), gpuVertexFinder::Producer< TrackerTraits >::make(), cms::cuda::make_host_noncached_unique(), stripgpu::SiStripRawToClusterGPUKernel::makeAsync(), cms::cuda::EventCache::makeOrGet(), CAHitNtupletGeneratorOnGPU< TrackerTraits >::makeTuplesAsync(), cms::cuda::memsetAsync(), cms::cuda::allocator::minCachedBytes(), cms::cudatest::opaque_add_vectors_d(), cms::cudatest::opaque_add_vectors_f(), cms::cuda::host::noncached::impl::HostDeleter::operator()(), cms::cuda::StreamCache::Deleter::operator()(), cms::cuda::EventCache::Deleter::operator()(), EcalPhase2DigiToGPUProducer::produce(), EcalUncalibRecHitPhase2WeightsProducerGPU::produce(), cms::cuda::impl::ScopedContextBase::ScopedContextBase(), cms::cuda::ScopedSetDevice::ScopedSetDevice(), cms::cuda::ScopedSetDevice::set(), setCudaLimit(), SiPixelGainCalibrationForHLTGPU::SiPixelGainCalibrationForHLTGPU(), SiPixelROCsStatusAndMappingWrapper::SiPixelROCsStatusAndMappingWrapper(), SiStripClustersCUDADevice::SiStripClustersCUDADevice(), SiStripClustersCUDAHost::SiStripClustersCUDAHost(), cms::cuda::impl::ScopedContextGetterBase::synchronizeStreams(), HeterogeneousSoA< T >::toHostAsync(), HeterogeneousSoAImpl< T, Traits >::toHostAsync(), TrackingRecHitSoADevice< TrackerTraits >::TrackingRecHitSoADevice(), CUDAService::~CUDAService(), SiPixelGainCalibrationForHLTGPU::GPUData::~GPUData(), SiPixelROCsStatusAndMappingWrapper::GPUData::~GPUData(), HeterogeneousHGCalEEConditionsWrapper::GPUData::~GPUData(), HeterogeneousHGCalHEBConditionsWrapper::GPUData::~GPUData(), HeterogeneousHGCalHEFConditionsWrapper::GPUData::~GPUData(), HeterogeneousHGCalHEFCellPositionsConditions::GPUData::~GPUData(), HeterogeneousHGCalEEConditionsWrapper::~HeterogeneousHGCalEEConditionsWrapper(), HeterogeneousHGCalHEBConditionsWrapper::~HeterogeneousHGCalHEBConditionsWrapper(), HeterogeneousHGCalHEFCellPositionsConditions::~HeterogeneousHGCalHEFCellPositionsConditions(), HeterogeneousHGCalHEFConditionsWrapper::~HeterogeneousHGCalHEFConditionsWrapper(), SiPixelROCsStatusAndMappingWrapper::ModulesToUnpack::~ModulesToUnpack(), EcalPulseShapesGPU::Product::~Product(), HcalMahiPulseOffsetsGPU::Product::~Product(), EcalPulseCovariancesGPU::Product::~Product(), hcal::raw::ElectronicsMappingGPU::Product::~Product(), HcalRecoParamsWithPulseShapesGPU::Product::~Product(), SiPixelGainCalibrationForHLTGPU::~SiPixelGainCalibrationForHLTGPU(), and SiPixelROCsStatusAndMappingWrapper::~SiPixelROCsStatusAndMappingWrapper().