AnsweredAssumed Answered

False "The thread tried to access an array element that is out of bounds [...]" error

Question asked by maxbarraclough on Jul 10, 2014
Latest reply on Jul 31, 2014 by urishomroni

Trying to use the CodeXL (from Visual Studio) OpenCL debugging using breakpoints, I invariably get the message:

 

The thread tried to access an array element that is out of bounds and the underlying hardware supports bounds checking

 

even where the kernel is doing nothing but declaring a local int, assigning it a value, and then returning. I show this in the attached screenshots. All screenshots are based on AMD's 'Hello world' sample.

Sometimes Visual Studio crashes entirely after this error happens.

The error does not occur if I do not place breakpoints in OpenCL code. Also, 'ordinary' Visual Studio debugging (of C++ code) works fine.

 

Hardware:

Phenom II CPU, R9 280X graphics card ('Tahiti' architecture)

 

Software:

Windows 8.1 64 bit

Visual Studio 2010 Premium

APP SDK 2.9

CodeXL 1.4.5724

Catalyst drivers 14.4

 

I didn't get this issue using my old Radeon HD 6870. The 280X is a new card; I have reinstalled everything relevant: not only the Catalyst drivers, but also the APP SDK and CodeXL.

Outcomes