Build from source with CUDA10

y_liu: <p>Seeking help on “install from source”</p>
<p>I m trying to install from source by building with CUDA10 library. My CUDA and cuDNN installation are working fine and the “python setup.py install” step seems finished correctly (no failure message - correctly identified anaconda python / CUDA paths). But I did not find the torch package installed anywhere (i.e. pytorch folder was not created in python/lib/site-packages ). I wonder if I missed any steps after running setup.py pls?</p>
<p>Thank you!</p>

InnovArul: <p>Just a heads-up.<br>
I am not sure if pytorch is already supported with CUDA10. I tried it once recently and some stuffs did not work.</p>
<p><a href="https://discuss.pytorch.org/t/solved-weird-behavior-with-cuda-toolkit-version-10-0-gcc-6-4-0/26870/3">https://discuss.pytorch.org/t/solved-weird-behavior-with-cuda-toolkit-version-10-0-gcc-6-4-0/26870/3</a></p>
<p>Why not try with CUDA9 / CUDA9.2?</p>

y_liu: <p>Thank Arul for the reply.<br>
I have got a RTX card so not sure if it works with CUDA9.2</p>

lawrencekiba: <p>have you solved building pytorch from source with cuda10?</p>

ptrblck: <p>We are building PyTorch from source with CUDA10 pretty often.<br>
Are you running into some issues? If so, could you post the error message etc.?</p>

dsuess: <p>I’ve used vast.ai’s <a href="https://hub.docker.com/r/vastai/pytorch/" rel="nofollow noopener">docker image</a> which includes Pytorch 1.0 with Cuda 10 support without any issues so far.</p>

lawrencekiba: <p>i’ve tried building pytorch from source with instructions from the link</p>
<p><a href="https://pytorch.org/get-started/locally/" rel="nofollow noopener">https://pytorch.org/get-started/locally/</a></p>
<p>as well as the github repo <a href="https://github.com/pytorch/pytorch#from-source" rel="nofollow noopener">https://github.com/pytorch/pytorch#from-source</a></p>
<p>However I didn’t think it was the right instruction since I got the following error when importing torchvision</p>
<pre><code class="lang-auto">ImportError: libcudart.so.9.0: cannot open shared object file: No such file or directory
</code></pre>
<p>I’m currently running on Ubuntu 16.04 &amp; Python 3.5, without conda.</p>

ptrblck: <p>If you’ve installed <code>torchvision</code> via pip or conda, it might have accidentally downgraded PyTorch in this process (and expects CUDA9 to be present).</p>
<p>Could you print the current PyTorch version (<code>print(torch.__version__)</code>) and check, if my assumption is correct?</p>
<p>I would recommend to build torchvision from source after your PyTorch build.</p>

lawrencekiba: <p>Yes, previously I have installed both packages via pip.</p>
<p>Also I got the following after inserting <code>(print(torch.__version__))</code></p>
<pre><code class="lang-auto">1.2.0a0+2aaeccd
</code></pre>
<p>Is the following link still relevant for building torchvision from source?</p>
<p><a href="https://discuss.pytorch.org/t/installing-torchvision-from-source/4677">https://discuss.pytorch.org/t/installing-torchvision-from-source/4677</a></p>

ptrblck: <p><code>python setup.py install</code> should work (<a href="https://github.com/pytorch/vision#installation" rel="nofollow noopener">instructions</a>).</p>

lawrencekiba: <p>It works now. Appreciate the help <a class="mention" href="/u/ptrblck">@ptrblck</a></p>