Skip to content

Epic: Cross-platform native-Fortran + CPU-scaling + CUDA benchmark #84

Closed
3 of 3 issues completed
Closed

Description

@neuromechanist

Goal

A rigorous, cross-platform result + performance benchmark of every AMICA backend, extending
the Phase B harness (benchmarks/benchmark_dimsweep.py, #77) with the pieces intentionally left
out of epic #74: native Fortran, CPU core-count scaling, and CUDA multi-model. Answers
"how does the native reference and multi-core CPU compare to the GPU backends, and where are the
crossovers?"

Why its own epic

Epic #74 (Apple-GPU acceleration) delivered the MLX backend and the single-machine Mac + CUDA
single-model comparison. This benchmark is a distinct, larger effort: it needs a native-x86 Linux

  • CUDA host (Apple's amica15mac is x86-under-Rosetta, and Mac CPU/Fortran timing proved
    unreliable), a Fortran build from source, and multi-dimensional sweeps.

Phases (proposed)

  1. Native-Fortran adapter + host setup. Build amica from the .f90 source (gfortran + OpenMP)
    on a Linux CUDA host; a _run_fortran adapter (write .fdt Fortran-order + param, parse the
    binary's own per-iteration timestamps for startup-immune timing). (A Mac Rosetta adapter was
    prototyped in the Phase D branch and reverted -- reuse it.)
  2. CPU core-count scaling. --threads sweep (4/6/8/12/...) for the CPU backends
    (torch-CPU, numpy, native Fortran) with matched thread budgets, to see whether cores catch the GPU.
  3. Full matrix + CUDA multi-model. Run the whole grid on the CUDA host (torch-cpu / numpy /
    native-fortran / cuda) + Mac (mlx / mps); fill in the multi-model CUDA rows Phase B left pending;
    merge into a single cross-platform report + findings.

Constraints

Real EEG only (NO MOCKS; channel subsets of ds002718 for timing). Honest caveats (native vs
Rosetta, cross-machine GPU comparisons, thread-contention). Not run in CI (hardware-specific).

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions