Skip to content

SIMD Showcase v0.3.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 01:01
· 57 commits to main since this release

Added

  • D3D12 compute mode (FP32/FP64). It has its own device on the high-performance adapter, root constants, a root UAV, fences, timestamp queries and a readback heap.
  • CUDA mode (FP32/FP64). It uses a hand-written PTX kernel that is loaded through nvcuda.dll and JIT-compiled by the NVIDIA driver, so no CUDA toolkit is needed.
  • New Mandelbrot tiers:
    • SSE3: ADDSUBPD/HADDPD complex arithmetic.
    • SSE4.1: BLENDVPD lane freezing and a PTEST exit check.
    • FMA4: AMD Bulldozer's four-operand FMA.
    • AVX-512/256: AVX-512VL opmasks on YMM registers.
  • Extensions Lab (L). It holds 28 verified micro-benchmarks, each timed against a plain C++ version of the same task:
    • Bit manipulation: POPCNT, LZCNT, BMI1, BMI2, ADX+MULX, MOVBE.
    • Checksums and crypto: SSE4.2 CRC-32C, PCLMULQDQ, AES-NI (checked against FIPS-197), SHA-256 (checked against the "abc" test vector), VAES, VPCLMULQDQ, GFNI.
    • AMD-only: SSE4a, XOP.
    • Number formats and random numbers: F16C, RDRAND, RDSEED.
    • Vector maths: AVX-VNNI, AVX512-VNNI, BF16, FP16, VPOPCNTDQ, BITALG, compress-store, conflict detection, IFMA52, VBMI.
  • Self-test additions. --selftest now checks D3D12 and CUDA output against the CPU reference and runs every supported lab test.
  • New badges for every new mode, with per-API styles for D3D11, D3D12 and CUDA.
  • Version information:
    • The version is set once in CMake and shown in the window title, the UI, the self-test output, the exe's file properties and benchmark CSV exports.
    • This changelog was added.
    • Tagged releases are published automatically.
  • Feature wall: new "Bits & misc" group (LZCNT, ADX, MOVBE, RDRAND, RDSEED) and an AMD TBM chip.

Fixed

  • FP64 GPU shaders produced wrong images (about 55% of pixels), because FXC's optimiser miscompiles the double-precision loop. The FP64 entry points are now compiled unoptimised, in both D3D11 and D3D12.

Changed

  • The GPU tiers are now named by API (D3D11 FP32 and so on) instead of GPU FP32/GPU FP64.
  • The mode table scrolls, so the larger list fits at high DPI.

Self-test on the build machine:

SIMD Showcase 0.3.0 (f9596ab) self-test
CPU: AMD EPYC 9V74 80-Core Processor (AuthenticAMD)
AVX10 version 0, 512-bit 0, OS AVX-512 state 1

Scalar       ILPx1     88.95 ms    0.000% pixels differ   OK
Scalar       ILPx2     49.45 ms    0.000% pixels differ   OK
Scalar       ILPx4     47.82 ms    0.000% pixels differ   OK
MMX          ILPx1     83.65 ms    3.159% pixels differ   OK
MMX          ILPx2     73.90 ms    3.159% pixels differ   OK
MMX          ILPx4     73.64 ms    3.159% pixels differ   OK
SSE          ILPx1     23.24 ms    0.344% pixels differ   OK
SSE          ILPx2     13.33 ms    0.344% pixels differ   OK
SSE          ILPx4     18.24 ms    0.344% pixels differ   OK
SSE2         ILPx1     43.68 ms    0.001% pixels differ   OK
SSE2         ILPx2     26.04 ms    0.001% pixels differ   OK
SSE2         ILPx4     34.11 ms    0.001% pixels differ   OK
SSE3         ILPx1    102.38 ms    0.000% pixels differ   OK
SSE3         ILPx2     59.66 ms    0.000% pixels differ   OK
SSE3         ILPx4     57.24 ms    0.000% pixels differ   OK
SSE4.1       ILPx1     54.57 ms    0.001% pixels differ   OK
SSE4.1       ILPx2     30.23 ms    0.001% pixels differ   OK
SSE4.1       ILPx4     32.77 ms    0.001% pixels differ   OK
AVX          ILPx1     24.09 ms    0.001% pixels differ   OK
AVX          ILPx2     13.87 ms    0.001% pixels differ   OK
AVX          ILPx4     13.75 ms    0.001% pixels differ   OK
FMA4         skipped (not supported)
AVX2         ILPx1     21.95 ms    0.005% pixels differ   OK
AVX2         ILPx2     12.71 ms    0.005% pixels differ   OK
AVX2         ILPx4     15.44 ms    0.005% pixels differ   OK
AVX-512/256  ILPx1     25.54 ms    0.005% pixels differ   OK
AVX-512/256  ILPx2     13.33 ms    0.005% pixels differ   OK
AVX-512/256  ILPx4      8.26 ms    0.005% pixels differ   OK
AVX-512      ILPx1     12.95 ms    0.004% pixels differ   OK
AVX-512      ILPx2      9.29 ms    0.004% pixels differ   OK
AVX-512      ILPx4      7.30 ms    0.004% pixels differ   OK
AVX10.1      skipped (not supported)
AVX10.2      skipped (not supported)

D3D12 FP32     67.414 ms    0.265% pixels differ   OK   [Microsoft Basic Render Driver]
D3D12 FP64    136.998 ms    0.000% pixels differ   OK   [Microsoft Basic Render Driver]
CUDA         skipped (No NVIDIA driver (nvcuda.dll not found))

Extensions Lab
  POPCNT       Popcount                 0.143 ms ->     0.081 ms  (  1.78x)  OK
  LZCNT        Leading zeros            1.392 ms ->     0.081 ms  ( 17.12x)  OK
  BMI1         Bit iteration            5.545 ms ->     0.767 ms  (  7.23x)  OK
  BMI2         Morton codes             0.210 ms ->     0.235 ms  (  0.89x)  OK
  ADX + MULX   Bignum multiply          0.197 ms ->     0.156 ms  (  1.26x)  OK
  MOVBE        Big-endian load          0.200 ms ->     0.040 ms  (  5.06x)  OK
  SSE4.2       CRC-32C                  2.291 ms ->     0.108 ms  ( 21.31x)  OK
  SSE4a        Bit-field extract        0.019 ms ->     0.076 ms  (  0.25x)  OK
  XOP          Vector rotate        skipped
  PCLMULQDQ    Carry-less multiply      3.256 ms ->     0.016 ms  (199.61x)  OK
  AES-NI       AES-128                  1.522 ms ->     0.012 ms  (122.89x)  OK
  SHA          SHA-256                  0.939 ms ->     0.192 ms  (  4.88x)  OK
  F16C         Half floats              3.382 ms ->     0.058 ms  ( 57.97x)  OK
  RDRAND       Hardware RNG             0.054 ms ->     0.718 ms  (  0.08x)  OK
  RDSEED       Entropy source           0.007 ms ->     2.195 ms  (  0.00x)  OK
  VAES         Wide AES                 0.025 ms ->     0.015 ms  (  1.68x)  OK
  VPCLMULQDQ   Wide CLMUL               0.016 ms ->     0.014 ms  (  1.15x)  OK
  GFNI         Bit reverse              1.159 ms ->     0.064 ms  ( 18.21x)  OK
  AVX-VNNI     Int8 dot product     skipped
  AVX512-VNNI  Int8 dot product         0.126 ms ->     0.005 ms  ( 27.23x)  OK
  AVX512-BF16  BF16 dot product         0.054 ms ->     0.003 ms  ( 15.83x)  OK
  AVX512-FP16  FP16 arithmetic      skipped
  VPOPCNTDQ    Vector popcount          0.145 ms ->     0.022 ms  (  6.66x)  OK
  BITALG       Byte popcount            1.720 ms ->     0.027 ms  ( 63.94x)  OK
  AVX-512F     Stream compaction        0.297 ms ->     0.401 ms  (  0.74x)  OK
  AVX-512CD    Conflict detection       0.518 ms ->     0.006 ms  ( 88.45x)  OK
  AVX512-IFMA  52-bit MAC               0.072 ms ->     0.016 ms  (  4.57x)  OK
  AVX512-VBMI  Byte permute             1.099 ms ->     0.027 ms  ( 41.12x)  OK

SELFTEST PASSED