dstarke

[BUG] local variables overwritten in OpenCL kernel

Discussion created by dstarke on Sep 7, 2017
Latest reply on Sep 26, 2017 by dipak

I have a custom OpenCL kernel with a while loop and various local variables.

These variables are sometimes overwritten (sometimes with 0, sometimes with NaN) when returning to the beginning of the loop.

The issue is reproducible when using the same input values.

The kernel works just fine with other vendors, thus I suspect a compiler bug.

I have tested the issue on the following systems:

- AMD Radeon HD 7800 Series

Driver Version 22.19.162.4

Windows 10 Education (Version 10.0.14393)

- AMD Radeon R9 200 Series

Driver Version 22.19.162.4

Windows 10 Pro 64-Bit (Version 1607)

- AMD Radeon 5800 Series

Driver Version 15.200.1062.1004

Windows 7 Home Premium (Version 6.1.7601 SP1 Build 7601)

 

I can provide the kernel in source and binary (AMD Radeon HD 7800 Series) if required, but preferable not public.

This would also include a Windows application to reproduce the issue and example outputs from other vendors.

 

Please let me also know if this is the right place or where I should address this issue.

Outcomes