Expand description
Running a walk on the GPU in reduced precision, checked against the CPU, which takes over when the error would exceed the tolerance.
- Calibration. The first 2 % of the steps (at least one, at most 200) run on the CPU in f64 and on the GPU from the same state; the distance between the two states, scaled linearly to the whole run, predicts the final error. Above the tolerance, f32 gives way to double-single, then to the CPU.
- Checks. At every checkpoint the CPU sums
‖ψ‖²in f64; a drift above the tolerance (or a NaN) sends the run back to the CPU from the last good checkpoint. - Report. Every run says where it ran, the calibrated error and the norm drift.
Structs§
Enums§
- Device
- Where a walk runs.
Functions§
- evolve
- Runs
stepssteps frompsi(left at the last step) and callsobserve(t, ψ)att = 0, everyoptions.everysteps and at the end.