1+ # Minimal installation
2+
13First, clone the nersc conda env
24
35```
@@ -16,32 +18,35 @@ Add additional packages that we need for ptypy with cupy
1618conda install -c conda-forge pyfftw cupy
1719```
1820
19- Add additional packages that we need for ptypy with pycuda
21+ Install Ptypy
2022```
21- conda install -c nvidia cuda-nvcc cuda-cudart-dev
22- conda install -c conda-forge reikna pycuda
23+ git clone https://github.com/ptycho/ptypy.git
24+ pip install .
25+
2326```
2427
25- Add additional packages for cufft
28+ Add kernel to user settings
2629```
27- conda install -c nvidia libcufft-dev libcufft-static
28- conda install -c conda-forge cmake>=3.8.0 pybind11
30+ python -m ipykernel install --user --name ptypy_env --display-name PtyPy
2931```
3032
31- Install Ptypy
32- ```
33- git clone https://github.com/ptycho/ptypy.git
34- pip install .
3533
34+ ## Optional installation adding pycuda and cufft
35+
36+ Add additional packages that we need for ptypy with pycuda (optional, needed only for one extra tutorial)
37+ ```
38+ conda install -c nvidia cuda-nvcc cuda-cudart-dev
39+ conda install -c conda-forge reikna pycuda
3640```
3741
38- Install cufft
42+ Add additional packages for cufft (optional)
3943```
40- cd cufft
41- pip install .
44+ conda install -c nvidia libcufft-dev libcufft-static
45+ conda install -c conda-forge cmake>=3.8.0 pybind11
4246```
4347
44- Add kernel to user settings
48+ Install cufft (optional)
4549```
46- python -m ipykernel install --user --name ptypy_env --display-name PtyPy
50+ cd cufft
51+ pip install .
4752```
0 commit comments