- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm using Intel OpenCL SDK 2012 on Linux and I get the following error message when I compile my kernel:
In my code I first check for cl_intel_printf with
This warning is quite annoying since I want to compile my OpenCL code with
I also noticed that
How can I get rid of the warning?
Regards
kugeleck
I'm using Intel OpenCL SDK 2012 on Linux and I get the following error message when I compile my kernel:
:5:48: warning: OpenCL extension 'cl_intel_printf' is not supported - ignoringThis does not make sense since I can use it and it's working.
In my code I first check for cl_intel_printf with
#if defined cl_intel_printfand then I enable it with
#pragma OPENCL EXTENSION cl_intel_printf : enable
This warning is quite annoying since I want to compile my OpenCL code with
-Werroras a build parameter during development. This obviously does not work since the false warning prevents the code from executing.
I also noticed that
-cl-opt-disableseems to be ignored since the build log contains
KernelAs far as I understand it vectorization is an optimization step.was successfully vectorized
How can I get rid of the warning?
Regards
kugeleck
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using CPU or Intel GPU device?
On GPU cl_intel_printf extention and -cl-opt-disable compiler option are both unsupported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using a dual core Intel CPU.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've tried -cl-opt-disable compiler option and yes, there is still "Kernel was successfully vectorized" string in log.
As OpenCL specification says-cl-opt-disable disables all optimizations that are listed in "Optimization Options" chapter like-cl-mad-enable,-cl-unsafe-math-optimizations etc. It's optimizations of math functions commonly. So this option doesn't have to disable Intel autovectorization. And vectorization is another kind of optimization related to parallel execution of work-items by splitting them to compute using wide vector ALUs.
You only can disable autovectorization by usingvec_type_hint kernel attribute (see OpenCL specification), or using -g (debug) option that disables autovectorization and all optimizations.
In respect of cl_intel printf extention, I have the same warning. Maybe it is a bug of SDK.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page