Feature request: global "Fast Math" flag
評估
研究方向
首先定位 CudaBuilder 現有的全域 ftz 選項,並檢視 fadd_fast 及類似 intrinsic 的公開方式。將該行為與 NVCC 的 --use_fast_math 語意進行比較;完成的標準是確定是否可以新增全域 fast_math 選項,同時不改變現有針對嚴格 IEEE 數學的 opt-in 行為。
由索引模型根據 Issue 內容生成。
描述
With NVCC, I can use the flag --use_fast_math to enable algebraic optimisations globally when compiling a file. The only way I found to enable such optimisations in Rust-CUDA is to use the fadd_fast intrinsics (and similar). The typical reasoning for using this approach instead of a global "fast math" flag is that some math functions may rely on strict adherence to IEEE float semantics, so using a global "fast math" flag might silently break these. However, CudaBuilder already has a global ftz flag which may already break such functions. Therefore, perhaps it makes sense to also add a global fast_math flag, given that it's ok to globally opt-in to breaking IEEE anyway via ftz?
I'm happy to help with the implementation of this
- 主要語言
- Rust
- 星號
- 5.4k
- 分支
- 254
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Rust-GPU/rust-cuda 的其他 Issue
-
`dynamic_shared_mem` overlaps a kernel's static shared memory (the extern symbol is declared with a size)可能已有人在做 @shubhamkapoor01 於 10 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
-
Default NvvmArch::Compute75 silently produces InvalidPtx on pre-Turing GPUs (Pascal/Maxwell/Volta)未關閉
難度 4/5 3-5 天 新手友好度 48/100
-
A `#[address_space(shared)]` static is stored with a generic `st.u32` instead of `st.shared`, corrupting memory — two identically-declared siblings lower differently可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 5/5 一週以上 新手友好度 30/100
-
Array parameters lose alignment metadata and ICE on >16 byte alignments可能已有人在做 @Snehal-Reddy 於 187 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 45/100
-
難度 4/5 3-5 天 新手友好度 35/100
查看 Rust-GPU/rust-cuda 的全部 Issue
相似的 Issue
-
bug file-compat priority: high
難度 2/5 1-3 小時 新手友好度 76/100
storytold/photocraft#11330 · 1 則留言 ·
維護者通常 1 天內回覆
-
redis-compat
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
say: name hint should only fire on @tags, not bare words or text inside links可能已有人在做 @morganparadis 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
CakeRepository/agentshangout#501 ·
-
area:ui could docs good first issue
難度 1/5 1-3 小時 新手友好度 79/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100