tvm_tirx.backend.cuda.export_cuda_host#
- tvm_tirx.backend.cuda.export_cuda_host(mod)#
Return C++ host source with embedded device binaries.
Build with a CUDA Target whose host is
cuda_host. Each device import retains its own architecture and BackendConfig. This export preserves those binary boundaries; compiling the returned host source does not invoke a device compiler. Link the result with tvm-ffi, cudart and the CUDA driver. The resulting library needs only those libraries at runtime.Source-only fallback imports are compiled using their serialized settings. Binary imports work after a save/load roundtrip, without original source.
- Parameters:
mod (Module)
- Return type:
str