cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ivan
Adept I

clBuildProgram failure

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.

0 Likes
4 Replies
dipak
Big Boss

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,

0 Likes

dipak, thanks for helping out with that.

-O0 option worked for me too. Probably an optimization issue.

0 Likes

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

0 Likes
ivan
Adept I

Got it, thanks.

0 Likes