Recently I found an issue with AMD OpenCL compiler.
I got OpenCL code that generated on CPU and results in big switch-case construction (about 4k case).
Attempt to compile such kernel with AMD compiler leads to :
Reducing "case" count to 2k results in successful kernel compilation.
Here is kernel source:
Unfortunately I can't test it in CodeXL for now, since it doesn't work in ubuntu 18.04 (unable to start since ubuntu 18.04 don't have libpng12). I'll try to check it later when I have access to windows system. But I believe it should have same result since CodeXL seems to use RGA..
While testing with CodeXL on Win10, I also observed a huge increase in system memory usage and in my case, the GUI stopped responding after some time and I had to reboot. I'll check it with more recent internal builds and take the action accordingly.
P.S. The same kernel seems building fine for Southern Islands (SI) cards like Tahiti, Pitcairn etc.
It seems the issue is also reproducible with the latest internal builds. I have opened a ticket against the issue. Once there is any update, I'll let you know.