drallan

Very simple kernel crashes compiler

Discussion created by drallan on Jan 18, 2012
Latest reply on Nov 19, 2012 by ticktock

Crash occurs in application code and Kernel Analyzer

 

 

It's a bit suprising, but the simple one line kernel in the code window crashs during compile in both application code and in the Kernel Analyzer. Windows crash info is attached. I am using Windows 7 x64 with SDK 2.6 cal version 11.12 (upgraded from 2.4 and 2.5).

Not sure what the cause is. My system is relatively stable. Changing the exact form of the code can prevent the crash, e.g., a larger loop counter or a slighly more complex expression. The problem might occur when the compiler tries to unroll a long loop.

Any feedback is appreciated.

Thanks.

 

//Kernel crashes aticaldd.bin in Kernel Analyzer using cal 11.12, 11.11 and earlier versions 
//APP SDK 2.6, cal 11.12, Windows 7 x64 
//-------------------------------------------------------------------------------------------------------
 __kernel void systest(__global uint *A) 
{ 
    int gid,gx=get_global_id(0),gy=get_global_id(1);
    uint i; gid=64*gy+gx;

   for(i=0;i<0x8000;i++)A[(i<<10)]=5; 
}
//------------------------------------------------------------------------------------------------------- 
//Other forms of the loop may or may not crash: 
//NOTE: This line prevents crash: for(i=0;i<0x20000;i++)A[(i<<10)]=5; 
//NOTE: This line prevents crash: for(i=0;i<0x8000;i++)A[((i<<10)+gid)&0xfffffffc]=5; 

/* Crash Report from windows 
    Problem Event Name: APPCRASH
   Application Name: AMDAPPKernelAnalyzer.exe
   Application Version: 1.10.0.1149
   Application Timestamp: 4ec4bb5b 
   Fault Module Name: aticaldd.dll 
   Fault Module Version: 6.14.10.1646 
   Fault Module Timestamp: 4ebb3717 
   Exception Code: c0000005 
   Exception Offset: 00241e54 
   OS Version: 6.1.7601.2.1.0.256.1 
   Locale ID 33 
   Additional Information 1: 0a9e 
   Additional Information 2: 0a9e372d3b4ad19135b953a78882e789 
   Additional Information 3: 0a9e 
   Additional Information 4: 0a9e372d3b4ad19135b953a78882e789 */

 

Message edited to reformat attachment

Outcomes