pytorch / tvm

TVM integration into PyTorch
449 stars 64 forks source link

LLVM error when import torch_tvm after building pytorch and torch_tvm from source #141

Open DreamChaserMXF opened 4 years ago

DreamChaserMXF commented 4 years ago

Environments: Ubuntu16.04 LTS, Python 3.6.9, LLVM 8.0, GCC 5.4, Pytorch Nightly version (build from source), torch_tvm master branch.

Successfully import tvm, but encounter error when import torch_tvm:

LLVM-error

Bottom of the screen is '__init__.py' of package torch_tvm.

Anyone has any advice?

yinghai commented 4 years ago

Does this clash with import tvm?

DreamChaserMXF commented 4 years ago

Does this clash with import tvm?

No, it doesn't. import tvm can be executed without any error and warning. It seems like tvm was successfully compiled, but torch_tvm was somehow corrupted.

yinghai commented 4 years ago

@bwasti Anything on top of your head?

IHIaadj commented 4 years ago

Same issue here on Ubuntu 18.04.

MaxBareiss commented 4 years ago

I also have this issue on 18.0416.04 with LLVM 9.0.0. It appears to be related to this issue: https://github.com/ziglang/zig/issues/67, which also appears elsewhere in different forms.