Skip to content

conda environment to interact with GPU in pytorch

Notifications You must be signed in to change notification settings

ACSoupir/cuda_conda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

cuda_conda

conda environment to interact with GPU in pytorch

Code to install everyone on your own

conda create --name cuda_test python=3.8
conda activate cuda_test
conda install -c anaconda cudatoolkit -y
conda install pytorch-cuda=12.1 -c pytorch -c nvidia -y
conda install pytorch torchvision torchaudio -c pytorch -c nvidia -y

install environment.yml

conda env create -f environment.yml

To see if pytorch can access cuda

import torch

torch.cuda.is_available()
#returns `True` if cuda is present and `False` if only CPU

About

conda environment to interact with GPU in pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published