Any usable SIMD implementation?

9il via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 5 23:11:15 PDT 2016


On Tuesday, 5 April 2016 at 21:29:41 UTC, Walter Bright wrote:
> On 4/5/2016 4:07 AM, 9il wrote:
>> On Tuesday, 5 April 2016 at 10:30:19 UTC, Walter Bright wrote:
>>> On 4/5/2016 2:39 AM, 9il wrote:
>>>> On Tuesday, 5 April 2016 at 08:34:32 UTC, Walter Bright 
>>>> wrote:
>>>> 1. This would help to eliminate configuration bugs.
>>>> 2. This would reduce work for users and simplified user 
>>>> experience.
>>>> 3. This is possible and not very hard to implement if I am 
>>>> not wrong.
>>>
>>>
>>> Where does the compiler get the information that it should 
>>> compile for, say, AFX?
>>
>> No idea about AFX. Do you choose AFX to disallow me to find an 
>> example?
>
> I want to make it clear that dmd does not generate AFX specific 
> code, has no switch to enable AFX code generation and has no 
> basis for setting predefined version identifiers for it.

Please think that D has other compilers, not only DMD. We need a 
language feature, and I am ok that this feature would be useless 
for DMD. But the fact that DMD can not optimize code for, say, 
AVX, AVX2, AVX-512, FMA4, ..., is not good reason to reject small 
language changes that would be very helpful for D for community. 
Yes, only few of us would use this feature directly, however, 
many of us would use this under-the-hood in BLAS/SIMD oriented 
part of Phobos.


More information about the Digitalmars-d mailing list