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(), TestCUDAProducerGPUEW::acquire(), EcalCPUUncalibRecHitProducer::acquire(), EcalCPUDigisProducer::acquire(), TestCUDAProducerGPUEWTask::acquire(), EcalCPURecHitProducer::acquire(), EcalRecHitProducerGPU::acquire(), TestCUDAProducerGPUEWTask::addSimpleWork(), cms::cuda::allocate_device(), cms::cuda::allocate_host(), HeterogeneousHGCalHEFCellPositionsConditions::allocate_memory_(), HeterogeneousHGCalHEFConditionsWrapper::allocate_memory_params_(), CAHitNtupletGeneratorKernels< TTraits >::allocateOnGPU(), CAHitNtupletGeneratorOnGPU::beginJob(), SiPixelDigisCUDA::copyAllToHostAsync(), cms::cuda::copyAsync(), CUDAService::CUDAService(), cms::cuda::currentDevice(), cms::cuda::ESProduct< HcalGainWidthsGPU::Product >::dataForCurrentDeviceAsync(), notcub::CachingDeviceAllocator::DeviceAllocate(), cms::cuda::deviceCount(), notcub::CachingDeviceAllocator::DeviceFree(), CUDAService::deviceWithMostFreeMemory(), 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::getGPUProductAsync(), HeterogeneousHGCalHEBConditionsWrapper::getHeterogeneousConditionsESProductAsync(), HeterogeneousHGCalHEFCellPositionsConditions::getHeterogeneousConditionsESProductAsync(), HeterogeneousHGCalHEFConditionsWrapper::getHeterogeneousConditionsESProductAsync(), HeterogeneousHGCalEEConditionsWrapper::getHeterogeneousConditionsESProductAsync(), SiPixelROCsStatusAndMappingWrapper::getModToUnpAllAsync(), SiPixelROCsStatusAndMappingWrapper::getModToUnpRegionalAsync(), EcalPulseCovariancesGPU::getProduct(), EcalPulseShapesGPU::getProduct(), HcalMahiPulseOffsetsGPU::getProduct(), hcal::raw::ElectronicsMappingGPU::getProduct(), HcalRecoParamsWithPulseShapesGPU::getProduct(), HeterogeneousHGCalEEConditionsWrapper::HeterogeneousHGCalEEConditionsWrapper(), HeterogeneousHGCalHEBConditionsWrapper::HeterogeneousHGCalHEBConditionsWrapper(), TrackingRecHit2DHeterogeneous< Traits >::hitsModuleStartToHostAsync(), notcub::CachingHostAllocator::HostAllocate(), notcub::CachingHostAllocator::HostFree(), cms::cuda::launch(), cms::cuda::launch_cooperative(), gpuVertexFinder::Producer::make(), cms::cuda::make_host_noncached_unique(), cms::cuda::EventCache::makeOrGet(), CAHitNtupletGeneratorOnGPU::makeTuplesAsync(), cms::cuda::memsetAsync(), cms::cuda::allocator::minCachedBytes(), 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(), cms::cuda::impl::ScopedContextGetterBase::synchronizeStreams(), HeterogeneousSoA< T >::toHostAsync(), HeterogeneousSoAImpl< T, Traits >::toHostAsync(), 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(), HcalMahiPulseOffsetsGPU::Product::~Product(), EcalPulseCovariancesGPU::Product::~Product(), EcalPulseShapesGPU::Product::~Product(), hcal::raw::ElectronicsMappingGPU::Product::~Product(), HcalRecoParamsWithPulseShapesGPU::Product::~Product(), SiPixelGainCalibrationForHLTGPU::~SiPixelGainCalibrationForHLTGPU(), and SiPixelROCsStatusAndMappingWrapper::~SiPixelROCsStatusAndMappingWrapper().