- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I want to disable the auto-vectorization of OpenCL kernel on Xeon Phi, is there any way to do that?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I gotcha, Thanks!
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