Skip to content

Commit

Permalink
Rebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhurba01 committed Jul 8, 2024
1 parent b88592a commit 6923211
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
20 changes: 0 additions & 20 deletions docs/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -357,26 +357,6 @@ <h2>CUDA Python workflow<a class="headerlink" href="#cuda-python-workflow" title
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">RuntimeError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="n">Cell</span> <span class="n">In</span><span class="p">[</span><span class="mi">4</span><span class="p">],</span> <span class="n">line</span> <span class="mi">2</span>
<span class="g g-Whitespace"> </span><span class="mi">1</span> <span class="c1"># Initialize CUDA Driver API</span>
<span class="ne">----&gt; </span><span class="mi">2</span> <span class="n">checkCudaErrors</span><span class="p">(</span><span class="n">cuda</span><span class="o">.</span><span class="n">cuInit</span><span class="p">(</span><span class="mi">0</span><span class="p">))</span>
<span class="g g-Whitespace"> </span><span class="mi">4</span> <span class="c1"># Retrieve handle for device 0</span>
<span class="g g-Whitespace"> </span><span class="mi">5</span> <span class="n">cuDevice</span> <span class="o">=</span> <span class="n">checkCudaErrors</span><span class="p">(</span><span class="n">cuda</span><span class="o">.</span><span class="n">cuDeviceGet</span><span class="p">(</span><span class="mi">0</span><span class="p">))</span>

<span class="nn">Cell In[2], line 12,</span> in <span class="ni">checkCudaErrors</span><span class="nt">(result)</span>
<span class="g g-Whitespace"> </span><span class="mi">10</span> <span class="k">def</span> <span class="nf">checkCudaErrors</span><span class="p">(</span><span class="n">result</span><span class="p">):</span>
<span class="g g-Whitespace"> </span><span class="mi">11</span> <span class="k">if</span> <span class="n">result</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">value</span><span class="p">:</span>
<span class="ne">---&gt; </span><span class="mi">12</span> <span class="k">raise</span> <span class="ne">RuntimeError</span><span class="p">(</span><span class="s2">&quot;CUDA error code=</span><span class="si">{}</span><span class="s2">(</span><span class="si">{}</span><span class="s2">)&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">result</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">value</span><span class="p">,</span> <span class="n">_cudaGetErrorEnum</span><span class="p">(</span><span class="n">result</span><span class="p">[</span><span class="mi">0</span><span class="p">])))</span>
<span class="g g-Whitespace"> </span><span class="mi">13</span> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">result</span><span class="p">)</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
<span class="g g-Whitespace"> </span><span class="mi">14</span> <span class="k">return</span> <span class="kc">None</span>

<span class="ne">RuntimeError</span>: CUDA error code=804(b&#39;CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE&#39;)
</pre></div>
</div>
</div>
</div>
<p>Before you can use the PTX or do any work on the GPU, you must create a CUDA
context. CUDA contexts are analogous to host processes for the device. In the
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 6923211

Please sign in to comment.