Jump to content

Pyro OpenCL vs CPU - Why do the sims differ?


HM_2020

Recommended Posts

Can someone please give me an indepth explanation as to why the CPU vs GPU sims look different?

I have noticed when making a fire sim, GPU gives a bit more streaky and jagged sim (better licks) than a CPU sim which tends to be a bit more billowy with more 'shrooms' or rounder shapes in general.

Sadly GPU crashes on any large scale sims yet I really like the look. 

How can I get CPU sims to look as streaky and jagged as GPU?

Any tricks to stop a GPU sim from crashing?

Cheers!

Link to comment
Share on other sites

I noticed the exact same problem. Since my sims usually will cause my GPU to run out of memory I make sure to just to look dev without open cl. For me I think its mainly shredding microsolver that drastically changes look based on open cl on/off. I think maybe I notice it a little on disturbance too.

Link to comment
Share on other sites

Thats a normal thing. Micorsolvers on openCL calucate things a bit different. I dont think you can expect the sim on CPU and openCL look exactly the same.

 

But I noticed thats not true for all the solvers. Eg. Grain CPU and openCL looks exactly the same.

 

Edited by JJ FX
Link to comment
Share on other sites

You need to set your openCL device to cpu. What I generally do, is test out quickly on the GPU, and when I submit my sim I set the following;

 HOUDINI_OCL_DEVICETYPE=CPU. This will give you the same results. Interesting to note also, that comparing a CPU sim, to a openCL CPU sim can be quite a bit quicker. Have a little search around the docs, to walk you through this.

  • Thanks 2
Link to comment
Share on other sites

11 hours ago, tinyhawkus said:

You need to set your openCL device to cpu. What I generally do, is test out quickly on the GPU, and when I submit my sim I set the following;

 HOUDINI_OCL_DEVICETYPE=CPU. This will give you the same results. Interesting to note also, that comparing a CPU sim, to a openCL CPU sim can be quite a bit quicker. Have a little search around the docs, to walk you through this.

Amazing, cheers!  I will take a look.

 

 

Link to comment
Share on other sites

On 9/5/2018 at 5:53 PM, JJ FX said:

Thats a normal thing. Micorsolvers on openCL calucate things a bit different. I dont think you can expect the sim on CPU and openCL look exactly the same.

 

But I noticed thats not true for all the solvers. Eg. Grain CPU and openCL looks exactly the same.

Cheers, but again I am asking WHY?  What does it compute differently, or what are the main reasons the sims look different?  I would imagine GPU would simply just use the GPU which may sim faster, etc... but why are the maths different, etc...

 

Edited by HowardM
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...