Skip to content

Instantly share code, notes, and snippets.

@hewumars
Created June 30, 2020 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hewumars/4f34544def0f730596fbc3d399f7a435 to your computer and use it in GitHub Desktop.
Save hewumars/4f34544def0f730596fbc3d399f7a435 to your computer and use it in GitHub Desktop.
  1. 点击 Add Remote,选择 SSH Credentials,填写主机的 SSH 配置信息,Python interpreter path 选择自己需要的远程服务器的解释器,然后在运行程序的时候,通过代码加入LD_LIBRARY_PATH和PYTHONPATH路径。
import sys
import os
print('Python %s on %s,%s' % (sys.version, sys.platform, sys.path))
os.environ['LD_LIBRARY_PATH']="/home/mars/hewu/tvm/build"
sys.path.append("/home/mars/hewu/tvm/python")
sys.path.append("/home/mars/hewu/tvm/topi/python")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment