Any usable SIMD implementation?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 4 13:24:46 PDT 2016


On 4/4/2016 12:55 PM, ZombineDev wrote:
>> I believe the issue is fixed (for DMD) with a documentation improvement.
> I believe the problem is that you can't rely on D_SIMD that SSE4, FMA, AVX2,
> AVX-512, etc. are available on the target platform. See also
> http://forum.dlang.org/post/fnrmgfvqmykttsuuxxib@forum.dlang.org.

Right, you can't. But the issue here is having the compiler give a predefined 
version for what is the MINIMUM that the target machine supports. And the D_SIMD 
does that.

There is no purpose to the compiler predefining a version for an instruction set 
it does not generate code for.

You can also do a runtime test with http://dlang.org/phobos/core_cpuid.html


More information about the Digitalmars-d mailing list