File: disable_out_of_order.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 (19 lines) | stat: -rw-r--r-- 687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Stop using out-of-order queues, as they break clblas

Avoids wrong results in gemm(batch) and possibly other clblas functions.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/949767
Forwarded: no

--- libgpuarray-0.7.6.orig/src/gpuarray_buffer_opencl.c
+++ libgpuarray-0.7.6/src/gpuarray_buffer_opencl.c
@@ -182,7 +182,7 @@ cl_ctx *cl_make_ctx(cl_context ctx, gpuc
   res->options = NULL;
   res->q = clCreateCommandQueue(
     ctx, id,
-    ISSET(p->flags, GA_CTX_SINGLE_STREAM) ? 0 : qprop&CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE,
+    0,
     &err);
   if (res->q == NULL) {
     error_cl(global_err, "clCreateCommandQueue", err);