DForce not using GPU - No OpenCL on RTX 3060 (Solved)
I have a new computer with an RTX 3060 GPU and a Ryzen 7 5800X.
I ran a few test scenes over the past few days, and Iray renders perfectly fine. However, when I started playing with Dforce today to see how much faster it is, I was suprised to see it was actually quite slow. Comparible to my old computer.
I checked the log file and found this error just before the simulation spring calculations began:
WARNING: ..\..\..\src\dzdynamicsengine.cpp(426): Using device: AMD Ryzen 7 5800X 8-Core Processor
That seems to imply Dforce is using my CPU instead of my GPU. I tried updating and reinstalling the DForce starter essentials, but there was no change.
I was hoping to simulate all that DForce hair I purchased in a sale last week. But at the moment, it's slow even simulating basic clothing. Especially with three or four characters in the scene.
How can I resolve this?
Comments
Adding to this. I just checked with GPU-Z, and the little box for OpenCL at the bottom of the first panel is unchecked. Impying OpenCL is not available.
So far as I am aware the driver is up to date - well, it must be if Iray is using the GPU.
Is this something that has to be activated on my Nvidia RTX 3060 GPU? If so, how can I do it?
have you tried a different driver version? As long as it's new enough for Iray it doesn't usually hurt if it isn't the latest.
I installed a number of different drivers, and they all produced similar results. Ironically, the latest studio driver from Nvidia seemed to produce slightly faster simulations, even though it was using my CPU rather than my GPU. In all occasions, I saw the same error message in the log file and GPU-Z reported that OpenCL is not there - ie, the box remains unchecked.
As a test, I loaded a base G8 figure and applied the soft classic hair with dForce https://www.daz3d.com/soft-classic-hair-with-dforce-for-genesis-8-and-81-females
Upon simulation, the hair took 4 minutes to drape - apparently only using my Ryzen 7 CPU. The length of the dForce simulation is advertised as between 1 and 3 minutes on a RTX 3070. I would expect the 3070 to be faster due to the greater number of cuda cores, however my simulation times seem to indicate my GPU must be getting involved somehow. Even though nothing is showing on GPU-Z and the log indicates the simulation has defaulted to CPU.
So either my Ryzen CPU is a lot faster at simulating than I expected, or my GPU really is running the simulation even though Daz Studio and GPU-Z clearly state OpenCL is not on the card. I can live with a simulation time of 4 minutes for the hair I just tested. But what gets me, is why cloth simulations are as slow as my previous rendering computer with a GTX 1050 TI.
The odd thing there is that I didn't think there were OpenCL drivers for AMD CPUs.
Really?
Now, that is really odd.
Thinking about it, when I first ran a dForce simulation on the new computer, I received a pop up message in Daz Studio asking to install something to the Ryzen 7 CPU. I didn't think much of it at the time and just accepted. Only later did I realize that the simulation had just used the Ryzen CPU instead of my GPU. The cloth simulation was a lot slower than expected so I looked at the log and GPU-Z.
Yay. Issue solved!
I had to download and run DDU to uninstall everything Nvidia related, restart, and then reinstall the driver and Nvidia Experience.
I now have OpenCL on my RTX 3060.
I thought I would mention this in case anyone else experiences the same problem.
AMD APP SDK 3.0 installs OpenCL to AMD and ATI.
AMD APP SDK 3.0 Installation Notes