Have some problem with cuda

Abdelkareem_Elkhateb: <p>I am running cuda with pytorch 1.12 and gpu is not configured . i installed pytorch with cuda driver</p>
<pre><code class="lang-auto">conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.6 -c pytorch -c conda-forge
</code></pre>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/a/6/a685f1c9c670b4fbbe3178d0bbce18c8958cda46.png" data-download-href="https://discuss.pytorch.org/uploads/default/a685f1c9c670b4fbbe3178d0bbce18c8958cda46" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/a/6/a685f1c9c670b4fbbe3178d0bbce18c8958cda46_2_690x249.png" alt="image" data-base62-sha1="nL8eyGE4DqASOHWHaI6RHxcDYb4" width="690" height="249" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/a/6/a685f1c9c670b4fbbe3178d0bbce18c8958cda46_2_690x249.png, https://discuss.pytorch.org/uploads/default/original/3X/a/6/a685f1c9c670b4fbbe3178d0bbce18c8958cda46.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/a/6/a685f1c9c670b4fbbe3178d0bbce18c8958cda46.png 2x" data-dominant-color="2D3139"><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">image</span><span class="informations">698×252 15.8 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>

ptrblck: <p>Based on your output I guess you’ve installed the CPU-only binary as it works for me:</p>
<pre><code class="lang-auto">conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.6 -c pytorch -c conda-forge
...
The following NEW packages will be INSTALLED:
...
  pytorch            pytorch/linux-64::pytorch-1.12.1-py3.8_cuda11.6_cudnn8.3.2_0
  pytorch-mutex      pytorch/noarch::pytorch-mutex-1.0-cuda
  torchaudio         pytorch/linux-64::torchaudio-0.12.1-py38_cu116
  torchvision        pytorch/linux-64::torchvision-0.13.1-py38_cu116
</code></pre>
<p>Output:</p>
<pre><code class="lang-python">&gt;&gt;&gt; import torch
&gt;&gt;&gt; torch.__version__
'1.12.1'
&gt;&gt;&gt; torch.cuda.is_available()
True
&gt;&gt;&gt; torch.cuda.get_arch_list()
['sm_37', 'sm_50', 'sm_60', 'sm_61', 'sm_70', 'sm_75', 'sm_80', 'sm_86', 'compute_37']
</code></pre>
<p>So double check your install log and make sure the right version is picked.</p>

Abdelkareem_Elkhateb: <p>what is the difference between your code and mine<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/d/b/dbdfd0faec755b7f41189772cb5614402f614311.png" data-download-href="https://discuss.pytorch.org/uploads/default/dbdfd0faec755b7f41189772cb5614402f614311" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/d/b/dbdfd0faec755b7f41189772cb5614402f614311_2_690x111.png" alt="image" data-base62-sha1="vn65B7joMXnssdtRDcBVx4te9ON" width="690" height="111" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/d/b/dbdfd0faec755b7f41189772cb5614402f614311_2_690x111.png, https://discuss.pytorch.org/uploads/default/optimized/3X/d/b/dbdfd0faec755b7f41189772cb5614402f614311_2_1035x166.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/d/b/dbdfd0faec755b7f41189772cb5614402f614311.png 2x" data-dominant-color="251C29"><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">image</span><span class="informations">1220×198 19.4 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>
I think that I installed cuda version</p>