forge icon indicating copy to clipboard operation
forge copied to clipboard

Examples broken on AMD display device

Open pavanky opened this issue 8 years ago • 10 comments

OpenCL examples are not working at all

surface surface_opencl

plotting plotting_opencl

plot3 plot3_opencl

histogram histogram_opencl

fractal fractal_opencl


CPU examples look garbled at default window size, but they work after maximizing the window.

Histogram default window histogram_cpu_default

Histogram maximized window histogram_cpu_maximized

Fractal default window fractal_cpu_default

Fractal maximized window fractal_cpu_maximized

pavanky avatar Jun 13 '16 23:06 pavanky

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 avatar Jun 13 '16 23:06 pavanky

@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

9prady9 avatar Jul 04 '16 15:07 9prady9

@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.

9prady9 avatar Jul 14 '16 10:07 9prady9

Still broken on devel. The problem occurs even if I do not resize the window. It disappears after I perform any resizing operation.

pavanky avatar Aug 24 '16 22:08 pavanky

@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 avatar Sep 05 '16 15:09 pavanky

@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 avatar Sep 05 '16 16:09 9prady9

@9prady9 no, the problem occurs on other gpus as well: https://github.com/arrayfire/forge/issues/109

pavanky avatar Sep 05 '16 16:09 pavanky

I am trying this on arch, I am assuming you are doing the same @9prady9 ?

pavanky avatar Sep 05 '16 16:09 pavanky

no, i am using ubuntu 16.04 now

9prady9 avatar Sep 05 '16 16:09 9prady9

IMG_20210504_224922 - 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 IMG_20210504_225502

9prady9 avatar May 04 '21 17:05 9prady9