-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building PyTorch w/o Docker ? #337
Comments
Sure, make sure that you install the dependencies as listed inside the docker files and follow the subsequent steps afterwards. |
An installation script may be very good and helpful. I would be grateful if you could provide one for the community! |
Any progress on that? |
@iotamudelta can you point me to the docker file you are referring to ? Is it that one ? This is what I did to compile pytorch:
The compilation is still going so I am not sure if it is all I needed to do but it looks good so far. |
@Delaunay yes, that Dockerfile is part of it - I'd recommend using https://github.com/ROCmSoftwarePlatform/pytorch/blob/master/docker/caffe2/jenkins/build.sh with "py2-clang7-rocmdeb-ubuntu16.04" as the argument if you build your own docker. A standalone Dockerfile is here: https://raw.githubusercontent.com/wiki/ROCmSoftwarePlatform/pytorch/Dockerfile Yes, just running How much RAM do you have? A good rule of thumb seems to be |
I only have 8Go on that machine. Would you know it is an issue with the configuration of the compilation or if the kernel is really missing ?
|
@Delaunay what GPU do you have? We currently need to compile specifically for a microarchitecture (changes to that are incoming). Export |
Thanks, recompiled it overnight for the gfx803. It is working now.
|
Yeah, that test works for me on gfx906. So please do open a ticket. I don't have a gfx803 setup currently but I'll try to have a look at it when I do and have time. In the meantime, we can discuss in that ticket how to root cause. Is that the only failing test? That'd be better than I thought, to be honest. |
This is what I got on my side overall with
I also ran resnet18 & resnet50. I will do more testing later but for now the timings look great. For the person stumbling upon this thread.
|
Finally a proper answer! I can't thank you enough for this! Will try it ASAP! |
Quick questions: I don't have any info about Ninja. Is this the package manager you are talking about? |
ninja is just the build system that pytorch can use to compile itself. You do not have to use it. ROCm has rocblas and miopen for linear algebra and Machine learning primitives respectively. |
@Delaunay thanks for the info I managed to build pytorch from source on my box! I should mention that I had to install thrust hip port to build caffe2. |
thanks, I updated the list of dependencies |
#337 (comment) doesn't seem to work for me. I get this error no matter what I try:
I'm willing to help debug the issue, I have all dependencies already installed. |
nice, I updated it |
@Delaunay Hi mate! I'm trying to build pytorch with your way, however I'm experiencing some issues. Here is my script. Can you check it out? https://gist.github.com/iamkucuk/c8f74ec6d4f91804d6ff3d1006f26040 |
We added documentation for host installs here: https://github.com/ROCmSoftwarePlatform/pytorch/wiki/Building-PyTorch-for-ROCm#option-4-install-directly-on-host Please note that this requires good knowledge of your operating system, its package manager, and unfortunately in step 4) makes alterations to the ROCm install itself - we are hoping to fix the last in the future. |
Why don't you provide a script for full installation process? PyTorch is becoming more popular, especially in academic world. |
|
Hi, Im trying to get my AMD system set up to run some torch software , I prefer not to have to mess with Docker, is there a reason to do this ?
Is there a way to build this w/o docker?
The text was updated successfully, but these errors were encountered: