File: clblas_error_reporting.patch

package info (click to toggle)
libgpuarray 0.7.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,784 kB
  • sloc: ansic: 19,235; python: 4,621; makefile: 213; sh: 9
file content (18 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (2)
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";
     }