OpenCL, Cuda, or Metal?

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

Dustin Bowser

  • Posts: 501
  • Joined: Thu Jun 11, 2015 4:38 am

OpenCL, Cuda, or Metal?

PostFri Dec 14, 2018 6:25 pm

I'm on macOS and have 3 Nvidia 1080TIs. Is there a recommendation for OepnCL, Cuda, or Metal and which should be chosen as the GPU processing mode and why?
System specs:
Fusion Studio version: 16.2 Build 22
OS: Windows 10 Pro 1909
CPU: AMD Ryzen Threadripper 3960X 24-Core 3.80 GHz
RAM: 128GB DDR4-3000
GPU: NVIDIA GeForce 2080 Ti 11GB x4
Nvidia Driver: 442.19
Offline

MishaEngel

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

Re: OpenCL, Cuda, or Metal?

PostFri Dec 14, 2018 6:35 pm

Dustin Bowser wrote:I'm on macOS and have 3 Nvidia 1080TIs. Is there a recommendation for OepnCL, Cuda, or Metal and which should be chosen as the GPU processing mode and why?


First and most important, when your 1080Ti's still work don't upgrade MacOS.
Apple is doing a lot these days to make sure NVidia doesn't work on MacOS.

NVidia doesn't support Metal and Apple doesn't support CUDA.

So OpenCL it is.

For Davinci Resolve it makes no difference, for them it's just fp32 and fp32 only.
Offline

Mike Halper

  • Posts: 305
  • Joined: Sun Feb 03, 2013 10:50 pm

Re: OpenCL, Cuda, or Metal?

PostFri Dec 14, 2018 7:05 pm

Dustin Bowser wrote:I'm on macOS and have 3 Nvidia 1080TIs. Is there a recommendation for OepnCL, Cuda, or Metal and which should be chosen as the GPU processing mode and why?


For your setup use CUDA. With Nvidia GPUs CUDA will almost always be faster. If you had AMD GPUs then you'd test OpenCL and Metal to see which is faster.
IMac Pro Hackintosh, 10 core i9, 64GB RAM, Radeon VII, Decklink 4K Mini Monitor, macOS 10.14.5, DaVinci Resolve Studio license
Offline

MishaEngel

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

Re: OpenCL, Cuda, or Metal?

PostFri Dec 14, 2018 8:46 pm

Mike Halper wrote:
Dustin Bowser wrote:I'm on macOS and have 3 Nvidia 1080TIs. Is there a recommendation for OepnCL, Cuda, or Metal and which should be chosen as the GPU processing mode and why?


For your setup use CUDA. With Nvidia GPUs CUDA will almost always be faster. If you had AMD GPUs then you'd test OpenCL and Metal to see which is faster.


Not according to Rohit Gupta:

Offline

Rohit Gupta

Blackmagic Design

Posts: 1018
Joined: Wed Aug 22, 2012 6:00 am

Re: Noise reduction CUDA vs OpenCL

PostFri Sep 28, 2018 9: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


For Davinci Resolve it's just fp32 performance that counts.
Offline

Mike Halper

  • Posts: 305
  • Joined: Sun Feb 03, 2013 10:50 pm

Re: OpenCL, Cuda, or Metal?

PostFri Dec 14, 2018 10:04 pm

Well I get better performance with CUDA than Metal or OpenCL. That's on 2 different computers with 2 different Nvidia GPUs. Admittedly the last time I tested it was several months ago. Maybe something has changed recently with 15?
IMac Pro Hackintosh, 10 core i9, 64GB RAM, Radeon VII, Decklink 4K Mini Monitor, macOS 10.14.5, DaVinci Resolve Studio license
Offline
User avatar

ohimbz

  • Posts: 294
  • Joined: Wed Nov 14, 2018 8:54 am
  • Location: Romania
  • Real Name: Musetoiu Florin

Re: OpenCL, Cuda, or Metal?

PostFri Dec 14, 2018 11:11 pm

My 1080Ti on OpenCL is a POS ... only CUDA works fine on it.
Ryzen 5800X
G.Skill 32GB 3600 CL14
RX 6800XT 16GB
Resolve Studio 18.5
Windows 11
Offline

Sulo Kokki

  • Posts: 234
  • Joined: Thu Sep 28, 2017 11:39 pm

Re: OpenCL, Cuda, or Metal?

PostSat Dec 15, 2018 3:11 pm

MishaEngel wrote:First and most important, when your 1080Ti's still work don't upgrade MacOS.
Apple is doing a lot these days to make sure NVidia doesn't work on MacOS.
This is true. The OP is running a High Sierra with the Nvidia Web Driver. Such drivers have not been released for Mojave, so it's better to stick to HS for now.

MishaEngel wrote:NVidia doesn't support Metal and Apple doesn't support CUDA.

Kepler GPUs are still supported by Metal2, as they were featured in some iMacs. I hear it's a bit glitchy, tho. :/

MishaEngel wrote:So OpenCL it is.
OpenCL is also deprecated from Mojave onwards, so Metal it will be.

The only problem is that Metal2 on Mojave benchmarks pretty much the same as Metal on High Sierra. And on HS, OpenCL beats Metal.

Metal v OpenCL in Resolve/High Sierra | Metal (HS) v Metal2 (Mojave)

So, OCL > Metal2 on even ground. This is a moot point, as Apple has again eliminated competition.

CUDA wins them both, but is only applicable up to High Sierra. Maybe Turing chips will run on Metal eventually.

If you want full power out of a macOS in the future, you might want to look into AMD.
Linux Mint 19.3 | DaVinci Resolve Studio 17.1 | 2700x 32gb Radeon VII | macOS Mojave
Offline

Sam Steti

  • Posts: 2504
  • Joined: Tue Jun 17, 2014 7:29 am
  • Location: France

Re: OpenCL, Cuda, or Metal?

PostMon Dec 17, 2018 4:03 pm

Dustin, just do go beyond osx13 and use cuda. That's all...
*MacMini M1 16 Go - Ext nvme SSDs on TB3 - 14 To HD in 2 x 4 disks USB3 towers
*Legacy MacPro 8core Xeons, 32 Go ram, 2 x gtx 980 ti, 3SSDs including RAID
*Resolve Studio everywhere, Fusion Studio too
*https://www.buymeacoffee.com/videorhin
Offline

RandyOK

  • Posts: 117
  • Joined: Fri Apr 12, 2019 5:30 pm
  • Location: Oklahoma
  • Real Name: Randy Burleson

Re: OpenCL, Cuda, or Metal?

PostThu Jan 02, 2020 3:19 pm

What about on Windows with a 2080Ti ? Still stick with CUDA for Resolve?
DaVinci Resolve STUDIO 18.5.3
Puget Systems
Windows 10 Pro OS
i9 9940X CPU
Dual RTX 2080Ti GPUs
64GB RAM
Offline
User avatar

Uli Plank

  • Posts: 21743
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: OpenCL, Cuda, or Metal?

PostThu Jan 02, 2020 4:11 pm

With a 1050ti, I found that CUDA is about 8% faster for Temporal NR.
Now that the cat #19 is out of the bag, test it as much as you can and use the subforum.

Studio 18.6.6, MacOS 13.6.6, 2017 iMac, 32 GB, Radeon Pro 580
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Geoff Treseder, Google [Bot], John Richard, panos_mts, Patrick Abde, RCL_Productions, WayupNorth and 217 guests