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

Does Intel command line compiler for OpenCL C understand pragma directieves?

Oleg_G_
Beginner
159 Views

I'm trying to use "#pragma unroll" in my OpenCl code. But don't see any effect while compiling OpenCl to SPIR using Intel command line compiler. In fact compiler silently eating any gibberish after #pragma.

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
159 Views

As far as I can tell from my experiments, you're correct that #pragma unroll is ignored (at least for the GPU compiler). According to the spec, only a few pragmas are required to be recognized.  

Reply