Skip to content

[Bug] RPC load_module failed because of file path #10579

@donaldkuck

Description

@donaldkuck

case1: pass
mod.save(temp.relpath("gemm.o"))
f = remote.load_module(temp.relpath("gemm.o"))

case2: failed
mod.save("/home/ubuntu/gemm.o")
f = remote.load_module("/home/ubuntu/gemm.o")
log:

TVMError:

An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html

Check failed: ecode.value() == 0 (2 vs. 0) : Cannot open file: /home/ubuntu/gemm.o No such file or directory

Expected behavior

case2 pass

What you were expecting

def load_module(file_name): """Load module from remote side.""" path = temp.relpath(file_name) m = _load_module(path) logger.info("load_module %s", path) return m
In file tvm/rpc/server.py, file_name will be changed to be with temp_path prefix, it is weired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions