top | item 44693494

(no title)

LowLevelMahn | 7 months ago

this Rust demo also uses PTX directly

  During the build, build.rs uses rustc_codegen_nvvm to compile the GPU kernel to PTX.
  The resulting PTX is embedded into the CPU binary as static data.
  The host code is compiled normally.

discuss

order

LegNeato|7 months ago

To be more technically correct, we compile to NVVM IR and then use NVIDIA's NVVM to convert it to PTX.