Segmentation fault error of load data with old pytorch versions

Aiman_Mutasem-bellh: <p>Hello <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
<p>I have Cuda version <code>10.0</code> and I can’t upgrade to upper versions (I have no administrator access).</p>
<p>Torch versions (<code>1.2.0, 1.3.0, 1.3.1, and 1.4.0</code>) gives me a <code>segmentation fault</code> error when load data. The possible solution is to update Pytorch to <code>1.5.0</code> but I can’t because of my Cuda version <code>10.0</code>.</p>
<p>When I tried to install Pytorch using <code>pip</code> I got an  error of  ‘OSError: /lib64/libc.so.6: version `GLIBC_2.18’ not found (required by /lib64/libstdc++.so.6)’.</p>
<p>I have tried to install Pytorch 1.5.0 and I get <code>AssertionError: Torch not compiled with CUDA enabled</code></p>
<p>My questions are:</p>
<ol>
<li>Is there any way to fix the <code>segmentation fault issue</code> with versions below 1.4.0?</li>
<li>Why I get a <code>version </code>GLIBC_2.18’ not found<code> error when I use</code>pip` to install Pytorch?</li>
</ol>
<p>Kind regards,<br>
Aiman</p>

Aiman_Mutasem-bellh: <p>Any suggestions to fix this issue?</p>
<p>Kind regards</p>

ptrblck: <p>Your local CUDA toolkit won’t be used, if you install the conda binaries or pip wheels, as they ship with their own CUDA runtime. You would only need to install the appropriate NVIDIA driver.<br>
However, your local CUDA installation will be used if you build PyTorch from source or build custom CUDA extensions.</p>
<p>I would not recommend to try to isolate the seg fault, as it might have been a known issue which was already fixed.</p>
<p>For the GLIBC issue: could you create a new virtual environment and try to install the binaries again?</p>

Aiman_Mutasem-bellh: <p>Thank you sir for your valuable comment.</p>
<p>I have installed Pytorch from source with a virtual environment as follow:</p>
<pre><code class="lang-auto">pip install torch==1.3.1+cu100 torchvision==0.4.2+cu100 -f https://download.pytorch.org/whl/torch_stable.html
</code></pre>
<p>There is no GLIBC issue but still getting a <code>segmentation fault</code> error.</p>
<p>An image is attached. <div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/8/d/8dff1df3731707d0be5f75b21d42bf1988937540.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/8dff1df3731707d0be5f75b21d42bf1988937540" title="20201124141334"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/8/d/8dff1df3731707d0be5f75b21d42bf1988937540_2_690x115.jpeg" alt="20201124141334" data-base62-sha1="kg9Um6wRN5o0vwpFJr4TUKtbGmc" width="690" height="115" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/8/d/8dff1df3731707d0be5f75b21d42bf1988937540_2_690x115.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/8/d/8dff1df3731707d0be5f75b21d42bf1988937540_2_1035x172.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/8/d/8dff1df3731707d0be5f75b21d42bf1988937540_2_1380x230.jpeg 2x" data-dominant-color="2D3033"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">20201124141334</span><span class="informations">2304×384 171 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>
<p>System information:<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/5/6/56ad5f4c2f7b0a4e392a01a807eaa255923c5235.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/56ad5f4c2f7b0a4e392a01a807eaa255923c5235" title="sf"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/5/6/56ad5f4c2f7b0a4e392a01a807eaa255923c5235_2_690x201.jpeg" alt="sf" data-base62-sha1="cmMvFx1lmlaGZmxZD9Xgkpj409n" width="690" height="201" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/5/6/56ad5f4c2f7b0a4e392a01a807eaa255923c5235_2_690x201.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/5/6/56ad5f4c2f7b0a4e392a01a807eaa255923c5235_2_1035x301.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/5/6/56ad5f4c2f7b0a4e392a01a807eaa255923c5235.jpeg 2x" data-dominant-color="353031"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">sf</span><span class="informations">1363×399 103 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
Could you explain this?</p>

ptrblck: <p>Install the latest stable version (<code>1.7.0</code>) or the nightly binaries, please, since this error might have already been solved.</p>