std1.0.0-beta-7 SafeC docs

std :: ml::gpu_rocm

Function std::rocm_matmul_f32

#include <std/ml/gpu_rocm.h> source ยท definition

int rocm_matmul_f32(
    []const float a,
    []const float b,
    []float out,
    unsigned long M,
    unsigned long K,
    unsigned long N,
)

out[M,N] = a[M,K] * b[K,N] with this library's own tiled HIP kernel (64x64 tiles in LDS, 4x4 per thread). Kept as a dependency-free reference; rocm_matmul_f32_blas is several times faster at every size.