OpenCL compilation crashes

OpenCL compilation crashes

yagecheetah的头像

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

5 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项.
Brijender Bharti的头像

Thanks alot. i see an issue, we will update you soon.

Raghu Muthyalampalli (Intel)的头像

Thanks for providing the code. This issue has been fixed and will be in available in the next release.

Thanks,
Raghu

yagecheetah的头像

Hi Raghu, Thanks for a prompt fix - could you also clarify which software it is related to? Is it full open CL sdk, or is there a separate update for a particular dlls? Is the release date already decided, and if not, is there an early access to nightly builds? Many thanks, Michael

Raghu Muthyalampalli (Intel)的头像
Best Reply

Hi Michael,

It'll be a full SDK release. I don't have a date yet, but will post here once I get more details. Alternately, you can watch the official Intel OpenCL SDK site for any announcements including access to Beta or this Forum.

Thanks,
Raghu

登陆并发表评论。