Function tvm::codegen::PackImportsToC#
Defined in File codegen.h
Function Documentation#
-
ffi::String tvm::codegen::PackImportsToC(const ffi::Module &m, bool system_lib, const ffi::String &c_symbol_prefix = "")#
Pack imported device library to a C file. Compile the C file and link with the host library will allow the DSO loader to automatically discover and import the dependency from the shared library.
- Parameters:
m – The host module with the imports.
system_lib – Whether expose as system library.
c_symbol_prefix – Optional symbol prefix of the blob symbol.
- Returns:
cstr The C string representation of the file.