SIMD Progress?

Trevor Parscal trevorparscal at hotmail.com
Thu Mar 6 07:04:10 PST 2008


Well, I've been reading everything I can about everything related to the issue of SIMD using D's inline ASM.

For whatever reason, I've been able to get simd operations working on just about every type of data - EXCEPT the ones I would find most useful... :(

Perhaps someone could look at this program (attached) and get the other 3 working...

Current Status

ASM Paralell Operations
- Dynamic Array (OK)
- Static Array (Not Working)
- Struct->Array on Heap (OK)
- Struct->Fields on Heap (OK)
- Struct->Array on Stack (Not Working)
- Struct->Fields on Stack (Not Working)
D Serial Operations
- Dynamic Array (OK)
- Static Array (OK)
- Struct->Array on Heap (OK)
- Struct->Fields on Heap (OK)
- Struct->Array on Stack (OK)
- Struct->Fields on Stack (OK)

It all has to do with alignment, and the fact that D doesn't align data on the stack. I don't know of a work-around, but perhaps there is one out there yet to surface.

- Trevor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Vector.d
Type: text/x-dsrc
Size: 6615 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080306/de57bf2f/attachment.d>


More information about the Digitalmars-d mailing list