From 32eb113de5bb7fbac36ad613c6cc47d2ea77c58f Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Tue, 22 Jan 2019 18:01:25 +0100 Subject: [PATCH] Use the explicit exception type --- HeterogeneousCore/CUDACore/src/GPUCuda.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }