Skip to main content

Module metal

Module metal 

Source
Expand description

Metal backend (common.metal, chebyshev.metal, walk.metal). The kernels are compiled from source when the device is opened, without fast math (the double-single arithmetic needs exact IEEE rounding). Buffers live in shared memory: on Apple Silicon the CPU reads the results without a copy.

Structsยง

MetalDevice
The GPU, its command queue and the compiled kernels.
MetalOperator
A sparse Hamiltonian resident on the GPU.