The pipeline pz-compute
is set up to work at LIneA's HPC environment. For those with appropriate permission, the access is done via Open OnDemand platform or from a Terminal on LIneA JupyterHub, via SSH:
ssh loginapl01
-
Copy the file
cp <path-to-y=pz-compute>/pz-compute/scheduler_examples/slurm/setup/prod-config ~/.prod-config"
-
Add the following block to your
~/.bashrc
file:alias pz-prod=". ~/.prod-config"
-
Logout and login again to loginapl01.
-
Type pz-prod, this is going to send you to your t0 scratch area. Once you are here, everytime you login, just need to run this command.
pz-prod
-
Add test setup where you are going to run pz-compute:
ln -s ~app.photoz/pz-compute/scheduler_examples_slurm/pz_run_setup.py
-
Execute
python pz_run_setup.py -a=algorithm -c="comments" -p=dir-process
-
Run the pipeline inside the created dir
Default configuration:
pz-compute
For custom configuration, make a copy/edit of the template yaml configuration file to the process directory and update the default values of the configuration parameters.
-
Copy the file
cp <path-to-y=pz-compute>/pz-compute/scheduler_examples/slurm/setup/dev-config ~/.dev-config
-
Add the following block to your
~/.bashrc
file:alias pz-dev=". ~/.dev-config"
-
Logout and login again to loginapl01.
-
Type pz-dev, first time that you run it, it will create a pz-compute-dev env, do the installing and setup for pz-compute, then send you to your t0 scratch area. Ps: make sure that your bashrc is configured to use the miniconda path intalled inside the lustre env. Once you are here, everytime you login, just need to run this command.
pz-dev
-
Inside the bin dir, there is a alias to pz_run_setup.py. To create a run dir execute:
python pz_run_setup.py -a=algorithm -c="comments" -p=dir-process
-
Remember to add a estimate.pkl file for the algorithm that you are going to run, or train the algorithm.
-
Run the pipeline
Default configuration:
pz-compute-dev
For custom configuration, make a copy/edit of the template yaml configuration file to the process directory and update the default values of the configuration parameters.