cbalint13 opened a new pull request, #19617:
URL: https://github.com/apache/tvm/pull/19617

   In continuation of https://github.com/apache/tvm/pull/19594 **(DSO 
modularization)**, fixes for```tvm_rpc``` backend pickups
   
   ---
   
   ### Issue
   
   * Errors during remote ```tvm_rpc``` metaschedule sessions:
     ```
     AttributeError: Unable to find function 
"tvm.contrib.random.random_fill_for_measure" 
     on the remote RPC server.  Please make sure 'USE_RANDOM' is turned ON in 
the config.cmake
     on the RPC server.
     ```
   This error is due to missing ```libtvm_runtime_extra.so``` (home of contrib 
modules, e.g *random*) from ```tvm_rpc```.
   
   ----
   
   ### Fixes
   
   * Before:
   ```
   [root@jetson tmp]# readelf -a /usr/bin/tvm_rpc | grep NEED
     [ 7] .gnu.version_r    VERNEED          0000000000403a88  00003a88
    0x0000000000000001 (NEEDED)             Shared library: [libtvm_runtime.so]
    0x0000000000000001 (NEEDED)             Shared library: [libtvm_ffi.so]
    0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
    0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
    0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
   ```
   
   * After:
   ```
   [root@jetson tmp]# readelf -a /usr/bin/tvm_rpc | grep NEED
     [ 7] .gnu.version_r    VERNEED          0000000000404ed0  00004ed0
    0x0000000000000001 (NEEDED)             Shared library: 
[libtvm_runtime_extra.so]
    0x0000000000000001 (NEEDED)             Shared library: 
[libtvm_runtime_cuda.so]
    0x0000000000000001 (NEEDED)             Shared library: 
[libtvm_runtime_opencl.so]
    0x0000000000000001 (NEEDED)             Shared library: [libtvm_runtime.so]
    0x0000000000000001 (NEEDED)             Shared library: [libtvm_ffi.so]
    0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
    0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
    0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
   ```
   
   Thank you !
   
   cc: @tqchen @spectrometerHBH 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to