Comments (14)
Downloaded llvm using wget http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
and made sure its in path when building torch_tvm
from tvm.
I tried nightly build container from Pytorch docker hub pytorch/pytorch:nightly-devel-cuda10.0-cudnn7
and I encounter same errors.
from tvm.
Can you paste repro instructions? It is not clear where the error is coming from. The memory_utils.h stuff seems like a warning and it does not seem that treating warning as error is enabled either.
from tvm.
Repro instructions:
docker pull nvcr.io/nvidia/pytorch:19.06-py3
docker_image=nvcr.io/nvidia/pytorch:19.06-py3
docker run -e NVIDIA_VISIBLE_DEVICES=0 --gpus 0 -it --shm-size=1g --ulimit memlock=-1 --rm -v $PWD:/workspace/work $docker_image
[Inside the container], I go to the base directory : cd /
wget http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
tar -xf clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
export PATH=$PATH:/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/
ln -s /clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/llvm-config /usr/bin/llvm-config
git clone --recursive https://github.com/pytorch/tvm.git
cd tvm/
python setup.py install --cmake
I have attached the full output:
from tvm.
@SrivastavaKshitij, error seems to be coming from change in pytorch API.
/tvm/torch_tvm/compiler.cpp: In static member function ‘static tvm::relay::Var TVMCompiler::convertToRelay(torch::jit::Value*, TVMContext)’:
/tvm/torch_tvm/compiler.cpp:130:39: error: ‘using element_type = struct c10::TensorType {aka struct c10::TensorType}’ has no member named ‘device’
auto optional_device_type = pt_t->device();
^~~~~~
Maybe try with latest release?
from tvm.
@bwasti ^^
from tvm.
@kimishpatel : I tried the latest ngc container [19.08-py3]
and have the same error
from tvm.
I was wondering if there is any update ?
from tvm.
I'm not entirely sure what version of PT NGC containers are shipping, but we've kept this repo up to date with PyTorch's master branch. Would you be able to try building PyTorch from source first? There is an API mismatch in the build that indicates you are using too old a version of PT.
from tvm.
I have to try torch_tvm
on different gpus present in different workstations and so the feasible way for me is to build one docker image and pass it around. There is a latest docker image from pytorch on Docker Hub that was released 4 days ago. I used 1.2-cuda10.0-cudnn7-devel
tag and I still get the same error.
from tvm.
that image is shipped with PT 1.2, which is unfortunately not compatible with torch_tvm
. Can you build a docker image with PT built from source with a recent master checkout instead?
from tvm.
Hey @bwasti : I was able to create a docker image as you suggested. It works. Here are the steps if anybody wants to install torch_tvm
inside a container.
Also, is it possible to package torch_tvm
as a part of pytorch container in future ? Reason: It's a very cumbersome process to install torch_tvm
inside a container , phew !!
from tvm.
Hi, @SrivastavaKshitij
Thanks to your steps to install torch tvm,
while following your suggestions, i successfully installed torch tvm,
but i got below import error, as you previously suffered.
Can you inform me the exact version of pytorch you built?
from tvm.
I did it many months ago but i think it was pytorch 1.2 from master.
from tvm.
Related Issues (20)
- Can't Build the Project on MacOs HOT 5
- error when importing torch_tvm HOT 6
- Error when installing TVM on Raspberry (PyTorch 1.1) HOT 1
- Question on FuseSupportedOps pass HOT 2
- "setup.py install --cmake" errors for type_traits, hashtable_policy.h and unordered_map.h HOT 1
- convert demo needed HOT 1
- No significant change in iters/sec while comparing cpu vs gpu performance HOT 5
- is this repo really useful and working? HOT 1
- LLVM error when import torch_tvm after building pytorch and torch_tvm from source HOT 5
- Saving the compiled graph HOT 1
- 3D Convolution? HOT 1
- llvm version HOT 1
- RuntimeError: _Map_base::at
- import torch_tvm error HOT 5
- Problems about installing torch_tvm ? HOT 3
- Make build C++ ABI aware
- tests error HOT 4
- "malloc(): memory corruption" when running benchmark.py
- Has the project been deprecated? HOT 2
- Is There Any Speed Benchmark for Pytorch/tvm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tvm.