This is an automated email from the ASF dual-hosted git repository.

ruihangl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new e504d5d884 [RUNTIME] Add weak symbol to builtin fp16 (#15182)
e504d5d884 is described below

commit e504d5d884ab07e3d7f550a4555e3c1a83c6eac9
Author: Tianqi Chen <[email protected]>
AuthorDate: Thu Jun 29 16:37:23 2023 -0400

    [RUNTIME] Add weak symbol to builtin fp16 (#15182)
    
    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 64723ffbf5..ba3dddb7ae 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__<uint16_t, uint16_t, 10, float, uint32_t, 23>(a);
 }
 
-TVM_DLL uint16_t __truncdfhf2(double a) {
+TVM_DLL TVM_WEAK uint16_t __truncdfhf2(double a) {
   return __truncXfYf2__<double, uint64_t, 52, uint16_t, uint16_t, 10>(a);
 }
 

Reply via email to