Hi guys,
so, afaik, Houdini is only using a single OpenCL device at the moment. The problem is, I have two (a 680 and a Titan) in my workstation, and for obvious reasons I'd like to make sure that the Titan is being used for computations. However, I have yet to find a setting anywhere where I can choose the device - is there one?
Michael
Multiple OpenCL devices - how to select
10877 7 2-
- ripclaw
- Member
- 96 posts
- Joined: May 2008
- Offline
-
- symek
- Member
- 1390 posts
- Joined: July 2005
- Offline
-
- ripclaw
- Member
- 96 posts
- Joined: May 2008
- Offline
-
- sanostol
- Member
- 558 posts
- Joined: Nov. 2005
- Online
-
- malexander
- Staff
- 5007 posts
- Joined: July 2005
- Offline
-
- anon_user_37409885
- Member
- 4189 posts
- Joined: June 2012
- Offline
Has anyone got the HOUDINI_OCL_DEVICENUMBER variable working?
There is an AMD card and Nvidia in the machine/Windows7. The Nvidia is device 0 and the Amd is device 1. When I try to switch to the AMD there is an error -33. I'm using 'set HOUDINI_OCL_DEVICENUMBER=1" to try to use the AMD card
The only way I have got OpenCL onto the AMD is to rip the Nvidia card out of the machine. It then works perfectly
Houdini 12.5.517, Windows 7 64bit
There is an AMD card and Nvidia in the machine/Windows7. The Nvidia is device 0 and the Amd is device 1. When I try to switch to the AMD there is an error -33. I'm using 'set HOUDINI_OCL_DEVICENUMBER=1" to try to use the AMD card
The only way I have got OpenCL onto the AMD is to rip the Nvidia card out of the machine. It then works perfectly

Houdini 12.5.517, Windows 7 64bit
-
- johner
- Staff
- 790 posts
- Joined: July 2006
- Offline
MartybNzYou probably also need to set HOUDINI_OCL_VENDOR when they're both in the machine, as it's picking up the Nvidia one. When it's working without NVIDIA, find the exact vendor string as reported in Houdini About…, then set the environment variable to that. I believe it's:
Has anyone got the HOUDINI_OCL_DEVICENUMBER variable working?
There is an AMD card and Nvidia in the machine/Windows7. The Nvidia is device 0 and the Amd is device 1. When I try to switch to the AMD there is an error -33. I'm using 'set HOUDINI_OCL_DEVICENUMBER=1" to try to use the AMD card
The only way I have got OpenCL onto the AMD is to rip the Nvidia card out of the machine. It then works perfectly
Advanced Micro Devices, Inc.with all the spaces and such.
The device number is per vendor, so you probably don't need to set the DEVICENUMBER once the VENDOR string is working.
The OCL environment variables are the following:
$ hconfig -a | grep OCL
HOUDINI_OCL_DEVICENUMBER := 0
HOUDINI_OCL_DEVICETYPE := ‘GPU’
HOUDINI_OCL_MEMORY_POOL_SIZE := 0.125
HOUDINI_OCL_PATH := ‘<not defined>’
HOUDINI_OCL_REPORT_MEMORY_USE := 0
HOUDINI_OCL_VENDOR := ‘<not defined>’
And you can get help for each one with:
$ hconfig -h HOUDINI_OCL_VENDOR
HOUDINI_OCL_VENDOR
Specifies the platform vendor to choose when creating the OpenCL
context Houdini uses for OpenCL processing.
-
- anon_user_37409885
- Member
- 4189 posts
- Joined: June 2012
- Offline
-
- Quick Links