How to enable SIMD instructions in core.simd
e-y-e via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Nov 19 05:11:18 PST 2016
Found that I was not able to use SIMD as
import core.simd : __simd;
produces the error: 'module core.simd import '__simd' not found'.
Upon further inspection I found that the D_SIMD version is not
defined as
version (D_SIMD)
{
pragma(msg, "SIMD Support");
}
else
{
pragma(msg, "No SIMD Support");
}
prints 'No SIMD Support' at compile time. In the docs for SIMD
[1] I can see the line 'Depending on the architecture, compiler
flags may be required to activate support for SIMD types.', but
no information on which architectures and more importantly what
the compiler flags are.
My architecture is Intel x86_64 and I am using dub with latest
ldmd. How would I enable SIMD instructions in a simple way? (I
have another issue with dub & compiler arguments also but I can
create another thread if that continues to bother me)
Thanks in advance.
[1] https://dlang.org/spec/simd.html
More information about the Digitalmars-d-learn
mailing list