summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Kulhanek <tomas.kulhanek@stfc.ac.uk>2018-12-17 12:59:06 +0000
committerGitHub <noreply@github.com>2018-12-17 12:59:06 +0000
commit8d01593b6580881ff554824ba598720202b0eb7b (patch)
tree848ccaf6138eebe8bc88e13a85cecd9ef3e55205
parent21f9ea396f37299529543b2b20f5d70f139147b1 (diff)
downloadregularization-8d01593b6580881ff554824ba598720202b0eb7b.tar.gz
regularization-8d01593b6580881ff554824ba598720202b0eb7b.tar.bz2
regularization-8d01593b6580881ff554824ba598720202b0eb7b.tar.xz
regularization-8d01593b6580881ff554824ba598720202b0eb7b.zip
UPDATE: return -1 on error
-rw-r--r--Core/regularisers_GPU/dTV_FGP_GPU_core.cu2
1 files changed, 1 insertions, 1 deletions
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;