Skip to main content

Module gpu

Module gpu 

Source
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§

Options
How a walk runs.
Report
What a run did.

Enums§

Device
Where a walk runs.

Functions§

evolve
Runs steps steps from psi (left at the last step) and calls observe(t, ψ) at t = 0, every options.every steps and at the end.