-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALLATION.txt
More file actions
66 lines (47 loc) · 2 KB
/
Copy pathINSTALLATION.txt
File metadata and controls
66 lines (47 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Install pPython at the user space:
= = =
$ cd ~/devtools/git/pPython/dist
$ module load anaconda/Python-ML-2024b (LLSC system)
$ pip install --user --force-reinstall pPython-0.9.11-py3-none-any.whl
Installed locations:
$HOME/.local/lib/python3.10/site-packages/pPython [LLSC system]
Setup pPython configuration:
= = =
• Create ~/ppython_conf directory
mkdir ~/ppython_conf
• Copy the following local configuration files to ~/ppython_conf
PPYTHON_HOME=$HOME/.local/lib/python3.10/site-packages/pPython
cp $PPYTHON_HOME/ppython_conf/grid_config_local.py ~/ppython_conf
cp $PPYTHON_HOME/PythonMPI/local/pyMPI_Comm_settings_local.py ~/ppython_conf
• Edit the local configuration files for your LLGrid account.
grid_config_local.py
pyMPI_Comm_settings_local.py
Packaging pPython Project
= = =
• Update pPython version in the source code
Edit the following files:
cd ~/devtools/git/pPython
vi setup.py
version = 0.9.11. (Line #30)
vi src/pPython/src/pPython_ver.py
version = '0.9.11’ (Line $16)
• Update pPython source and build from the build machine
% cd ~/devtools/git/pPython
% git pull
% python -m build |& tee ppython-build.log-v0.9.11
Installation (to run on the source distribution)
------------
1. Unpack the pPython tarball source at your desired location on your LLGrid account
and set PPYTHON_HOME.
tar xf pPython-$VERSION.tar.bz2 -C /path/to/your/desired/location
export PPYTHON_HOME=/path/to/your/desired/location/pPython-$VERSION/src/pPython
($VERSION is the additional string for the unpacked directory name.)
2. Create ~/ppython_conf directory
mkdir ~/ppython_conf
3. Copy the following local configuratiton files to ~/ppython_conf
cp $PPYTHON_HOME/ppython_conf/grid_config_local.py ~/ppython_conf
cp $PPYTHON_HOME/ppython_conf/pyMPI_Comm_settings_local.py ~/ppython_conf
4. Edit the local configuration files for your LLGrid account.
grid_config_local.py
pyMPI_Comm_settings_local.py
5. Use the RUN_on_src.py script to launch/execute pPython script on LLSC system or locally