art3mis Posted May 22, 2017 Share Posted May 22, 2017 (edited) Hi Curious why enabling 'OpenCL' in the Advanced TAB of my pyrosolver causes my sim to fail. What happens is theat when enabled, I can simulate about the first 30-40 frames of a smoke sim only. Is there some other OpenCL related setting in application preferences? AFAIK, OpenCL should be fully supported on my setup, Ubuntu Linux 16.04 and NVIDIA Titan X Pascal GPU. Possibly Nvidia driver related? Edited May 22, 2017 by art3mis Quote Link to comment Share on other sites More sharing options...
Atom Posted May 22, 2017 Share Posted May 22, 2017 (edited) It probably fails because it runs out of vRam memory. On Windows I have not found any evidence that OpenCL actually works with my nVidia based card. When I turn it on I see no GPU usage at all. Which is a shame because I have 1,920 cores doing nothing. Edited May 22, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
art3mis Posted May 22, 2017 Author Share Posted May 22, 2017 Strange because although I've made a few changes(reverted to older nvidia driver, etc) pretty sure it WAS working a few months back and was seeing improved SIM times when enabled. Will keep digging.. Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 22, 2017 Share Posted May 22, 2017 I *think* one of the latest Nvidia drivers will fail intermittently with OpenCL. Check the terminal for errors/messages. Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 22, 2017 Share Posted May 22, 2017 3 hours ago, Atom said: It probably fails because it runs out of vRam memory. On Windows I have not found any evidence that OpenCL actually works with my nVidia based card. When I turn it on I see no GPU usage at all. Which is a shame because I have 1,920 cores doing nothing. You should get that checked out. I get 4x times speed ups with smoke simulations in Linux on a Gtx980 vs Xeons. I personally don't think you know how to setup OpenCL and think just turning on the checkbox does the trick. Quote Link to comment Share on other sites More sharing options...
Noobini Posted May 22, 2017 Share Posted May 22, 2017 (edited) 6 hours ago, Atom said: On Windows I have not found any evidence that OpenCL actually works with my nVidia based card. When I turn it on I see no GPU usage at all. Which is a shame because I have 1,920 cores doing nothing. I'm not sure how you monitor your GPU usage..but I use GPU-Z>Sensors and watch my GPU Core Clock... Normally, it sits at 200MHz...this is because (most likely) your Nvidia 3D Performance setting is set at Optimal (ie. Minimum)...I set mine to Adaptive (wouldn't bother setting one by one for each 3D app, just do 'globally')...so any 3D s/w that uses OpenCL...when it kicks in, I'd see my GPU Core Clock shoot up to 1500MHz..(or more for beefier cards) (Win 7, GTX 1070, Driver 382.05) Edited May 22, 2017 by Noobini Quote Link to comment Share on other sites More sharing options...
art3mis Posted May 23, 2017 Author Share Posted May 23, 2017 "I personally don't think you know how to setup OpenCL and think just turning on the checkbox does the trick. " Hi marty. You're probably right. Can you point me in the right direction? What else needs to be done to enable OpenCL on my sims? Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 23, 2017 Share Posted May 23, 2017 20 minutes ago, art3mis said: "I personally don't think you know how to setup OpenCL and think just turning on the checkbox does the trick. " Hi marty. You're probably right. Can you point me in the right direction? What else needs to be done to enable OpenCL on my sims? Well -what are you trying to use OpenCL for? Quote Link to comment Share on other sites More sharing options...
art3mis Posted May 23, 2017 Author Share Posted May 23, 2017 Speed up my simulations. Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 23, 2017 Share Posted May 23, 2017 hmmm. so as a programmer you should know that code is only applicable to the areas that are coded right? So you need to be more specific. Quote Link to comment Share on other sites More sharing options...
Atom Posted May 23, 2017 Share Posted May 23, 2017 (edited) I'm in the same boat, I thought just turning on the check box, inside the pyro or flip solver, is supposed to cause the simulator to make full use of my GPU. I think that is generally the end user expectation. Edited May 23, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
Noobini Posted May 23, 2017 Share Posted May 23, 2017 (edited) so you've verified in your Nvidia Control Panel that 3D Performance is not set at Snail's Pace right ? Optimal = always at crap speed Maximum = always at full speed (even if nothing needs it) = plain silly Adaptive = best http://nvidia.custhelp.com/app/answers/detail/a_id/3130/~/setting-power-management-mode-from-adaptive-to-maximum-performance Edited May 23, 2017 by Noobini Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 23, 2017 Share Posted May 23, 2017 @atom can you please re-read the opencl documentation for flip and report back. Quote Link to comment Share on other sites More sharing options...
Atom Posted May 23, 2017 Share Posted May 23, 2017 Do you have a link to an example file that demonstrates this 4x speed up? Thanks! 1 Quote Link to comment Share on other sites More sharing options...
KarlRichter Posted May 23, 2017 Share Posted May 23, 2017 (edited) This old, but still relevant, post explains GPU acceleration very well, and has tips on how to optimize your sim for openCL. There is also an attached file that clearly shows the kind of speedup you can expect: https://www.sidefx.com/forum/topic/25234/ With that test scene, i'm easily getting 4x to 5x speed up with Quadro M4000. Edited May 23, 2017 by KarlRichter 1 Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 23, 2017 Share Posted May 23, 2017 6 hours ago, Atom said: Do you have a link to an example file that demonstrates this 4x speed up? Nothing to share as it's a production file -but honestly when you hear this whinging and then one builds a smoke sim in <20mins that goes 20fps on the GPU and 5 fps on CPU, you have to wonder if people are actually trying at all... So did you read the Flip OpenCL section? It says Viscosity & Pressure ONLY are solved in OpenCL, which means a whole of the the sim isn't. Users are expected to read documentation but hey, kids these days don't like doing that I guess. Quote Link to comment Share on other sites More sharing options...
Atom Posted May 23, 2017 Share Posted May 23, 2017 Thanks Karl, that link helps a lot. Quote Link to comment Share on other sites More sharing options...
haggi Posted May 24, 2017 Share Posted May 24, 2017 I suppse the end user will expect some speedup in pyro or smoke sims if he reads this: Quote Fully OpenCL-accelerated pyro pipeline. And there are only a few restrictions mentioned in the docs. Quote Link to comment Share on other sites More sharing options...
art3mis Posted May 24, 2017 Author Share Posted May 24, 2017 ditto, thanks Karl! Quote Link to comment Share on other sites More sharing options...
Guest tar Posted May 24, 2017 Share Posted May 24, 2017 7 hours ago, haggi said: I suppse the end user will expect some speedup in pyro or smoke sims if he reads this: And there are only a few restrictions mentioned in the docs. I got 2x on the pyro and 4x on the smoke solver, adding turbulence nodes to the smoke covered the gap. This is on Linux, not MacOs where it's not the case. The overriding issue here is that people read 'OpenCL' and think wham! free speed ups! Sounds like when gamers take the 'must fill up the ram so it can be faster' into the real world -haha Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.