cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

jadr
Adept I

OpenCL 2.0 Compiler Bug?

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!

3 Replies
dipak
Big Boss

Thank you for reporting it. We'll look into this and get back to you shortly.

Thanks.

0 Likes
dipak
Big Boss

Update:

I have opened a ticket against the above compiler issue. I'll let you know if I get any update on this.

Thanks.

Awesome, thank you!

0 Likes