Announcement

Collapse
No announcement yet.

OpenCL 2.0 on Linux and AMD?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • OpenCL 2.0 on Linux and AMD?

    Hi!

    I'm a 3D artist and I've been looking at switching to Linux. I've done some testing here and there after some people saying that Blender renders up to 40% faster on Linux, but I found out that rendering on Windows was a lot faster for some reason (25 to 50%), but I didn't know why. Now I (think I) know: on Linux, I can only get OpenCL 1.2 working, while on Windows the default installed is OpenCL 2.0, which is much, much faster.

    For a particular scene (let's call it "scene 1"):

    Linux + Blender 2.83.3 + OpenCL 1.2
    Render time: 1:45 min

    Windows + Blender 2.83.3 + OpenCL 2.0
    Render time: 0:57 seconds to 1:05 min

    --------------------------------------------------

    For "scene 2":

    Linux + Blender 2.83.3 + OpenCL 1.2
    Render time: 4:25 min

    Windows + Blender 2.83.3 + OpenCL 2.0
    Render time: 3:02 min

    --------------------------------------------------

    However, there's a catch to all this: Despite Blender 2.83+ being extremely fast for rendering (specially considering it now has Adaptive Sampling), it is extremely buggy for AMD users right now, it crashes a lot while rendering (I dare say most of the times) and I have to hard restart Windows.

    For Windows, I have to use Blender 2.82, which is stable. But it's slow, slower than Blender 2.83 on Linux. So:

    "Scene 1":

    Linux + Blender 2.83.3 + OpenCL 1.2
    Render time: 1:45 min

    Windows + Blender 2.82.7 + OpenCL 2.0
    Render time: 2:55 min

    --------------------------------------------------

    For "scene 2":

    Linux + Blender 2.83.3 + OpenCL 1.2
    Render time: 4:25 min

    Windows + Blender 2.83.3 + OpenCL 2.0
    Render time: 5:10 min

    --------------------------------------------------

    So for now it actually makes sense to use Linux and Blender 2.83, despite not having OpenCL 2.0, because OpenCL 1.2 is stable and this combo renders faster than 2.82.7 on Windows with OpenCL 2.0

    However, once AMD/Blender fix their OpenCL code, it would make much more sense to go back to Windows since the renders there would take half the time it would take on Linux + OpenCL 1.2, so I'd obviously chose 4 hours (on Windows) rather than 8 hours on Linux.

    --------------------------------------------------

    Which brings me to the actual question: is there a sure way of getting OpenCL 2.0 on an RX 570 on Linux? I did install AMD's AMDGPU-PRO driver, version 20.20, but I can only get OpenCL 1.2. I also installed ROCm (from this guide) and used a modified script to get the OpenCL stuff from the -pro drivers in the system, but still I can only get OpenCL 1.2.

    If I can get OpenCL 2.0 running on Linux I can stay there for all eternity, which I would very much love to do!
Working...
X