Page MenuHome

OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel()
Closed, ArchivedPublicBUG

Description

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits

Graphics card:AMD Radeon (TM) R9 380 Series ATI Technologies Inc. 4.5.13587 Core Profile Context 20.4.2 26.20.15029.27017
Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.14760 Core Profile Context 20.45.37.01 27.20.14537.1001

Blender Version
Broken: version: 2.90.0, branch: master, commit date: 2020-08-31 11:26, hash: rB0330d1af29c0
Worked: "there were no errors in the previous versions"

Short description of error
In specific .blend files I get the error "OpenCL error (-52):cl_invalid_kernel_args in clEnqueueNDRangeKernel"
This error is only seen when rendering (with F12)

Exact steps for others to reproduce the error

  • Open attached file
  • Render

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Needs Information from User.Sep 2 2020, 10:39 PM

Does this error appear when you enable the addon, select the GPU device or when you render?
Can you try the latest development snapshot of blender?
https://builder.blender.org/download

The error appears when selecting the viewport shading rendered in the 3D view window and also when rendering. Tried it in the latest version of the blender.

Germano Cavalcante (mano-wii) changed the task status from Needs Information from User to Needs Triage.Sep 14 2020, 9:50 PM

Hi,
I have error(-52) too. I was rendering particles.

Blender 2.83.10
Ubuntu 20.04.1, RX 5700 XT
Drivers: amdgpu-pro 20.45

terminal output:
OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel
OpenCL error: CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel()
Error: OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel

Falk David (filedescriptor) changed the task status from Needs Triage to Needs Information from User.Feb 16 2021, 8:42 AM

Is this issue still a problem with the latest Alpha or Beta from https://builder.blender.org/download/ ?

Is this issue still a problem with the latest Alpha or Beta from https://builder.blender.org/download/ ?

Yes, it is. (checked with 2.93.0 Alpha)

Falk David (filedescriptor) changed the task status from Needs Information from User to Needs Triage.Feb 16 2021, 9:22 AM

Blender 2.83.13
Ubuntu 20.04.2
amdgpu-pro 20.50

terminla output:
OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel
OpenCL error: CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel()
Error: OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel

But after adding the lamp, it renders without problems. After adding and removing lighting, it also renders.

  1. I've created empty scene, without objects and light and I got this output:

OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel
OpenCL error: CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel()
Error: OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel

  1. I've added light source (sun lamp) and the scene was rendered without output in the terminal.
Germano Cavalcante (mano-wii) renamed this task from OpenCL error (-52) to OpenCL error (-52): CL_INVALID_KERNEL_ARGS in clEnqueueNDRangeKernel().Apr 19 2021, 8:45 PM
Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.
Germano Cavalcante (mano-wii) updated the task description. (Show Details)
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

Thanks for the report.
I can confirm it now. (The steps were not clear before).

Thomas Dinges (dingto) closed this task as Archived.Nov 18 2021, 9:43 PM

OpenCL rendering support was removed in Blender 3.0.
The combination of the limited Cycles kernel implementation, driver bugs, and stalled OpenCL standard
has made maintenance too difficult. Thanks for your report, but it's unlikely that there will be further fixes for OpenCL.

For AMD GPUs, there is a new backend based on the HIP platform.
In Blender 3.0, this is supported on Windows with RDNA and RDNA2 generation discrete graphics cards.
It includes Radeon RX 5000 and RX 6000 series GPUs. Driver version Radeon Pro 21.Q4 or newer is required.

https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://code.blender.org/2021/11/next-level-support-for-amd-gpus/