- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a local array which is currently stored in RAM. It's 216 bytes in size (i.e. larger than 64 bytes). The operations on the data stored in this array are very simple and I would like to force the compiler to implement it in registers rather than RAM to see if this gives me a speedup. How can I do this? Is there an attribute to use when I declare a local variable? Thanks, HannoLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From "Intel FPGA SDK for OpenCL Programming Guide, Section 11.2":
int __attribute__((register)) a;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I suspected it's that easy but just could not find it.
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