From 3439232730b35ce392e163f8bf0bc925a0579512 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 14 Mar 2016 08:46:42 +0000
Subject: [PATCH] color stable

---
 src/cuda.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/cuda.c b/src/cuda.c
index e95feff..d773d0b 100644
--- a/src/cuda.c
+++ b/src/cuda.c
@@ -67,6 +67,7 @@
         status = cudaMemcpy(x_gpu, x, size, cudaMemcpyHostToDevice);
         check_error(status);
     }
+    if(!x_gpu) error("Cuda malloc failed\n");
     return x_gpu;
 }
 

--
Gitblit v1.10.0