The clBuildProgram fails to compile some spir binaries using the following option: " -x spir -spir-std=1.2"
Intel OpenCL platform runs with this binary flawlessly. Old amd drivers (prior to v17.7 or so) worked fine for me too. But neither v17.7 nor v17.11.1 work.
Here's the error message and some additional info (the problem binary is attached as well):
========
Unhandled exception at 0x13A2ECAA (amdocl12cl.dll) in test.exe: 0xC0000005: Access violation reading location 0x00000004.
========
Windows 10 64-bit
Radeon Software v17.11.1
amdocl12cl.dll v0.8.0.0.326, test.exe is a x86 application
Appreciate if someone can handle this. Thanks.
Hi Ivan,
I'm moving this thread to OpenCL forum.
I was able to reproduce the crash. Compiling with -O0, however, worked for me. Could you please check and share your finding? I'll open a ticket accordingly.
Regards,
Thank you for the confirmation. I've an update. It seems that the issue is not reproducible with the latest internal builds. As I checked, clBuildProgram worked fine with optimization also. Please keep patience till next release.
Regards
Got it, thanks.