AnsweredAssumed Answered

Access violation in clBuildProgram

Question asked by coderjoe on Aug 6, 2013
Latest reply on Aug 19, 2013 by himanshu.gautam

I have a source file that crashes deep inside amdocl.dll with an access violation when calling clBuildProgram. When I disable optimizations, clBuildProgram succeeds. The file also does not crash KernelAnalyzer2, regardless of optimizations being on or off. I have been able to make subtle changes to the code to get it to build with optimizations, and with different changes, it would sometime succeed and sometimes crash.


Platform: Radeon HD 7700 (683F) on Windows 7 64-bit with Catalyst 13.4 and APP version 2.8.1214.3.

The program is 32-bit.


Attached are two versions of the CL C source. One version seems to consistently crash the compiler. The other crashes the compiler approximately one out of five tries, with no change to any code.