Skip to content

@graphty/graphty-element / extend / DEFAULT_ACCELERATOR_PRECISION

Variable: DEFAULT_ACCELERATOR_PRECISION ​

const DEFAULT_ACCELERATOR_PRECISION: AccelerationPrecision = "f32"

Defined in: graphty-element/src/acceleration/types.ts:98

The precision assumed of an accelerator that does not declare one.

Single precision is what every shipped GPU backend computes in, so an accelerator that says nothing is reported as "f32". One that computes in double precision declares GraphAccelerator.precision and is reported as "f64".