Commits

Kashif Rasul committed b02eeb9

return CUDA_ERROR

Comments (0)

Files changed (1)

     err = cudaMalloc((void**)&mat->data_device, len*sizeof(mat->data_device[0]));
 
     if (err != cudaSuccess) {
-        return err;
+        return CUDA_ERROR;
     }
 
     mat->on_device = 1;