79679363

Date: 2025-06-25 16:12:22
Score: 2
Natty:
Report link

NVIDIA GPU Installation steps and guide (Windows 11):

----------------------------------------------------

Step 1: Download and Install ==> "cuda_11.8.0_522.06_windows"

Make Sure Installed version correct or not using this cmd in powershell =\\\> "nvcc --version"  

**Make Sure adding the Environmental Variable Path:**  

    **User Variable:**  

        CUDA_PATH =\\\> "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8"  

        path =\\\> "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8\\\\bin"  

                "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8\\\\libnvvp"  

    **System Variable:**  

        CUDA_PATH =\\\> "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8"  

        CUDA_PATH_V11_8 =\\\> "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8"  

        path =\\\> "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8\\\\bin"  

                "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8\\\\libnvvp"

Step 2: Download and Extract ==> "cudnn-windows-x86_64-8.6.0.163_cuda11-archive"

Copy ==\\\> (bin, include, lib) files paste it in below paths  

for bin =\\\> "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8\\\\bin"  

for include =\\\> "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8\\\\include"  

for lib =\\\> "C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.8\\\\lib\\\\x64"

Step 3: Download and install ==> "Python Version: 3.10.0"

Make Sure adding the Environmental Variable Path:  

    **User Variable:**  

        path =\\\> "C:\\\\Users\\\\{System Name}\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python310\\\\Scripts\\\\"  

                "C:\\\\Users\\\\Balaji P\\\\AppData\\\\Local\\\\Programs\\\\Python\\\\Python310\\\\"  

      

    **System Variable:**  

        (not need)

Step 4: install using powershell ==> "pip install tensorflow==2.13.0"

Make Sure Installed version correct or not using this cmd in powershell =\\\> "pip show tensorflow"

Step 5: install using powershell ==> "pip install tensorflow_gpu==2.10.0"

Step 6: Make activate script using powershell (Enter First)==> cd "C:\{Your Project}"

                                    (Once Done above Enter Second) ==\\\> ".\\\\.venv\\\\Scripts\\\\activate"

Final Step: Run Below code check GPU showing or not

    import tensorflow as tf

    import sys



    print(f"Python Version: {sys.version}")

    print(f"TensorFlow Version: {tf.\__version_\_}")

    print("-" \* 30)



    \# This is the most important part

    gpu_devices = tf.config.list_physical_devices('GPU')



    print(f"Num GPUs Available: {len(gpu_devices)}")



    if gpu_devices:

        print("Found GPU(s):")

        for gpu in gpu_devices:

            print(f"  - {gpu}")

        print("\\nTensorFlow is built with CUDA:", tf.test.is_built_with_cuda())

        print("TensorFlow is built with GPU support:", tf.test.is_built_with_gpu_support())

    else:

        print("No GPU was detected by TensorFlow.")

        print("Please check the following:")

        print("1. Is the NVIDIA driver installed and working? (Run \`nvidia-smi\` in your terminal)")

        print("2. Is the correct version of CUDA Toolkit installed?")

        print("3. Is the correct version of cuDNN installed and its files copied to the CUDA Toolkit directory?")

        print("4. Do the TensorFlow, CUDA, and cuDNN versions match the official build configurations?")

        print("   (Check https://www.tensorflow.org/install/source#gpu)")

        

        

    #Success Output below:

    Python Version: 3.10.0 (tags/v3.10.0:b494f59, Oct  4 2021, 19:00:18) \[MSC v.1929 64 bit (AMD64)\]

    TensorFlow Version: 2.10.0

    ------------------------------

    Num GPUs Available: 1

    Found GPU(s):

      - PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')



    TensorFlow is built with CUDA: True

    TensorFlow is built with GPU support: True

Make Sure check with versions using run below cmd in powershell:

"nvcc --version"

"pip show tensorflow"


Reasons:
  • RegEx Blacklisted phrase (2): working?
  • Long answer (-1):
  • Has code block (-0.5):
  • Filler text (0.5): ----------------------------------------------------
  • Low reputation (1):
Posted by: balaji prabhu