This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JIT] Force finalization of JITed code, expose sf/hf runtime functions (
apache#12187) * [JIT] Force finalization of JITed code, expose sf/hf runtime functions Code that handles fp16 and fp32 may end up calling builtins that do the conversions between these types. LLVM emits calls to __truncsfhf2, and __extendhfsf2, which are not present in TVM or TVM runtime. This creates two problems: - Problem 1: JITed code that does the conversions will fail because it calls non-existent functions. Adding these functions to libtvm.so/libtvm_runtime.so solves this part, but there is another issue: - Problem 2: JITed code may still not call these functions, because the generated object may not be fully resolved. To force full resolution, try to obtain an address of a non-existent symbol. * Restart CI
- Loading branch information