[Mono-dev] Mono SIMD Function Declarations and Timing
kumpera at gmail.com
Fri Nov 21 17:35:12 EST 2008
On Fri, Nov 21, 2008 at 12:13 AM, JTalton <talton at gmail.com> wrote:
> How is this affected by the SIMD? It looks like the generated assembly
> the PDC slides gets rid of much of overhead from the copying of structure.
> So in the case of Mono, this may not be an issue. If you run the same code
> under .NET (which currently does not have SIMD support), it would matter.
So does running it on mono versions that doesn't support SIMD intrinsics.
why the SimdRuntime class is your friend. It lets you probe if a method will
accelerated or not.
> It would be nice to have a Vector3f since when using OpenGL you send a
> buffer of Vectors and with Vector4f you have a third more data to send to
> the graphics card. Not sure if this is doable, or if SIMD must work on a
> full 128 bits.
Mono.Simd is a way to expose the available hardware functionality. Higher
functionality such as this is going to be developed as a separate lib.
> I think I saw that SIMD only supported 128 bits, so a Vector of 3 doubles
> would not work. Is there a way to make a Vector of 3 double or 4 doubles
> that uses two SIMD instructons? i.e. like a Vector4D was actually 2
> Vector2Ds? (I know there are some issues, but thoughts?)
There is not need for that, just declare a struct with 2 Vector2d elements
use it. Some algorithms will be different from the Vector4f equivalent, but
> While it is nice to have Properties for the variables in the vector, it
> would be nice to have the variables exposed. This is needed since calling
> into the OpenGL functions would work cleaner with GL.Normal3(ref vector.X).
Can you explain this in more details? Right we don't expose the variables
it would be a lot harder to generate intrinsified code. All in all, a simd
not use the individual elements as much as possible because the result code
> Matrices and Quaternions? If matrices are implemented, I'd like to see
> compatible with OpenGL's matrix format.
Those things won't be implemented in Mono.Simd itself, but by external
> Sorry if I covered anything that has been brought up before. I searched
> the SIMD threads and did not see any of this covered.
> I plan to get the SIMD accelerated library and test some things out when I
> find the time. If there is anything I can do to help, from testing to
> reviewing interfaces to documentation, let me know.
Keep questioning all aspects of it and post your impressions of using it.
needs real usage to have it's design proven.
The recurring issue of not having a higher level lib still needs to be
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list