pub fn compile_to_ptx(
src: &str,
opts: NvrtcOpts,
disk_cache: Option<&NvrtcCache>,
) -> Result<(Vec<u8>, Option<Vec<u8>>), GpuError>Expand description
Phase 5: stand-alone PTX/CUBIN emission for callers that want the
raw bytes without spawning an actor. Bypasses the actor mailbox;
honours the same cache and arch-selection logic. The returned tuple
is (ptx, cubin) where cubin is Some only when LTO is on or
the cache hit happened to carry one.