request: query capability for fp64 precision on basic ops

Aperta
#2,816 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@r-potter ci sta già lavorando.

Dal 17/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Feature Request

Applications targeting shaderFloat64 currently have no way to determine whether a device's basic double-precision arithmetic (add/sub/mul/fma) meets any particular accuracy bar. The only text governing 64-bit precision is the general statement that "the precision of double-precision instructions is at least that of single precision,". VK_KHR_shader_float_controls lets an application pin down policy, but don't assert anything about the accuracy of the underlying arithmetic.

After asking about this on discord I was told that mul/add are "probably very close to IEEE in practice", but I would like a device feature or something that can give a guarantee (as long as the device driver is conformant).

OpenCL's cl_khr_fp64 already makes a few guarantees.

"Addition, subtraction, multiplication, fused multiply-add... are IEEE 754 compliant and are therefore correctly rounded."

I believe we can't retroactively mandate this, but can we add some sort of property, say shaderBasicOpsIEEECompliantFloat64 that asserts that OpFAdd, OpFSub, OpFMul, and OpFmaKHR on 64-bit floats are correctly rounded per IEEE 754, mirroring the OpenCL clause? I don't know too much about vulkan spec politics but I can't see why this would be difficult to implement

Lingua principale
JavaScript
Stelle
3.4k
Fork
555
Merge medio
3g 10h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di KhronosGroup/Vulkan-Docs

Tutte le issue di KhronosGroup/Vulkan-Docs

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.