From ccda2e052ff7abe72b2277de6503ffa8e7299c9e Mon Sep 17 00:00:00 2001 From: tqchen Date: Thu, 29 Jun 2023 09:11:15 -0400 Subject: [PATCH] [RUNTIME] Add weak symbol to builtin fp16 This PR add weak symbol to remaining functions in builtin fp16. Weak is needed because such builtin function can be provided by other libraries and we only need one runtime implementation of it. --- src/runtime/builtin_fp16.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/builtin_fp16.cc b/src/runtime/builtin_fp16.cc index 64723ffbf5a2..ba3dddb7ae49 100644 --- a/src/runtime/builtin_fp16.cc +++ b/src/runtime/builtin_fp16.cc @@ -37,7 +37,7 @@ TVM_DLL TVM_WEAK float __gnu_h2f_ieee(uint16_t a) { return __extendXfYf2__(a); } -TVM_DLL uint16_t __truncdfhf2(double a) { +TVM_DLL TVM_WEAK uint16_t __truncdfhf2(double a) { return __truncXfYf2__(a); }