You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/src/faq.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,18 +148,18 @@ a lot of them, and ease the burden of correctness from the developer.
148
148
Besides, using Rust only adds to safety, it does not make CUDA *more* unsafe. This means there are only
149
149
things to gain in terms of safety using Rust.
150
150
151
-
## Why not use rust-gpu with compute shaders?
151
+
## Why not use Rust GPU with compute shaders?
152
152
153
153
The reasoning for this is the same reasoning as to why you would use CUDA over opengl/vulkan compute shaders:
154
154
- CUDA usually outperforms shaders if kernels are written well and launch configurations are optimal.
155
155
- CUDA has many useful features such as shared memory, unified memory, graphs, fine grained thread control, streams, the PTX ISA, etc.
156
-
- rust-gpu does not perform many optimizations, and with rustc_codegen_ssa's less than ideal codegen, the optimizations by LLVM and libNVVM are needed.
156
+
- Rust GPU does not perform many optimizations, and with rustc_codegen_ssa's less than ideal codegen, the optimizations by LLVM and libNVVM are needed.
157
157
- SPIR-V is arguably still not suitable for serious GPU kernel codegen, it is underspecced, complex, and does not mention many things which are needed.
158
158
While libNVVM (which uses a well documented subset of LLVM IR) and the PTX ISA are very thoroughly documented/specified.
159
-
- rust-gpu is primarily focused on graphical shaders, compute shaders are secondary, which the Rust ecosystem needs, but it also
159
+
- Rust GPU is primarily focused on graphical shaders, compute shaders are secondary, which the Rust ecosystem needs, but it also
160
160
needs a project 100% focused on computing, and computing only.
161
161
- SPIR-V cannot access many useful CUDA libraries such as OptiX, cuDNN, cuBLAS, etc.
162
-
- SPIR-V debug info is still very young and rust-gpu cannot generate it. While rustc_codegen_nvvm does, which can be used
162
+
- SPIR-V debug info is still very young and Rust GPU cannot generate it. While rustc_codegen_nvvm does, which can be used
163
163
for profiling kernels in something like nsight compute.
164
164
165
165
Moreover, CUDA is the primary tool used in big computing industries such as VFX and scientific computing. Therefore
0 commit comments