registry - How to disable registered OpenCL platforms on Windows? -


i using opencl 2.0 on windows. machine has 2 platforms:

  • cuda gpu (with opencl 1.2)
  • intel cpu/gpu (with opencl 2.0)

i don't want opencl api return cuda platform @ all. according article, opencl.dll returns registered platforms looking @ windows registry. however, there no mention of registry keys searched for.

how can disable opencl driver/platform on windows not returned api?

as mention, opencl icd loader gets list of available opencl platforms windows registry. prevent opencl platform appearing opencl application running on system, need remove corresponding value 1 or both of these registry keys:

for 32-bit machines or 64-bit apps on 64-bit machine: hkey_local_machine\software\khronos\opencl\vendors

for 32-bit apps on 64-bit machine: hkey_local_machine\software\wow6432node\khronos\opencl\vendors

the name of registry value full path .dll providing opencl runtime implementation.

this heavy-handed approach solving problem, in opinion. opencl applications provide user means manually select/override desired opencl platform (e.g. via command-line argument, environment variable, or if gui if applicable).


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -