AnsweredAssumed Answered

OpenCL 2.0 Compiler Bug?

Question asked by jadr on May 22, 2020
Latest reply on Jun 1, 2020 by jadr

Hello,

In my OpenCL kernel I'm using the "async_work_group_copy" function to copy data from global to local memory. However, whenever I use the "wait_group_events" function in the kernel, and I compile with OpenCL 2.0, I get the following error during compilation:

 

Error: Call of undefined function
Compiler Log: Size of the type of data structure used to hold value too small
Error: HSAIL program is not finalized successfully.
Codegen phase failed compilation.


Size of the type of data structure used to hold value too small
Error: HSAIL program is not finalized successfully.
Codegen phase failed compilation.
Error: BRIG finalization to ISA failed.

(the first half is written by clBuildProgram(), the second half is written by the host program right after)

 

The same kernels compile just fine under OpenCL 1.2, but it fails under OpenCL 2.0. Reproducible test case attached.

 

I'm running the code on Windows on Radeon Pro WX9100, enterprise driver version 20.Q1.1.

 

Is there a workaround for this? For now I'm able to skip using the OpenCL 2.0 features, however I'd love to be able to use global program scope variables that are available with OpenCL 2.0.

 

Thanks!

Attachments

Outcomes