OpenCL Issues

Error

Explanation

Instructions

CL_INVALID_BINARY

This is indicates a problem with your OpenCL device (CPU/GPU) or driver.

  1. Install any pending operating system updates.

  2. Check GPU Driver and try updating them to the latest available version.

  3. Verify that your driver supports OpenCL 1.2 by performing OpenCL Driver Check.

  4. Check GPU Requirements.

CL_INVALID_QUEUE_PROPERTIES

CL_PLATFORM_NOT_FOUND_KHR

Your system is missing OpenCL drivers.

CL_OUT_OF_RESOURCES

This is indicates a problem with your OpenCL device (CPU/GPU) or driver.

  1. Verify that there are no other programs running that consume memory from this OpenCL device (CPU/GPU).

  2. See Memory Leak in .NET to make sure that you dispose of all objects in your script.

  3. Verify that your driver supports OpenCL 1.2 by performing OpenCL Driver Check.

  4. Check GPU Requirements.

  5. If necessary, upgrade your OpenCL device to a a model with more resources.

  6. Ubuntu 20.04 only: Linux 5.8 kernel with Intel GPU as rendering device can give openCL errors. Downgrade to the LTS(stable) base Linux kernel 5.4 to fix it.

CL_MEM_OBJECT_ALLOCATION_FAILURE

CL_OUT_OF_HOST_MEMORY

Your computer does not have enough memory to execute the current task.

  1. Verify that there are no other programs running that consume memory from this OpenCL device (CPU/GPU).

  2. Check GPU Requirements.

  3. If necessary, upgrade your computer’s memory.