Hi, everyone, I find that LLVMModule SaveToFile can’t generate large object file, when I step in, I find the original data in here
std::unique_ptr<llvm::Module> CodeGenBlob(const std::string& data, bool system_lib,
LLVMTarget* llvm_target) {
llvm::TargetMachine* tm = llvm_target->GetOrCreateTargetMachine();
const llvm::Triple& triple = tm->getTargetTriple();
llvm::LLVMContext* ctx = llvm_target->GetContext();
is over 10G,but after data
is connected with a llvm module, and later the connected llvm module becomes a dev.o by calling LLVMModule SaveToFile, the dev.o is only 1.7G, at last the dev.o is used
to generate a lib.so, so this lib.so is only about 1.7G, when I try to load this lib.so by tvm.runtime.load_module
, it will always get Segmentation fault
, because when it trys to load params
from this lib.so, it will reach out of bounds.
Do we have any advice to deal with large data, thanks!