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);
|