From 8d01593b6580881ff554824ba598720202b0eb7b Mon Sep 17 00:00:00 2001 From: Tomas Kulhanek Date: Mon, 17 Dec 2018 12:59:06 +0000 Subject: UPDATE: return -1 on error --- Core/regularisers_GPU/dTV_FGP_GPU_core.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/regularisers_GPU/dTV_FGP_GPU_core.cu b/Core/regularisers_GPU/dTV_FGP_GPU_core.cu index 0bc3ff0..7503ec7 100644 --- a/Core/regularisers_GPU/dTV_FGP_GPU_core.cu +++ b/Core/regularisers_GPU/dTV_FGP_GPU_core.cu @@ -461,7 +461,7 @@ extern "C" int dTV_FGP_GPU_main(float *Input, float *InputRef, float *Output, fl cudaGetDeviceCount(&deviceCount); if (deviceCount == 0) { fprintf(stderr, "No CUDA devices found\n"); - return; + return -1; } int count = 0, i; -- cgit v1.2.3