diff --git a/HeterogeneousCore/CUDACore/src/GPUCuda.cc b/HeterogeneousCore/CUDACore/src/GPUCuda.cc index 154c3edf80411..3b5b52b3e532f 100644 --- a/HeterogeneousCore/CUDACore/src/GPUCuda.cc +++ b/HeterogeneousCore/CUDACore/src/GPUCuda.cc @@ -84,7 +84,7 @@ namespace heterogeneous { auto error = cudaGetErrorName(status); auto message = cudaGetErrorString(status); throw cms::Exception("CUDAError") << "Callback of CUDA stream " << streamId << " in device " << deviceId << " error " << error << ": " << message; - } catch(...) { + } catch(cms::Exception &) { waitingTaskHolder.doneWaiting(std::current_exception()); } }