Skip to contentSkip to conversation

clover on radeonsi fails in radeon_shader_binary_config_start

Bug 88669 [email protected] 1 participant 9 messages Jan 21, 2015 – Mar 22, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=88669

Bug ID: 88669
Summary: clover on radeonsi fails in
radeon_shader_binary_config_start
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 112609
--> https://bugs.freedesktop.org/attachment.cgi?id=112609&action=edit
backtrace

ImageMagick 6.9.0 with OpenCL crashes, when bluring an image.

I'm using current mesa from git (after commit 3c3e60e050ea0850fcfeb5c4c2aa4f954d54d665) on Radeon HD 7750 (Southern Islands / Cape Verde).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88669

--- Comment #3 from Michel Dänzer <[email protected]> ---
I suspect symbol_count might be 0 in parse_symbol_table(), in which case binary->global_symbol_offsets would probably end up as NULL.

Not sure that should ever happen though. Michael, which version of libelf are you using?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88669

--- Comment #5 from Tom Stellard <[email protected]> ---
Can you run the program with CLOVER_DEBUG=clc,llvm,asm and post the output.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88669

--- Comment #7 from [email protected] ---
OK, I guess, I identified the issue.

ImageMagick cached an old OpenCL program compiled some months ago, after removing that, it does not crash any more.

Now the build fails, because cospi() and sinpi() are not yet supported by libclc.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author Reviewed-by Jeroen Ketema Reviewed-by Tom Stellard
#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88669

Vedran Miletić <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
             Blocks|                            |99553

--- Comment #8 from Vedran Miletić <[email protected]> --- Should be fixed by:

commit 60b42171139886edb8a64624e9126eab36f8e726

Author: Aaron Watry <[email protected]>
Date:   Thu Feb 26 15:42:00 2015 +0000

libclc/math: Add cospi

Ported from the libclc/amd-builtins branch

v2: Rename sincos_f_piby4 to __libclc__sincosf_piby4
Add cospi(double) implementation instead of using llvm.cos

Notes:
The sincosD_piby4.h file is mostly the same as the builtin implementation released by AMD. The inline attribute declaration is changed, and M_PI is used instead of a constant double. Otherwise, the only difference is that the header explicitly enables the fp64 pragma.

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@230641
91177308-0d34-0410-b5e6-96231b3b80d8

commit 301372a1c0515e615b74d896b32e6bbcb2ffeb38

Author: Jan Vesely <[email protected]>
Date:   Wed May 6 21:59:26 2015 +0000

Implement sinpi builtin

Ported from AMD builtin library, passes piglit on Turks.

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@236647
91177308-0d34-0410-b5e6-96231b3b80d8

If this is still an issue, please reopen.

Referenced Bugs:

https://bugs.freedesktop.org/show_bug.cgi?id=99553
[Bug 99553] Tracker bug for runnning OpenCL applications on Clover

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel