Intel OpenCL auto-vectorization switch

Intel OpenCL auto-vectorization switch

Hi, I want to disable the auto-vectorization of OpenCL kernel on Xeon Phi, is there any way to do that?

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,

You may specify __attribute__((vec_type_hint(<typen>))) where typen is some vector type (float3 or char4). Per documentation:

This attribute indicates to the vectorization module apply only transformations that are useful for this type.

So if you specify some type that your kernel is not using it will effectively disable vecorization.

Thanks,

Yuri

I gotcha, Thanks!

Leave a Comment

Please sign in to add a comment. Not a member? Join today