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

Compiler crash [15.1, Ubuntu]

Kloeckner__Andreas
283 Views


The attached kernel crashes the Intel OpenCL Runtime 15.1 (Ubuntu):

Both operands to ICmp instruction are not of the same type!
  %37 = icmp slt i32 %35, i64 0
Both operands to a binary operator are not of the same type!
  %47 = add i32 %36, i64 1
Both operands to a binary operator are not of the same type!
  %48 = add i32 %47, i64 %24
Both operands to ICmp instruction are not of the same type!
  %51 = icmp slt i64 %44, i32 %50
Both operands to ICmp instruction are not of the same type!
  %52 = icmp slt i32 %50, i64 0
Invalid operands for select instruction!
  %54 = select i1 %53, i64 %44, i32 %50
Broken module found, compilation aborted!
Stack dump:
0.      Running pass 'Function Pass Manager' on module 'main'.
1.      Running pass 'Module Verifier' on function '@layerpot'
[1]    25966 abort      python -c 

Here's a quick one-liner to reproduce the crash.

python -c 'import pyopencl as cl ; ctx = cl._csc(); cl.Program(ctx, open("qbx.cl.txt").read()).build()'

 

0 Kudos
5 Replies
Robert_I_Intel
Employee
283 Views

Could you please attach pyopencl-complex.h file from your system as well?

Kloeckner__Andreas
283 Views

Done.

Robert_I_Intel
Employee
283 Views

Just verified that this works fine on Windows CPU OpenCL. Could you please provide your system details, e.g. you CPU, version of Ubuntu you are running, version of the OpenCL Code Builder you installed? It will help to file a bug with the product team. Thanks!

Kloeckner__Andreas
283 Views

CPU: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz

OS: Debian jessie (8.0) -- Ubuntu 14.10 is the most closely related version

I downloaded intel_code_builder_for_opencl_2015_ubuntu_5.0.0.43_x64.tgz

Yuri_K_Intel
Employee
283 Views
Hi, I was able to reproduce this issue on the version of OpenCL runtime that you mentioned, but it's not reproducible on our latest internal/development versions. So once new Intel OpenCL runtime release is available it should incorporate the fix for this issue. Thanks Yuri
Reply