# Newbie question: What are the prerequisites for running PyTorch with GPU?

**URL:** <https://discuss.pytorch.org/t/newbie-question-what-are-the-prerequisites-for-running-pytorch-with-gpu/698>\
**Category:** Uncategorized\
**Created:** [February 24, 2017, 12:55am UTC](https://discuss.pytorch.org/t/newbie-question-what-are-the-prerequisites-for-running-pytorch-with-gpu/698 "2017-02-24T00:55:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [February 24, 2017, 3:55pm UTC](https://discuss.pytorch.org/t/newbie-question-what-are-the-prerequisites-for-running-pytorch-with-gpu/698/3 "2017-02-24T15:55:56Z")

</div>

if you want to use pytorch with an NVIDIA GPU, all you need to do is install pytorch binaries and start using it. We ship with everything in-built (pytorch binaries include CUDA, CuDNN, NCCL, MKL, etc.).

So it’s a one-touch install:

- Install pytorch from binaries ( [http://pytorch.org](http://pytorch.org) has instructions)
- Try a simple program with CUDA:

```auto
import torch
a = torch.randn(10).cuda()
print(a)
print(a + 2)

```

---

_[View the full topic](https://discuss.pytorch.org/t/newbie-question-what-are-the-prerequisites-for-running-pytorch-with-gpu/698)._
