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

Optimizer hangs on non-terminating while loop

Chris_C_1
Beginner
317 Views

Compilation of the following kernel loops indefinitely:

kernel void A() {
  int a = get_global_id(0);
  while (a < 512) {}
}

Passing argument -cl-opt-disable to clBuildProgram() prevents this.

Reproduced on:

  • /opt/intel/opencl-1.2-6.4.0.25/lib64/libintelocl.so
  • /opt/intel/opencl-1.2-4.4.0.117/lib64/libintelocl.so

 

0 Kudos
0 Replies
Reply