Noise reduction CUDA vs OpenCL

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Jake Reeder

  • Posts: 21
  • Joined: Sat Oct 14, 2017 11:17 pm

Noise reduction CUDA vs OpenCL

PostFri Sep 28, 2018 4:07 am

I've heard that digital noise reduction on Resolve works better on CUDA than OpenCL. Does anyone have info on this?
Offline

Rohit Gupta

Blackmagic Design

  • Posts: 1630
  • Joined: Wed Aug 22, 2012 5:00 am

Re: Noise reduction CUDA vs OpenCL

PostFri Sep 28, 2018 8:18 am

This is not true at all. You should get identical results on CUDA/OpenCL/Metal.
Rohit Gupta

DaVinci Resolve Software Development
Blackmagic Design
Offline
User avatar

shebbe

  • Posts: 1059
  • Joined: Tue Mar 06, 2018 11:48 am
  • Location: Amsterdam
  • Real Name: Shebanjah Klaasen

Re: Noise reduction CUDA vs OpenCL

PostFri Sep 28, 2018 2:56 pm

Think he meant in terms of performance.
I have no idea tbh. Why not test it out.
Home System Resolve 18.6b9: Z790 / i9 13900K / 64GB DDR5 / RTX4090 / Win 11 / ASUS PA32UGC 1600 nits
Office System Resolve 18.6b9: X570 / Ryzen 9 5900X / 128GB DDR4 / RTX4090 / Win 11 / EIZO CG248-K
Offline

MishaEngel

  • Posts: 1432
  • Joined: Wed Aug 29, 2018 12:18 am
  • Real Name: Misha Engel

Re: Noise reduction CUDA vs OpenCL

PostFri Sep 28, 2018 6:34 pm

shebbe wrote:Think he meant in terms of performance.
I have no idea tbh. Why not test it out.


FP32 is FP32 no matter if you call it CUDA, OpenCL, Metal or Vulkan.
Offline
User avatar

Cary Knoop

  • Posts: 1452
  • Joined: Sun Mar 12, 2017 6:35 pm
  • Location: Newark, CA USA

Re: Noise reduction CUDA vs OpenCL

PostFri Sep 28, 2018 9:20 pm

CUDA is typically faster than OpenCL.
OpenCL is a more generic parallel framework than CUDA.
Offline

MishaEngel

  • Posts: 1432
  • Joined: Wed Aug 29, 2018 12:18 am
  • Real Name: Misha Engel

Re: Noise reduction CUDA vs OpenCL

PostFri Sep 28, 2018 10:21 pm

Cary Knoop wrote:CUDA is typically faster than OpenCL.
OpenCL is a more generic parallel framework than CUDA.


Cuda and OpenCL are programming languages.

When you optimize both codes to the max. you get the same results.

And according to Rohit's reaction that is what BMD did with Resolve.

Looking at our own results and those of Slashcam and puget I have to agree for atleast 99% with Rohit.
Online

Hendrik Proosa

  • Posts: 3034
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Noise reduction CUDA vs OpenCL

PostSat Sep 29, 2018 7:12 am

MishaEngel wrote:Cuda and OpenCL are programming languages.
When you optimize both codes to the max. you get the same results.

You might, you might not. In addition to code there is also the hardware and driver factor which no amount of optimizing from developer side can take away. As Cary said, OpenCL is more generic, at least it tries to be. CUDA is proprietary to nVidia, which allows more hardware specific code and optimizing, and while one can argue that AMD cards utilize OpenCL as good as nVidia does CUDA, it is not always the case. Yes, math is math, but this does not take into account that math does not do itself, it must be done on certain hardware with specific characteristics. Otherwise one might also argue that all cpu-s with same clock speed are equal because int is an int, right? Not so, one might be able to do vectorized math on ints at the same time as floats, other might not, with GPUs it is the same. If noise reduction made use of new rtx engine in nVidia gpus, no amount of optimization will make same thing happen in opencl on amd cards.
I do stuff.
Offline
User avatar

Daz Wood

  • Posts: 440
  • Joined: Mon May 08, 2017 2:59 pm

Re: Noise reduction CUDA vs OpenCL

PostSat Sep 29, 2018 8:40 am

Hendrik Proosa wrote:
MishaEngel wrote:Cuda and OpenCL are programming languages.
When you optimize both codes to the max. you get the same results.

You might, you might not. In addition to code there is also the hardware and driver factor which no amount of optimizing from developer side can take away. As Cary said, OpenCL is more generic, at least it tries to be. CUDA is proprietary to nVidia, which allows more hardware specific code and optimizing, and while one can argue that AMD cards utilize OpenCL as good as nVidia does CUDA, it is not always the case. Yes, math is math, but this does not take into account that math does not do itself, it must be done on certain hardware with specific characteristics. Otherwise one might also argue that all cpu-s with same clock speed are equal because int is an int, right? Not so, one might be able to do vectorized math on ints at the same time as floats, other might not, with GPUs it is the same. If noise reduction made use of new rtx engine in nVidia gpus, no amount of optimization will make same thing happen in opencl on amd cards.
what is confusing me, is the rtx engine an extension of CUDA then?
Thank you

Daz
Davinci Resolve Studio Version
ASUS Strix GL702ZC 17" laptop. AMD Ryzen 7 1700 (Desktop CPU), 32GB DDR4, Storage 256GB M.2 SSD, 2TB SSD, 4GB RX 580, Win10
Offline
User avatar

Jean Claude

  • Posts: 2973
  • Joined: Sun Jun 28, 2015 4:41 pm
  • Location: France

Re: Noise reduction CUDA vs OpenCL

PostSat Sep 29, 2018 8:55 am

Is RTX Engine in CUDA SDK? Not sure... for me. :)
"Saying it is good, but doing it is better! "
Win10-1809 | Resolve Studio V16.1 | Fusion Studio V16.1 | Decklink 4K Extreme 6G | RTX 2080Ti 431.86 NSD driver! |
Offline

Carsten Sellberg

  • Posts: 1463
  • Joined: Fri Jun 16, 2017 9:13 am

Re: Noise reduction CUDA vs OpenCL

PostSat Sep 29, 2018 9:29 am

Hi.

Tom Petersen from nVidea confirm in this YouTube at 12:57 that the Tensor cores are exposed to to CUDA:



Regards Carsten.
URSA Mini 4.6K
Offline
User avatar

Jean Claude

  • Posts: 2973
  • Joined: Sun Jun 28, 2015 4:41 pm
  • Location: France

Re: Noise reduction CUDA vs OpenCL

PostSat Sep 29, 2018 9:59 am

Carsten,

RTX is not in NVIDIA CUDA Toolkit SDK
thank you for reading the Release Notes
https://docs.nvidia.com/cuda/cuda-toolk ... index.html

RTX is in the NVIDIA RTX ™ platform
https://developer.nvidia.com/rtx

It is very much not the same thing. :)
"Saying it is good, but doing it is better! "
Win10-1809 | Resolve Studio V16.1 | Fusion Studio V16.1 | Decklink 4K Extreme 6G | RTX 2080Ti 431.86 NSD driver! |

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], panos_mts, Pavel Klein and 156 guests