When running the included tests in clBLAS, there is a sagfault originating in libMesaOpenCL.so.1 called from the clBLAS test suite. I cannot localize the bug to mesa or clBLAS.
the clBLAS bug report is here: https://github.com/clMathLibraries/clBLAS/issues/229
Printed output when run in gdb: https://gist.github.com/anadon/82d7cdffb1275d71708f
Stack trace: https://gist.github.com/anadon/586f54b5f62a22e339af
Core dump at 1131MB: http://cs.mtu.edu/~jrmarsha/core.27756
Part of the issue EdB from irc found was the use of a function called "cl_amd_print" as a functions which appears to be built into the AMD implementation of OpenCL but does not appear in any revision of the specification. While this shouldn't necessarily build, I think it is worth asking the question of if it can be made more apparent that this is the issue. I'm not experienced to know if this discussion has been had or I missed something, or that this should have been handled differently in Mesa.
Improved stacktrace with debug information: https://gist.github.com/anadon/4bc558761e1192e26d0d
What version of llvm do you use? This sources compile fine here when clover is build with llvm 3.9svn
Can you post the output of CLOVER_DEBUG=llvm
The backtrace seems to indicate that you somehow have ended up with debug info included which isn't fully implemented yet
(In reply to Matt Arsenault from comment #5)
> Can you post the output of CLOVER_DEBUG=llvm
> The backtrace seems to indicate that you somehow have ended up with debug
> info included which isn't fully implemented yet
I think I might have fixed this crash or a similar one a few months ago
It's running LLVM 3.7. Getting it to work off of SVN is a pain so I've been sticking with Arch's package.
I have made some progress with clBLAS by implementing clEnqueueFillBuffer() from OpenCL 1.2  (have to clean up and post the patch, will do soon). Test makes it a bit further now:
Initialize default OpenCL and clblas...
SetUp: about to create command queues
Device name: AMD FIJI (DRM 3.8.0 / 4.9.14-200.fc25.x86_64, LLVM 5.0.0)
Device vendor: AMD
Platform (bit): Linux
clblas version: 2.12.0
Driver version: 17.1.0-devel
Device version: OpenCL 1.1 Mesa 17.1.0-devel (git-0c3fbf8)
Global mem size: 7984 MB
[==========] Running 10096 tests from 125 test cases.
[----------] Global test environment set-up.
[----------] 4 tests from TRSM_extratest
[ RUN ] TRSM_extratest.strsm
[ OK ] TRSM_extratest.strsm (813 ms)
clBLAS is required (at least) for Octopus and Theano. I expect to get it working over the coming months, hopefully along with improving clBLAS, fixing stuff like [2, 3].
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/132.