Skip to content

Gallo13/GPU-Acceleration-Setup-Anaconda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

GPU-Acceleration-Setup-Anaconda

GPU Acceleration Setup for Anaconda (Tensorflow)

  • This assumes you have Anaconda already installed on your computer

Steps:

  1. Make sure your computer has a GPU
    • I. Open Task Manager
    • II. Click Performance
    • III. You will see GPU 1 where the GPU is: image
  2. Install CUDA onto your computer
    • I. To know which version of CUDA to install, open CMD (Win+R -> cmd), in CMD write nvidiam-smi. It will give you this: image
    • II. Where it says CUDA Version: 11.4, that is the newest version of CUDA your GPU use.
  3. Install cuDNN onto your computer
    • I. You can base which cuDNN version to download on which CUDA version you downloaded
  4. Check to make sure CUDA and cuDNN are installed
    • I. Open CMD, type nvcc --version image
  5. Install Visual Studio

  1. Create a new evironment in Anaconda
    • I. Open Anaconda and type: create --name tensorflow
    • This creates a new virutal environment called tensorflow
  2. Access environment
    • I. Type: conda activate tensorflow
  3. Install Python
    • I. type conda install python='version'
    • The pyton version you install on this environment depends on the tensorflow version you need

OR 6) Create a new environment with python altogether

  • Type: conda create --name tensorflow python=3.8
  • Then: conda activate tensorflow
  • Last: conda install -c conda-forge nb_conda (for Jupyter support)

  1. Install CUDA Toolkit and cuDNN
    • I. type: conda install -c anaconda cudatoolkit='version'
  2. Install tensorflow-gpu
    • I. type: conda install -c anaconda tensorflow-gpu
  3. Install Jupyter Notebook
    • I. type: conda install jupyter
  4. Register your environment
    • type: python -m ipykernel install --user --name tensorflow --display-name 'Tensorflow (Py3.8)'

Note: try to keep with only using conda install for everything. Tensorflow reccommends using pip to install Tensorflow, but conda also works and it is better to use the same install type. Mixing conda and pip can cause issues.

About

GPU Acceleration Setup for Anaconda

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published