Hello,
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.
Cheers,
Beny
Houdini 17.0 on Windows throwing "OpenCL Exception: clCreateProgramWithSource (-34)" error [SOLVED]
20798 11 5- beny
- Member
- 9 posts
- Joined: 12月 2013
- Offline
- pgarram
- Member
- 1 posts
- Joined: 8月 2017
- Offline
- milanvandamme
- Member
- 1 posts
- Joined: 5月 2018
- Offline
- gleaces
- Member
- 1 posts
- Joined: 12月 2019
- Offline
- ImposingDragon
- Member
- 1 posts
- Joined: 7月 2020
- Offline
- beny
- Member
- 9 posts
- Joined: 12月 2013
- Offline
- Pixel Sharma
- Member
- 7 posts
- Joined: 6月 2018
- Offline
- edward
- Member
- 7868 posts
- Joined: 7月 2005
- Online
- Valent
- Member
- 77 posts
- Joined: 4月 2017
- Offline
- pkmet
- Member
- 1 posts
- Joined: 5月 2022
- Offline
- mwstandsfor
- Member
- 2 posts
- Joined: 9月 2021
- Offline
- omarz
- スタッフ
- 189 posts
- Joined: 9月 2017
- Offline
mwstandsforCan you please log a bug with an example scene (preferrably as simple as possible)? This one is not a generic OpenCL issue, and we'll have to investigate what's causing it. Thanks!
I'm on 19.5.303 as well and I'm also getting the error. In the preferences menu I changed it to the correct GPU as well. Getting fewer errors but now I'm getting
"OpenCL Exception: clCreateImage3D (-40)" error.
-
- Quick Links