forge
forge copied to clipboard
Examples broken on AMD display device
OpenCL examples are not working at all
surface
plotting
plot3
histogram
fractal
CPU examples look garbled at default window size, but they work after maximizing the window.
Histogram default window
Histogram maximized window
Fractal default window
Fractal maximized window
OK you can't see the image being garbled in the screen shot of fractal default size, but it is garbled. The same is true for all cpu graphics examples on my AMD GPU
@pavanky I have checked the examples on the #92 PR changes and everything is rendering as expected on AMD APU A10. Can you please test this on your GPU and let me know if the problem is still there after the changes of PR #92
@pavanky I have been able to finally setup linux environment (the details are given below) and opencl examples from devel branch run with few glitches but are not as corrupted as we see above.
System Info
pradeep@asgard ~/gitroot/forge (devel) $uname -a
Linux asgard 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 16.04
GPU Info
Platform ID: 0x7fa1444e98f8
Name: Spectre
Vendor: Advanced Micro Devices, Inc.
Device OpenCL C version: OpenCL C 1.2
Driver version: 2117.7 (VM)
Profile: FULL_PROFILE
Version: OpenCL 1.2 AMD-APP (2117.7)
Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_gl_event
GPU Driver Info
AMDGPU-Pro Driver Version 16.30 for Ubuntu 16.04
Glitches i see on this machine are as follows
- Renderings appear corrupted
while
resizing the window although they render fine before and after resize operation. - Towards end of the program, when we close the window, the opencl examples report a
seg fault
even though it ran fine until that point. - Ticks are not being rendered on 3d charts.
Note: All opencl examples have similar issues(listed above) on this APU's GPU, there are no deviations.
Still broken on devel. The problem occurs even if I do not resize the window. It disappears after I perform any resizing operation.
@9prady9 The examples are not broken on AMD when using SDL2 (as opposed to GLFW3). So I am guessing the problem occurs somewhere in the window focus / resizing in forge when using glfw.
But the responsiveness is really really bad on SDL. I am going to check if the responsiveness is bad on other GPUs.
@pavanky I tried SDL2 toolkit backend on my laptop that has GTX 650M and image examples(fractal, histogram) & surface example were responding smoothly for the mouse events without lag. Could it be possible that this is another issue on AMD hardware ? do you see the lag for SDL2 and cpu examples as well ?
@9prady9 no, the problem occurs on other gpus as well: https://github.com/arrayfire/forge/issues/109
I am trying this on arch, I am assuming you are doing the same @9prady9 ?
no, i am using ubuntu 16.04 now
- AMD GPU rendering seems to work in general except the 3d renderables - an odd horizontal line appears from the center of the screen to left edge of the window and it keeps rotation with the object if the object rotates - doesn't matter what the rendered object is. Static image of that horizontal line is shown below