Comment

Comment by LowLevelMahn

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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton