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.
1663 Discussions

Crash during parsing of compound statement

Chris_C_1
Beginner
225 Views

Hi, the following code snippet void A() { (global a*)() causes a stack dump and crash during parsing:

$ gcc -DPLATFORM_ID=0 parser-crash1.c -lOpenCL && ./a.out
[cldrive] Platform: Intel(R) OpenCL
[cldrive] Device:       Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
[cldrive] OpenCL optimizations: on
Stack dump:
0.    1:1:23: current parser token '('
1.    1:1:10: parsing function body 'A'
2.    1:1:10: in compound statement ('{}')
[1]    25373 segmentation fault  ./a.out

Compiler version:

$ cat /etc/OpenCL/vendors/intel64.icd
/opt/intel/opencl-1.2-4.4.0.117/lib64/libintelocl.so

Cheers,
Chris

 

0 Kudos
2 Replies
Chris_C_1
Beginner
225 Views

Same result (crash during parsing compound statement) for this code snippet:

void A() { void* a; uint4 b = 0; b = (b > b) ? a : a;

And this:

void A() { double2 k; return (float4)(k, k, k, k);

Cheers,
Chris

Alexey_S_Intel3
Employee
225 Views

Hello Chris.

Could you try your code snippets with the latest Intel® SDK for OpenCL™ Applications

Reply