Jonas Hjulstad
Jonas Hjulstad

Reputation: 415

Using Nvidia OpenCL-drivers with an ICD-loader on Windows

I have configured Installable Client Drivers (ICDs) on an Ubuntu-distribution with Intel OpenCL runtime drivers, which was fairly straightforward. These drivers come as *.so-files which can be loaded by specifying their path in an *.icd-file under /etc/OpenCL/vendors/.

How would I proceed to specify Nvidia OpenCL-drivers on Windows, and where are these drivers located?

I use MINGW64 with and OpenCL-ICD-Loader installed via MSYS2

Where is the corresponding directory to add the *.icd-files?

Upvotes: 1

Views: 919

Answers (2)

Mirko
Mirko

Reputation: 1

You can specify drivers (ICDs) through the Windows registry by creating a REG_DWORD with the full path to the *.dll driver as name. A value of 0 enables the driver. A value of 1 disables the driver.

// For 32-bit operating systems, or 64-bit tests on a 64-bit operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors

// For 32-bit tests on a 64-bit operating system:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Khronos\OpenCL\Vendors

// The name of the REG_DWORD value should be the full path to the library of your implementation, for eg.
// OpenCLDriverStub.dll, and the data for this value should be 0.

Upvotes: 0

Brecht Sanders
Brecht Sanders

Reputation: 7305

On Windows with MinGW-w64 I use a combination of:

OpenCL-ICD-Loader figures out where to load the Nvidia stuff from.

To build from source I had to tweak some stuff, see my build recipes:

Upvotes: 2

Related Questions