SSE3 instructions in F #

How can I parallelize my F # program using the SSE3 instruction set? Does the compiler support F #?

+3
source share
3 answers

.Net does not talk to equipment at this level. If you need explicit control over the set of instructions used, you need to contact a library written in a more suitable language. C / C ++ comes to mind.

+3
source

, , , : http://www.atrevido.net/blog/2005/01/28/Inline+X86+ASM+In+C.aspx p >

See comments for additional reservations and other approaches. The advantage of playing with delegates targeting is (AFAIK), you wonโ€™t get a controlled unmanaged transition, as if you were using GetDelegateForFunctionPointer or other interaction approaches.

In the opposite direction, this means that you need to code it manually and make sure that the calling conventions match and so on. It is probably fragile, and the delegate's overhead can make it inappropriate.

0
source

Source: https://habr.com/ru/post/1771239/


All Articles