Skip to content

SIMD Showcase v0.5.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 15:08
· 50 commits to main since this release

Added

  • Six more GPU paths, all checked by --selftest against the CPU reference:
    • D3D9 and D3D10: graphics-pipeline modes. Neither API has compute shaders, so the fractal runs in a ps_3_0 / ps_4_0 pixel shader on a full-screen quad and is read back as counts.
    • OpenGL 4.3: GLSL compute shader, FP32 and FP64.
    • OpenCL: OpenCL C kernel built by the driver at runtime, FP32 and FP64.
    • Vulkan: compute with hand-assembled SPIR-V (no SDK and no shader compiler), FP32 and FP64. Vulkan grew out of AMD's Mantle.
    • HIP: AMD's CUDA-style API, compiled with hipRTC at runtime when the AMD HIP runtime is installed. It can't be tested on NVIDIA hardware.
  • Visualizer mode (V): audio-reactive scenes in the spirit of Winamp and Windows Media Player, all as heavy D3D11 compute:
    • Julia Dance: a supersampled Julia set whose constant rides the edge of the Mandelbrot cardioid.
    • Mandelbulb: raymarched, with ambient occlusion and glow, and a power that breathes with the bass.
    • Nebulabrot: a 4D-rotating Buddhabrot, with up to around a million orbit threads per frame splatted with atomics.
    • Fractal Flame: an iterated function system with four morphing transforms and eight non-linear variations, like the Electric Sheep screensaver.
    • Liquid Tunnel: MilkDrop-style feedback with a live spectrum ring.
    • Also: a Winamp-style spectrum bar overlay, scene title cards, auto-cycling, and a quality range up to "extreme" (36 samples per pixel).
  • Audio analyser: WASAPI loopback capture of whatever the PC is playing, run through an FFT to get bass, mid, treble, level, beat and 64 spectrum bands. It falls back to a synthetic rhythm when nothing is playing. Use --audiotest to check it.
  • Self-test filter: --selftest --backend=NAME tests a single GPU backend.

Changed

  • GPU capabilities are now a table indexed by API, rather than one flag per API.
  • Vulkan timing comes from a fence waiter thread. On the NVIDIA driver tested, timestamp queries around the dispatch read about 2 µs for a 0.6 ms kernel.

Self-test on the build machine:

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

Scalar       ILPx1     89.67 ms    0.000% pixels differ   OK
Scalar       ILPx2     51.46 ms    0.000% pixels differ   OK
Scalar       ILPx4     63.58 ms    0.000% pixels differ   OK
MMX          ILPx1     73.46 ms    3.159% pixels differ   OK
MMX          ILPx2     73.48 ms    3.159% pixels differ   OK
MMX          ILPx4     73.67 ms    3.159% pixels differ   OK
3DNow!       skipped (not supported)
SSE          ILPx1     23.07 ms    0.344% pixels differ   OK
SSE          ILPx2     13.34 ms    0.344% pixels differ   OK
SSE          ILPx4     18.16 ms    0.344% pixels differ   OK
SSE2         ILPx1     43.42 ms    0.001% pixels differ   OK
SSE2         ILPx2     26.40 ms    0.001% pixels differ   OK
SSE2         ILPx4     34.20 ms    0.001% pixels differ   OK
SSE3         ILPx1    102.14 ms    0.000% pixels differ   OK
SSE3         ILPx2     77.39 ms    0.000% pixels differ   OK
SSE3         ILPx4     43.12 ms    0.000% pixels differ   OK
SSE4.1       ILPx1     51.83 ms    0.001% pixels differ   OK
SSE4.1       ILPx2     29.95 ms    0.001% pixels differ   OK
SSE4.1       ILPx4     32.68 ms    0.001% pixels differ   OK
AVX          ILPx1     24.23 ms    0.001% pixels differ   OK
AVX          ILPx2     14.02 ms    0.001% pixels differ   OK
AVX          ILPx4     13.86 ms    0.001% pixels differ   OK
FMA4         skipped (not supported)
AVX2         ILPx1     21.78 ms    0.005% pixels differ   OK
AVX2         ILPx2     12.66 ms    0.005% pixels differ   OK
AVX2         ILPx4     15.54 ms    0.005% pixels differ   OK
AVX-512/256  ILPx1     25.64 ms    0.005% pixels differ   OK
AVX-512/256  ILPx2     13.36 ms    0.005% pixels differ   OK
AVX-512/256  ILPx4      8.29 ms    0.005% pixels differ   OK
AVX-512      ILPx1     12.86 ms    0.004% pixels differ   OK
AVX-512      ILPx2      9.26 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)
3DNow! logic (SSE stand-in)           0.056% pixels differ vs FP32   OK

D3D9   FP32     64.533 ms    0.265% pixels differ   OK   [Microsoft Basic Render Driver]
D3D9 FP64    skipped (no FP64)
D3D10  FP32     23.414 ms    0.265% pixels differ   OK   [Microsoft Basic Render Driver]
D3D10 FP64    skipped (no FP64)
D3D12  FP32     62.198 ms    0.265% pixels differ   OK   [Microsoft Basic Render Driver]
D3D12  FP64    160.070 ms    0.000% pixels differ   OK   [Microsoft Basic Render Driver]
OpenGL       skipped (OpenGL 4.3 core context unavailable)
OpenCL       skipped (No OpenCL platforms installed)
Vulkan       skipped (vkCreateInstance failed (-9))
CUDA         skipped (No NVIDIA driver (nvcuda.dll not found))
HIP          skipped (AMD HIP runtime not found)

Extensions Lab
  POPCNT       Popcount                 0.142 ms ->     0.076 ms  (  1.86x)  OK
  LZCNT        Leading zeros            1.386 ms ->     0.077 ms  ( 17.90x)  OK
  BMI1         Bit iteration            5.558 ms ->     0.772 ms  (  7.20x)  OK
  BMI2         Morton codes             0.210 ms ->     0.234 ms  (  0.90x)  OK
  ADX + MULX   Bignum multiply          0.198 ms ->     0.156 ms  (  1.27x)  OK
  MOVBE        Big-endian load          0.200 ms ->     0.039 ms  (  5.13x)  OK
  SSE4.2       CRC-32C                  2.293 ms ->     0.108 ms  ( 21.29x)  OK
  SSE4a        Bit-field extract        0.019 ms ->     0.076 ms  (  0.24x)  OK
  XOP          Vector rotate        skipped
  PCLMULQDQ    Carry-less multiply      3.262 ms ->     0.016 ms  (199.52x)  OK
  AES-NI       AES-128                  1.523 ms ->     0.012 ms  (122.33x)  OK
  SHA          SHA-256                  0.939 ms ->     0.192 ms  (  4.89x)  OK
  F16C         Half floats              3.237 ms ->     0.058 ms  ( 55.50x)  OK
  RDRAND       Hardware RNG             0.054 ms ->     0.718 ms  (  0.08x)  OK
  RDSEED       Entropy source           0.007 ms ->     2.191 ms  (  0.00x)  OK
  VAES         Wide AES                 0.026 ms ->     0.014 ms  (  1.78x)  OK
  VPCLMULQDQ   Wide CLMUL               0.016 ms ->     0.014 ms  (  1.15x)  OK
  GFNI         Bit reverse              1.103 ms ->     0.064 ms  ( 17.13x)  OK
  AVX-VNNI     Int8 dot product     skipped
  AVX512-VNNI  Int8 dot product         0.128 ms ->     0.005 ms  ( 27.41x)  OK
  AVX512-BF16  BF16 dot product         0.054 ms ->     0.003 ms  ( 15.79x)  OK
  AVX512-FP16  FP16 arithmetic      skipped
  VPOPCNTDQ    Vector popcount          0.077 ms ->     0.022 ms  (  3.53x)  OK
  BITALG       Byte popcount            1.693 ms ->     0.029 ms  ( 58.57x)  OK
  AVX-512F     Stream compaction        0.296 ms ->     0.396 ms  (  0.75x)  OK
  AVX-512CD    Conflict detection       0.515 ms ->     0.006 ms  ( 88.68x)  OK
  AVX512-IFMA  52-bit MAC               0.072 ms ->     0.016 ms  (  4.56x)  OK
  AVX512-VBMI  Byte permute             1.101 ms ->     0.027 ms  ( 41.24x)  OK
  AMX-INT8     Int8 tile GEMM       skipped
  AMX-BF16     BF16 tile GEMM       skipped

SELFTEST PASSED