[Issue 15873] New: In order to implement std.simd, compile time info about CPU specifics is needed

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 4 10:22:23 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15873

          Issue ID: 15873
           Summary: In order to implement std.simd, compile time info
                    about CPU specifics is needed
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jack at jackstouffer.com

To quote Manu,

"I still have no way to detect what simd version was supplied to the compiler
on the command line on GCC/Clang, and DMD has no such concept. The library
can't emit opcodes that violate the simd level request made to the compiler; I
need to know the level requested and then I can produce the best code for that
level using static if."

This also is blocking std.blas, to quote Ilya,

"I am working on BLAS from scratch implementation. And it is no hope to create
something useable without CT information about target.
Target cpu configuration:
- CPU architecture (done)
- Count of FP/Integer registers
- Allowed sets of instructions: for example, AVX2, FMA4
- Compiler optimization options (for math)"

--


More information about the Digitalmars-d-bugs mailing list