Skip to content

Commit ce13900

Browse files
authored
update From Source instructions
1 parent 4c77ad6 commit ce13900

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,34 @@ conda install pytorch torchvision -c soumith
135135

136136
### From source
137137

138-
Instructions for an Anaconda environment.
138+
If you are installing from source, we highly recommend installing an [Anaconda](https://www.continuum.io/downloads) environment.
139+
You will get a high-quality BLAS library (MKL) and you get a controlled compiler version regardless of your Linux distro.
140+
141+
Once you have [anaconda](https://www.continuum.io/downloads) installed, here are the instructions.
139142

140143
If you want to compile with CUDA support, install
141144
- [NVIDIA CUDA](https://developer.nvidia.com/cuda-downloads) 7.5 or above
142145
- [NVIDIA CuDNN](https://developer.nvidia.com/cudnn) v5.x
143146

144147
#### Install optional dependencies
145148

149+
On Linux
146150
```bash
147151
export CMAKE_PREFIX_PATH=[anaconda root directory]
148152

149153
# Install basic dependencies
150154
conda install numpy mkl setuptools cmake gcc cffi
151155

152-
# On Linux, add LAPACK support for the GPU
156+
# Add LAPACK support for the GPU
153157
conda install -c soumith magma-cuda75 # or magma-cuda80 if CUDA 8.0
154158
```
155159

160+
On OSX
161+
```bash
162+
export CMAKE_PREFIX_PATH=[anaconda root directory]
163+
conda install numpy setuptools cmake cffi
164+
```
165+
156166
#### Install PyTorch
157167
```bash
158168
export MACOSX_DEPLOYMENT_TARGET=10.9 # if OSX

0 commit comments

Comments
 (0)