1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: Actually use all the clblasStatus-to-string table
Error code -1024 is the lowest (most negative), not the highest
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: https://github.com/Theano/libgpuarray/pull/584
--- libgpuarray-0.7.6.orig/src/gpuarray_blas_opencl_clblas.c
+++ libgpuarray-0.7.6/src/gpuarray_blas_opencl_clblas.c
@@ -35,7 +35,7 @@ static inline clblasTranspose convT(cb_t
static unsigned int refcnt = 0;
static const char *estr(clblasStatus err) {
- if (err > -1024) {
+ if (err > -900) {
if (err == CL_INVALID_DEVICE) {
return "Invalid device, or double precision requested on a device that does not support double precision";
}
|