Bug 95038

Summary: atomic_add and atomic_or cause a OpenCL crashes
Product: Mesa Reporter: rosenp
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: 11.2   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description rosenp 2016-04-20 19:06:01 UTC
No real idea if this is an issue for LLVM or for Mesa but on my r600g GPU(6520g) LLVM crashes when compiling an opencl kernel that uses either atomic_add or atomic_or. On LLVM 3.8 and mesa 11.2
Comment 1 Aaron Watry 2016-04-20 20:34:11 UTC
Are the atomic_add/atomic_or operations causing the crash operating against local or global memory?

Last I checked, I think that atomics for r600g-based cards were only implemented in LLVM for the local memory space (while SI+ have both local/global implemented).

Someone may have gotten around to implementing support for global atomics for Evergreen/NI in LLVM while I wasn't looking, but I have no knowledge of it having been done.
Comment 2 rosenp 2016-04-20 20:53:30 UTC
it's for global memory. looks like it's unimplemented according to the galliumcompute chart. Oh well.

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.