<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Make Theano OpenCL support work on Clover and RadeonSI"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100105#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Make Theano OpenCL support work on Clover and RadeonSI"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100105">bug 100105</a>
from <span class="vcard"><a class="email" href="mailto:jan.vesely@rutgers.edu" title="Jan Vesely <jan.vesely@rutgers.edu>"> <span class="fn">Jan Vesely</span></a>
</span></b>
<pre>*** Testing for AMD Radeon R7 Graphics (CARRIZO / DRM 3.18.0 / 4.11.0-ROC, LLVM
5.0.0)
Ran 6670 tests in 785.274s
FAILED (SKIP=12, errors=580, failures=12)
all errors are caused by:
TypeError: This is for CUDA arrays.
I haven't investigated the failures.
There are couple of patches needed:
<a href="https://github.com/Theano/libgpuarray/pull/534">https://github.com/Theano/libgpuarray/pull/534</a>
<a href="https://github.com/Theano/libgpuarray/pull/535">https://github.com/Theano/libgpuarray/pull/535</a>
<a href="http://lists.llvm.org/pipermail/libclc-dev/2017-September/002449.html">http://lists.llvm.org/pipermail/libclc-dev/2017-September/002449.html</a>
and:
diff --git a/src/cluda_opencl.h b/src/cluda_opencl.h
index 6e0095c..e93aa8b 100644
--- a/src/cluda_opencl.h
+++ b/src/cluda_opencl.h
@@ -48,9 +48,9 @@ typedef struct _ga_half {
} ga_half;
#define ga_half2float(p) vload_half(0, &((p).data))
-static inline ga_half ga_float2half(ga_float f) {
+inline ga_half ga_float2half(ga_float f) {
ga_half r;
- vstore_half_rtn(f, 0, &r.data);
+ vstore_half(f, 0, &r.data);
return r;
}
diff --git a/src/gpuarray_buffer_opencl.c b/src/gpuarray_buffer_opencl.c
index 8f12811..2041ca2 100644
--- a/src/gpuarray_buffer_opencl.c
+++ b/src/gpuarray_buffer_opencl.c
@@ -146,7 +146,7 @@ cl_ctx *cl_make_ctx(cl_context ctx, gpucontext_props *p) {
CL_CHECKN(global_err, clGetDeviceInfo(id, CL_DEVICE_VERSION,
device_version_size,
device_version, NULL));
- if (device_version[7] == '1' && device_version[9] < '2') {
+ if (device_version[7] == '1' && device_version[9] < '1') {
error_set(global_err, GA_UNSUPPORTED_ERROR,
"We only support OpenCL 1.2 and up");
return NULL;</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>