|
| 1 | +# Installing on Traverse |
| 2 | +* Last updated 2022-04-18 * |
| 3 | + |
| 4 | + |
| 5 | +## Building the package |
| 6 | +### Login |
| 7 | + |
| 8 | +First, login to the traverse cluster headnode via ssh: |
| 9 | +``` |
| 10 | +ssh -XC <yourusername>@traverse.princeton.edu |
| 11 | +``` |
| 12 | + |
| 13 | +The instructions below work with these modules (as of April 2022) |
| 14 | +``` |
| 15 | +(frnn) [rkube@traverse site-packages]$ module list |
| 16 | +Currently Loaded Modulefiles: |
| 17 | + 1) anaconda3/2021.11 2) openmpi/cuda-11.0/gcc/4.0.4/64 3) cudatoolkit/11.0 4) cudnn/cuda-11.x/8.2.0 |
| 18 | +``` |
| 19 | + |
| 20 | +Next, check out the source code from github and enter the directory of the local copy: |
| 21 | +``` |
| 22 | +git clone git://github.com/PPPLDeepLearning/plasma-python |
| 23 | +cd plasma-python |
| 24 | +``` |
| 25 | + |
| 26 | + |
| 27 | +After that, create a new conda environment and install the relevant packages, starting with pytorch. |
| 28 | +``` |
| 29 | +conda create --name conda create --name frnn --channel https://opence.mit.edu/#/ pytorch |
| 30 | +``` |
| 31 | + |
| 32 | +Next, activate the envrionment can add other required packages |
| 33 | +``` |
| 34 | +conda activate frnn |
| 35 | +conda install pandas scipy flake8 h5py pyparsing pyyaml cython matplotlib scikit-learn joblib xgboost |
| 36 | +``` |
| 37 | + |
| 38 | +Now we can install `plasma-python`: |
| 39 | +``` |
| 40 | +python setup.py install |
| 41 | +``` |
| 42 | + |
| 43 | +Once this command is done, the module is availabe in python from within the environment |
| 44 | +``` |
| 45 | +(frnn) [rkube@traverse ~]$ ipython |
| 46 | +importPython 3.8.13 (default, Mar 28 2022, 11:00:56) |
| 47 | +Type 'copyright', 'credits' or 'license' for more information |
| 48 | +IPython 8.2.0 -- An enhanced Interactive Python. Type '?' for help. |
| 49 | +
|
| 50 | +In [1]: import plasma |
| 51 | +
|
| 52 | +In [2]: print(plasma.__file__) |
| 53 | +/home/user/.conda/envs/frnn/lib/python3.8/site-packages/plasma-1.0.0-py3.8.egg/plasma/__init__.py |
| 54 | +``` |
| 55 | + |
| 56 | + |
0 commit comments