OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1718 Discussions

OpenCL compilation crashes

yagecheetah
Beginner
541 Views
Hi All,
The following code crashes the compiler:
[cpp]kernel void helloWorld(global const char* text, global int* retVal) { for(int i = 0; i < 1; i++) { char c = text; 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]++; } } }[/cpp]

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
0 Kudos
1 Solution
Raghupathi_M_Intel
541 Views
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

View solution in original post

0 Kudos
4 Replies
Brijender_B_Intel
541 Views
Thanks alot. i see an issue, we will update you soon.
0 Kudos
Raghupathi_M_Intel
541 Views
Thanks for providing the code. This issue has been fixed and will be in available in the next release.

Thanks,
Raghu
0 Kudos
yagecheetah
Beginner
541 Views
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
0 Kudos
Raghupathi_M_Intel
542 Views
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
0 Kudos
Reply