I'm sharing it here since I had a pain in the bottom with solving this one half of the morning.
Basically whenever I ran Vellum sim on my Windows 8.1 laptop I got an error “OpenCL Exception: clCreateProgramWithSource (-34)” in Houdini Console and the sim did not run. I googled for an answer and found similar problems OpenCL related. My Houdini help showed “No Configured OpenCL Device”. I tried setting multiple env variables like HOUDINI_OCL_DEVICENUMBER=1 (0 -too), HOUDINI_OCL_VENDOR=“Intel(R) Corporation”, HOUDINI_OCL_VENDOR=“NVIDIA Corporation” , HOUDINI_OCL_DEVICETYPE=CPU etc.
Ok - to the point - my solution was: 1. Edit the settings file "C:\Users\\Documents\houdini17.0\houdini.env“ 2. Add this line anywhere ”HOUDINI_OCL_DEVICETYPE=GPU“.
DONE! So simple, yet very frustrating when you don't know it.
ps. For newer Houdini users - easy way to test if things work is to use Houdini Command Line Tools and run command ”hgpuinfo -c“. If it lists your device it means it works. If it throws something like: ”Could not create OpenCL device of type (HOUDINI_OCL_DEVICETYPE): GPU (…)" means it won't work.
One more thing - when you had everything working and suddenly node like “Attribute Blur” SOP (or any other OTL using OpenCL SOP inside) throws similar error for you, I noticed that in most cases when you restart Houdini the error goes away. If not, try the above solution.
Hello, just writing to say thank you! I was stuck and probably would have spent half the morning figuring this out too if it weren't for this. Thank you so much for sharing your solution! You're awesome.