tvm-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Venkat via TVM Discuss <nore...@discuss.tvm.ai>
Subject [TVM Discuss] [Development] Upstreaming tensorize implementation
Date Fri, 26 Apr 2019 08:03:13 GMT


Wanted to add another problem I'm facing. When I call tensorize with call_extern within a
AutoTVM template function it is not able to resolve the external call. But the problem does
not appear when the function is not decorated as a AutoTVM template function. I load the dynamic
library via 


def load_lib():
    """Load library, the functions will be registered into TVM"""
    curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
    # load in as global so the global extern symbol is visible to other dll.
    lib = ctypes.CDLL(
        os.path.join(curr_path, "../mylib.so"), ctypes.RTLD_GLOBAL)
    return lib

_LIB = load_lib()

in the script that I invoke. mylib.so contains my external function called with call_extern
but is not resolved. Says symbol lookup error. The script uses tensorize , and one of the
intrinsic function is implmented by call_extern to a function within the library.





---
[Visit Topic](https://discuss.tvm.ai/t/upstreaming-tensorize-implementation/2199/6) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/751a3ceca38c9aa0bba2396a268ea3b47589a3a2d968193c6e1db7512843ac9a).

Tianqi Chen, UW, Seattle, WA, 98105, United States
http://tracking.discuss.tvm.ai/tracking/unsubscribe?msgid=9wgKdmxNviT2CN1QyQzLxw2
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message