Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
[BugFix][LLVM] Fix the bug that the generated systemlib cannot regist…
Browse files Browse the repository at this point in the history
…er ```__tvm_module_ctx``` symbol sometimes (apache#12817)

[BugFix][LLVM] Fix the bug that the generated systemlib cannot register '__tvm_module_ctx' symbol sometimes.
  • Loading branch information
yanghaku authored and xinetzone committed Nov 25, 2022
1 parent d9d4981 commit b6df0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/llvm/codegen_cpu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ void CodeGenCPU::Init(const std::string& module_name, LLVMTarget* llvm_target, b
llvm::Function::Create(ftype_tvm_parallel_barrier_, llvm::Function::ExternalLinkage,
"TVMBackendParallelBarrier", module_.get());
}
InitGlobalContext(dynamic_lookup);
target_c_runtime_ = target_c_runtime;
is_system_lib_ = system_lib;
InitGlobalContext(dynamic_lookup);
}

void CodeGenCPU::AddFunction(const PrimFunc& f) {
Expand Down

0 comments on commit b6df0d3

Please sign in to comment.