<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sujay Shekhar on Medium]]></title>
        <description><![CDATA[Stories by Sujay Shekhar on Medium]]></description>
        <link>https://medium.com/@sujayshekhar?source=rss-5145ba2c0bf3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9Q5hs1nhMKjmYeuSEsZ7bg.jpeg</url>
            <title>Stories by Sujay Shekhar on Medium</title>
            <link>https://medium.com/@sujayshekhar?source=rss-5145ba2c0bf3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:28:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sujayshekhar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Setup CUDA ToolKit, CuDNN for using TensorFlow-GPU : Windows 10]]></title>
            <link>https://medium.com/@sujayshekhar/setup-cuda-toolkit-cudnn-for-using-tensorflow-gpu-windows-10-31dee9062dde?source=rss-5145ba2c0bf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/31dee9062dde</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[cuda-toolkit]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Sujay Shekhar]]></dc:creator>
            <pubDate>Sat, 10 Dec 2022 17:47:09 GMT</pubDate>
            <atom:updated>2022-12-10T18:03:30.610Z</atom:updated>
            <content:encoded><![CDATA[<h4>TensorFlow</h4><h3>Install latest TensorFlow-GPU with CUDA and CuDNN support on Windows 10</h3><h4>Speed up the training process using GPU</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cSLCDVDJ4i-eC_1K" /><figcaption>Photo by <a href="https://unsplash.com/@zelebb?utm_source=medium&amp;utm_medium=referral">Andrey Matveev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>Installing TensorFlow-GPU with CUDA and CuDNN support is time consuming and quite tedious process. Be patient, relax and make sure you have a stable internet connection.</blockquote><p>First of all, we need to check for the compatibility of TensorFlow-GPU with, CUDA, and CuDNN versions :</p><p>You can check for the compatibility on <a href="https://www.tensorflow.org/install/source_windows#gpu"><strong><em>TensorFlow</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*YQhpsZNOsIheHekaf2DTEw.png" /></figure><blockquote>We will be installing the latest TensorFlow-GPU Version 2.10.1. For that we’ll need CuDNN 8.1.1, CUDA 11.2.2 and Visual Studio Community 2019</blockquote><p>Please follow each step :</p><ol><li>Make sure you’ve the latest Nvidia Graphics Driver installed.</li><li>Download and Install Visual Studio Community — 2019 Installer</li><li>Download and Install CUDA ToolKit — 11.2.2</li><li>Download and Install CuDNN — 8.1.1</li><li>Add paths to system environment variable</li><li>Test</li></ol><h4>Step 1 : Microsoft Visual Studio Community — 2019</h4><blockquote>Download the MSVC — 2019 installer : (<a href="https://visualstudio.microsoft.com/vs/older-downloads/"> <strong><em>Click here to download</em></strong></a>)</blockquote><p>It will ask you to sign up/login. Once you’re logged in type<strong><em> Visual Studio Community — 2019</em></strong> in the search box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3u6VVu_CzBMoMUZw0HmEQ.png" /></figure><p>Download and run the MSVC — 2019 installer. Now, you need to download a few C++ workloads from MSCV.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*wNzn5VOBuXmKjoBMXRz34A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*GvYmvdsKl8Zidg1YrWSD5g.png" /></figure><p>Make sure you’ve select <strong><em>Desktop development with C++</em></strong> and <strong><em>Mobile development with C++.</em></strong> In the right hand side you’ll see<strong><em> Visual Studio core Editor</em></strong> and the two you have selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*D97oji4xCewcZB38cqd9mQ.png" /></figure><p>It will take some time to download and install. Relax by the time. Once installed you can close it.</p><h4>Step 2 : Download the CUDA ToolKit — 11.2.2</h4><blockquote>Download the CUDA Toolkit — 11.2.2 : ( <a href="https://developer.nvidia.com/cuda-11.2.2-download-archive"><strong><em>Click here to download</em></strong></a> )</blockquote><p>I’ll recommend you to download the same version for CUDAToolkit. Select Windows, x86_64 , 10, and exe(local) and download the setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*Hh7kItPivwEI-7QARKtQ-g.png" /></figure><blockquote>Once downloaded run the installer, accept the agreement and use <strong><em>Express ( Recommended )</em></strong> method to install.</blockquote><h4>Step 3 : Download the CuDNN</h4><blockquote>Download the CuDNN : ( <a href="https://developer.nvidia.com/rdp/cudnn-archive"><strong><em>Click here to download </em></strong></a>)</blockquote><p>For the first time, it will ask you to log in. If you don’t have a nvidia developer account simply click on <strong>Join Now</strong>. Register yourself and log in.</p><p>Once logged in, select <strong>CuDNN 8.1.1 [ February 26th 2021 ]</strong> version which is compatible with CUDA 11.2, download the zip file for windows. C<strong><em>uDNN Library for Windows (x86)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CRAjP5isI1zIs4D8XfS1kg.png" /></figure><p>After downloading the zip file. Extract everything from it, you’ll see 3 folders and 1 file <strong><em>bin, include, lib</em></strong>, and a<strong><em> text file</em></strong>. Make a <strong>new folder</strong> in your <strong><em>C: drive</em></strong> named <strong><em>cuda </em></strong>and move all the extracted files and folders into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*wsxK0km4mXfkIZXca1EKrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/178/1*g5mXrsOr9aDNcyOEtg0yuA.png" /></figure><h4>Step : 4 Edit the System Environment Variables</h4><p>In the Windows Search box type <strong><em>Edit the system environment variable</em></strong> and open it. Once the system properties window opens, click on <strong>Environment Variables…</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*3r3WgtCaxB47VVWX4iUkJA.png" /></figure><p>Under <strong>System Variables, </strong>search for <strong>Path. </strong>Select path and click on <strong>Edit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*evTZ_NjL_XkHV5XevhSGig.png" /></figure><p>Once the window appears, click on <strong><em>New </em></strong>and add these paths.</p><pre>C:\cuda\bin<br>C:\cuda\include<br>c:\cuda\lib\x64</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*T-gUoShqCEmfX50H6u_nPg.png" /></figure><h4>Step : 5 Create a conda environment using Anaconda Prompt</h4><blockquote>Open <strong>Anconda Prompt (Terminal)</strong></blockquote><pre>conda create -y --name tfv2_gpu_env python==3.9</pre><p>Once the environment is created activate it.</p><pre>conda activate tfv2_gpu_env</pre><p>It’s time to install tensorflow-gpu==2.10.1 which is the latest version.</p><pre>pip install tensorflow-gpu==2.10.1</pre><p><strong><em>It’s time to test !! The moment of truth !!</em></strong></p><p>Launch Python the Anaconda Prompt ( Terminal ). And run the below command one by one.</p><pre>import tensorflow as tf<br>tf.config.list_physical_devices(&#39;GPU&#39;)<br>tf.test.is_build_with_cuda()<br>tf.test.gpu_device_name()<br>tf.test.is_build_with_gpu_support()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HsOE8SdhIt-SmjJnsE0rnA.png" /></figure><p>Congratulations. If you see these results, you’ve successfully installed the latest version of TensorFlow-GPU with CUDA and CuDNN support.</p><p>Follow me : <strong>Instagram </strong><a href="https://www.instagram.com/_dataenthusiast/"><strong><em>( click here )</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31dee9062dde" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>