Hi All, The following code crashes the compiler:
kernel void helloWorld(global const char* text, global int* retVal) {
for(int i = 0; i < 1; i++) {
char c = text[i];
if (c == 2) {
i += 1;
} else if (c == 3) {
//If this is commented, the kernel is compiled
i += 1;
} else if (c != 'n' && c != 'r' && c != 't') {
retVal[1]++;
}
}
} My initial thought was I was using incorrect types etc., but then I discovered that if the 9th line is commented out, the code compiles with no problem whatsoever.
If anybody has some clues, there would be much appreciated.
I'm running this on Windows 7. I'm using Intel OpenCL SDK offline compiler. The following is the SDK log:
Using default instruction set architecture. Intel OpenCL CPU device was found! Device name: Intel Core i5-2557M CPU @ 1.70GHz Device version: OpenCL 1.1 (Build 31360.31441) Device vendor: Intel Corporation Device profile: FULL_PROFILE


