NVIDIA graphics card, CUDA/OpenCL, mining Ethereum, Davinci Resolve

With the recent boom(again) in cryptocoin, and the feasibility of GPU mining, I have re-started some experiments on GPU mining Ethereum with my GTX970. Following some online tutorials, I managed to get around 21MH/s on my one GTX970, which puts me in a somewhat profitable position. Granted, this kind of power doesn’t make me rich by any means, but I’m mostly looking for fun tinkering as well as experimenting.

I don’t want to redo my entire PC to use what’s considered “best” version of GPU driver for CUDA mining, so I went with genoil’s OpenCL miner. I only have to make 2 tweaks:

  1. in NVIDIA control panel – manage 3d settings, set “Optimize for Compute Performance” to “On”. (I’ll use OCP for that long name, since we’ll come back to this later)
  2. use nvidia-smi command line tool to “unlock” power states for my card. I’m not sure this is required, but I was able to get another 2MH/s, or 10%, out of my card, at a price of maybe 5% more power consumption.

My mining rig is happily slaving away, but I recently started a YouTube channel(take a look here and consider subscribe if you like it), and I’m using/learning DaVinci Resolve to edit my videos. Before mining, I’ll just start Resolve and edit, but ever since I started mining, Resolve stopped cooperating – that is, it will open project manager, but will crash any time I open a project. This is not good… I know this has something to do with my mining ops, so I started tweaking settings back to default. Turns out, it’s OCP that’s the issue.

DaVinci Resolve(and many other respectable video editing software) can utilize GPU for a lot of tasks, since video rendering/transcoding are all compute-heavy and benefits a lot from parallelism. Resolve uses CUDA to accelerate its work, but I think this is where the issue is.

See, NVIDIA GPUs support both CUDA and OpenCL, and my guess(and nothing more than a guess) is that by changing OCP, it turns the GPU from “CUDA mode” to “OpenCL mode”. Which means Resolve(or any other program that uses CUDA) cannot use GPU even though it can “see” the existence of a NVIDIA GPU and tries to use it. And when Resolve can’t get a hold, it crashes.

So I turned OCP back to “Off”, and voila, Resolve comes back to life.

So if you have any NVIDIA-GPU-utilizing program that stopped working on your mining rig, take a look at the NVIDIA Control Panel, your solution might be right there.

If you find this helpful, consider donating to my ETH : 0x32066578ad8417e7325ddb07a38e76402ea110b3, thanks a lot

Posted in Tech Tagged with: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*