brainevent.binary_densemm_p#
- brainevent.binary_densemm_p = <brainevent.XLACustomKernel object>#
Low-level XLA custom-kernel primitive for
binary_densemm.This
XLACustomKernelinstance dispatches the binary (event-driven) dense matrix-matrix multiplication operation to registered backends. On GPU,cuda_rawis the WPR event-driven CUDA backend and remains the default;jax_rawprovides a pure JAX reference path, andcublasprovides an optional float32/bool cuBLAS path.The operation computes
weights[m,k] @ spikes[k,n] -> out[m,n]whentranspose=False, orweights[k,m].T @ spikes[k,n] -> out[m,n]whentranspose=True, where only active (nonzero) spike entries contribute to the output.Beyond backend dispatch, the primitive stores JAX transformation bindings (JVP, transpose, batching, and call registration) so the operation integrates correctly with
jit,vmap, and autodiff.Available backends can be queried with
binary_densemm_p.available_backends(platform), and the default backend can be configured withbinary_densemm_p.set_default(platform, backend).See also
binary_densemmHigh-level user-facing function wrapper.