New: OpenCL hangs with big kernels
https://bugs.freedesktop.org/show_bug.cgi?id=70779
Priority: medium
Bug ID: 70779
Assignee: [email protected]
Summary: OpenCL hangs with big kernels
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: git
Component: Drivers/Gallium/radeonsi
Product: Mesa
Radeon 7870 XT.
A 50-word kernel works, a 67-word one hangs. Other tests confirm this. See bug 60879
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
[Bug 70779] OpenCL hangs with big kernels
https://bugs.freedesktop.org/show_bug.cgi?id=70779
--- Comment #1 from Hristo Venev <[email protected]> --- Bump.
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
[Bug 70779] OpenCL hangs with big kernels
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70779
--- Comment #2 from Hristo Venev <[email protected]> --- Bump.
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
[Bug 70779] OpenCL hangs with big kernels
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70779
EoD <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #3 from EoD <[email protected]> ---
Do you have an example of such a kernel?
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
[Bug 70779] OpenCL hangs with big kernels
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70779
--- Comment #4 from Hristo Venev <[email protected]> --- Here are two kernels that fail:__kernel void uint_div(__global const uint *a, __global const uint *b,
__global uint *c){
c[0]=a[0]/b[0];
}
__kernel void uint_add16(__global const uint *a, __global const uint *b,
__global uint *c){
for(uint i=0;i<16;i++) c[i]=a[i]+b[i];
}This one works:__kernel void uint_add(__global const uint *a, __global const uint *b,
__global uint *c){
c[0]=a[0]+b[0];
}Sadly I don't have access to the hardware anymore (it's probably in a dump somewhere).
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
[Bug 70779] OpenCL hangs with big kernels
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70779
--- Comment #5 from EoD <[email protected]> ---
Created attachment 121742
--> https://bugs.freedesktop.org/attachment.cgi?id=121742&action=edit
dmesg after running the uint_add16() kernel
(In reply to Hristo Venev from comment #4)
Quoted 9 lines
Here are two kernels that fail:
__kernelvoid uint_div(__global const uint *a,__globalconst uint *b,__global uint *c){ c[0]=a[0]/b[0]; } __kernel void uint_add16(__global const uint *a, __global const uint *b, __global uint *c){ for(uint i=0;i<16;i++) c[i]=a[i]+b[i]; }
I actually can confirm that the 2nd kernel does cause a GPU stall in the radeon driver (r600/Barts). It causes no problem with amdgpu (radeonsi/Tonga).
I am using kernel 4.5.0-rc3, current llvm 3.8 branch and current mesa git.
As I am not overly good with OpenCL, is this kernel somehow problematic?
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
[Bug 70779] OpenCL hangs with big kernels
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70779
Michel D�nzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #121742|text/x-log |text/plain
mime type| |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
[Bug 70779] OpenCL hangs with big kernels
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70779
--- Comment #6 from Michel D�nzer <[email protected]> ---
I think this is probably a duplicate of bug 60879 and that it was basically luck that "small kernels" didn't hang on Hristo's card.
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
[Bug 70779] OpenCL hangs with big kernels
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70779
Vedran Miletić <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED--- Comment #7 from Vedran Miletić <[email protected]> --- (In reply to EoD from comment #5)
Quoted 7 lines
I actually can confirm that the 2nd kernel does cause a GPU stall in the radeon driver (r600/Barts). It causes no problem with amdgpu (radeonsi/Tonga).
I am using kernel 4.5.0-rc3, current llvm 3.8 branch and current mesa git.
As I am not overly good with OpenCL, is this kernel somehow problematic?
EoD, if these stalls on r600 are still reproducible, please open a separate bug.
*** This bug has been marked as a duplicate of bug 60879 ***
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