Jump to content

What's the point of using OPENCL with CPU?


Recommended Posts

OPENCL is initially meant for GPU, right? But when the vram of the GPU can't handle the simulation, one can resort to the CPU by adding a line to the houdini environment file HOUDINI_OCL_DEVICETYPE=CPU

If I add that line, What is the point of checking opencl in the solver, if It's using CPU by default? is using OPENCL with CPU any different than simulating without OPENCL?

Link to comment
Share on other sites

If you don't use the OpenCL branch, then it will run the C++ or VEX branch instead, and depending on the operation, that could be slower, especially if it's VEX. OpenCL on CPU in some cases can still be faster than even C++ depending on the data structures used or if they haven't fully vectorized the C++ code.

Edited by animatrix
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...