Skip to content

OpenCL Configuration

Clemens-Alexander Brust edited this page Jun 13, 2015 · 1 revision

OpenCL platforms and devices

Most systems offer more than one way to do OpenCL calculations. A typical setup will have a GPU, but may also be able to process OpenCL kernels on the CPU or even an integrated GPU. The system default may not lead to optimal performance.

You can use the testOpenCL utility to list all your OpenCL devices. Note the platform and device number for your preferred OpenCL device.

Configuration file

CN24 looks for a configuration file config in its binary directory. On some build systems, there are multiple binary directories (Debug, Release, ...). In this case, CN24 will also look one directory up from its binary directory so only one configuration file has to be created.

OpenCL configuration

The config file entries for OpenCL are the following:

opencl_platform=0
opencl_device=0

Replace the numbers with the appropriate identifiers for your preferred OpenCL device.