-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cylon-RP] Cylon scaling test with radical-pilot (#661)
* [Cylon-RP] Cylon scaling test with radical-pilot Signed-off-by: Arup Sarker <[email protected]> * [Cylon-RP] Cylon scaling test with radical-pilot Signed-off-by: Arup Sarker <[email protected]> * [Cylon] Fix panda build error Signed-off-by: Arup Sarker <[email protected]> * [Cylon] Update numpy and panda version Signed-off-by: Arup Sarker <[email protected]> * [Cylon] Update panda version Signed-off-by: Arup Sarker <[email protected]> * [Cylon-radical pilot] Fix updated radical pilot script for scaling test Signed-off-by: Arup Sarker <[email protected]> * [Cylon] Fix Cylon CI system and add slice operation on scaling test Signed-off-by: Arup Sarker <[email protected]> * [Cylon] Fix cython version for CI build Signed-off-by: Arup Sarker <[email protected]> * [Cylon] Update new version Signed-off-by: Arup Sarker <[email protected]> * fix native build * [Cylon] Fix numpy and pyarrow dependencies Signed-off-by: Arup Sarker <[email protected]> * [Pyarrow] Update workspace file for CI build Signed-off-by: Arup Sarker <[email protected]> * update native script Signed-off-by: Arup Sarker <[email protected]> * Update build.sh Co-authored-by: niranda perera <[email protected]> * Update c-cpp.yml --------- Signed-off-by: Arup Sarker <[email protected]> Co-authored-by: niranda perera <[email protected]>
- Loading branch information
1 parent
4dcee8d
commit a82e62b
Showing
20 changed files
with
1,103 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,43 +4,57 @@ Arup Sarker ([email protected], [email protected]) | |
|
||
|
||
|
||
## Intsall instructions | ||
## Install instructions | ||
|
||
Rivanna is an HPC system offerbed by University of Virginia. | ||
There are two ways you can build cylon on Rivanna. | ||
This will use custom dependencies of the system gcc, openmpi version. | ||
|
||
```shell | ||
|
||
### 1. Custom gcc conda install | ||
git clone https://github.com/cylondata/cylon.git | ||
cd cylon | ||
|
||
This will use custom dependencies of the system gcc, openmpi version and run slurm script. | ||
module load gcc/9.2.0 openmpi/3.1.6 python/3.7.7 cmake/3.23.3 | ||
|
||
python -m venv $PWD/cy-rp-env | ||
|
||
```shell | ||
git clone https://github.com/cylondata/cylon.git | ||
cd cylon | ||
conda env create -f conda/environments/cylon_rivanna_1.yml | ||
sbatch rivanna/job_cylon_rivanna_1.slurm | ||
``` | ||
source $PWD/cy-rp-env/bin/activate | ||
|
||
For more details of the dependent libraries and Slurm scripts, Please checkout the following links: | ||
|
||
* <https://github.com/cylondata/cylon/tree/main/conda/environments/cylon_rivanna_1.yml> | ||
* <https://github.com/cylondata/cylon/tree/main/rivanna/job_cylon_rivanna_1.slurm> | ||
pip install pip -U | ||
pip install pytest | ||
|
||
### 2. Module based conda install. | ||
export CC=`which gcc` | ||
export CXX=`which g++` | ||
CC=gcc MPICC=mpicc pip install --no-binary mpi4py install mpi4py | ||
pip install -U pytest-mpi | ||
pip install numpy | ||
pip install pyarrow==9.0.0 | ||
|
||
This will build Cylon by using the loaded module of openmpi and gcc. | ||
|
||
Create virtual environment | ||
rm -rf build | ||
BUILD_PATH=$PWD/build | ||
export LD_LIBRARY_PATH=$BUILD_PATH/arrow/install/lib64:$BUILD_PATH/glog/install/lib64:$BUILD_PATH/lib64:$BUILD_PATH/lib:$LD_LIBRARY_PATH | ||
|
||
./build.sh -pyenv $PWD/cy-rp-env -bpath $(pwd)/build --cpp --python_with_pyarrow --cython --test --cmake-flags "-DMPI_C_COMPILER=$(which mpicc) -DMPI_CXX_COMPILER=$(which mpicxx)" | ||
|
||
``` | ||
It will take some time to build. So, grab a coffee!!! | ||
|
||
Let's perform a scaling operation with join. Before that, we have to install the dependencies as follow. | ||
|
||
```shell | ||
git clone https://github.com/cylondata/cylon.git | ||
cd cylon | ||
conda env create -f conda/environments/cylon_rivanna_2.yml | ||
sbatch rivanna/job_cylon_rivanna_2.slurm | ||
pip install cloudmesh-common | ||
pip install openssl-python | ||
python3 -m pip install urllib3==1.26.6 | ||
``` | ||
|
||
For more details of the dependent libraries and Slurm scripts, Please checkout below links: | ||
We will slum script to run the scaling operation. | ||
|
||
```shell | ||
sbatch rivanna/scripts/scaling_job.slurm | ||
``` | ||
|
||
For more details of the dependent libraries and Slurm scripts, Please checkout the following links: | ||
|
||
<https://github.com/cylondata/cylon/tree/main/conda/environments/cylon_rivanna_2.yml> | ||
<https://github.com/cylondata/cylon/tree/main/rivanna/job_cylon_rivanna_2.slurm> | ||
* <https://github.com/cylondata/cylon/tree/main/rivanna/scripts/scaling_job.slurm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Running Cylon on Rivanna | ||
|
||
Arup Sarker ([email protected], [email protected]) | ||
|
||
|
||
|
||
## Install instructions for Radical Pilot | ||
|
||
Rivanna is an HPC system offerbed by University of Virginia. | ||
This will use custom dependencies of the system gcc, openmpi version. | ||
Use the same python environment "cylon_rct" for radical-pilot | ||
|
||
```shell | ||
module load gcc/9.2.0 openmpi/3.1.6 python/3.7.7 cmake/3.23.3 | ||
source $HOME/cylon_rct/bin/activate | ||
pip install radical.pilot | ||
``` | ||
For checking all dependent library version: | ||
|
||
```shell | ||
radical-stack | ||
``` | ||
You need to export mongo-db url: | ||
|
||
```shell | ||
export RADICAL_PILOT_DBURL="mongodb:ADD_YOUR_URL" | ||
``` | ||
Setup is done. Now let's execute scaling with cylon. | ||
|
||
```shell | ||
cd /some_path_to/cylon/rivanna/rp-scripts | ||
python rp_scaling.py | ||
``` | ||
|
||
If you want to make any change in the uva resource file(/some_path_to/radical.pilot/src/radical/pilot/configs) or any other places in the radical pilot source, | ||
|
||
```shell | ||
git clone https://github.com/radical-cybertools/radical.pilot.git | ||
cd radical.pilot | ||
``` | ||
For reflecting those change, you need to upgrade radical-pilot by, | ||
|
||
```shell | ||
pip install . --upgrade | ||
``` | ||
|
||
To uninstall radical pilot, execute | ||
|
||
```shell | ||
pip uninstall radical.pilot | ||
``` |
Oops, something went wrong.