Summary: | Clover on RadeonSI OpenCL segfault during testing of clBLAS | ||
---|---|---|---|
Product: | Mesa | Reporter: | joshua.r.marshall.1991 |
Component: | Gallium/StateTracker/Clover | Assignee: | mesa-dev |
Status: | RESOLVED MOVED | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | CC: | pbrobinson |
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 99553, 99765, 100105 |
Description
joshua.r.marshall.1991
2016-02-24 01:05:09 UTC
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 [1] (have to clean up and post the patch, will do soon). Test makes it a bit further now: $ test-short Initialize default OpenCL and clblas... SetUp: about to create command queues Test environment: 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]. [1] https://www.khronos.org/registry/OpenCL/sdk/1.2/docs/man/xhtml/clEnqueueFillBuffer.html [2] https://github.com/clMathLibraries/clBLAS/issues/307 [3] https://github.com/clMathLibraries/clBLAS/issues/308 -- 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. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.