- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can someone post an example of how to write an accumlate (for eight 32bit regs) using the vector instructions in AVX?
It would be best if the code could be written with gcc (extensions are ok).
It would be best if the code could be written with gcc (extensions are ok).
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You would require the ix86/avx branch of gcc 4.4 http://www.gnu.org/software/gcc/svn.html AVX support presumably is mainly floating point; ideally, a float sum reduction in C should work with -ffast-math (doubt if it is so yet).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
GCC-v4.4 & Binutils(v-2.18.50.0.9) has AVX support, but remember it's just 128-bit extension currently by GCC.
![](/skins/images/B7BA37F9CE4B52FF7CAE1FB0388839C8/responsive_peak/images/icon_anonymous_message.png)
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