forked from LLNL/merlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add flux native worker launch. * Add flux native to changlog. * Run black. * Run black. * Run fix-style * Add try except for check_for_flux function when flux is not present. * Add function doc. * Add flux native run-workers test. * Added PBS flux launch support Added check_for_flux, check_for_slurm, check_for_lsf, and check_for_pbs utility functions * Return None from get_batch_type instead of slurm, now there are check functions, there should be an error condition returned. * Fix block comment * Fix comment. * Fix isort in Makefile. Run fix-style Add - to pbs for reading from stdin. * Fix SYS_TYPE check * fix-style * Re fix-style with new isort. * New qsub version uses -- for stdin. * Chnage celery_regex ito celery_slurm_regex Remove extra nodes variable in flux_par_native_test.yaml * Change celery_regex ito celery_slurm_regex Remove extra nodes variable in flux_par_native_test.yaml
- Loading branch information
Showing
14 changed files
with
295 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
description: | ||
description: A simple ensemble of parallel MPI jobs run by flux. | ||
name: flux_par | ||
|
||
batch: | ||
type: flux | ||
flux_exec: flux exec -r "0-1" | ||
flux_start_opts: -o,-S,log-filename=flux_par.out | ||
nodes: 1 | ||
|
||
env: | ||
variables: | ||
OUTPUT_PATH: ./studies | ||
N_SAMPLES: 10 | ||
|
||
study: | ||
- description: Build the code | ||
name: build | ||
run: | ||
cmd: mpicc -o mpi_hello $(SPECROOT)/scripts/hello.c >& build.out | ||
task_queue: flux_par | ||
- description: Echo the params | ||
name: runs | ||
run: | ||
cmd: | | ||
if [ ! -z ${FLUX_PMI_LIBRARY_PATH+x} ]; then | ||
FPMI2LIB=`dirname ${FLUX_PMI_LIBRARY_PATH}`/libpmi2.so | ||
if [ -e ${FPMI2LIB} ]; then | ||
if [ ! -z ${LD_PRELOAD+x} ]; then | ||
export LD_PRELOAD=${LD_PRELOAD}:${FPMI2LIB} | ||
else | ||
export LD_PRELOAD=${FPMI2LIB} | ||
fi | ||
fi | ||
fi | ||
$(LAUNCHER) $(build.workspace)/mpi_hello $(V1) $(V2) > flux_run.out | ||
depends: [build] | ||
task_queue: flux_par | ||
nodes: 1 | ||
procs: 4 | ||
cores per task: 1 | ||
|
||
- description: Dump flux info | ||
name: data | ||
run: | ||
cmd: | | ||
$(SPECROOT)/scripts/flux_info.py > flux_timings.out | ||
depends: [runs_*] | ||
task_queue: flux_par | ||
|
||
- description: Stop workers | ||
name: stop_workers | ||
run: | ||
cmd: | | ||
exit $(MERLIN_STOP_WORKERS) | ||
depends: [data] | ||
task_queue: flux_par | ||
|
||
global.parameters: | ||
STUDY: | ||
label: STUDY.%% | ||
values: | ||
- FLUXTEST | ||
|
||
merlin: | ||
resources: | ||
task_server: celery | ||
workers: | ||
simworkers: | ||
args: -l INFO --concurrency 1 --prefetch-multiplier 1 -Ofair | ||
steps: [runs, data] | ||
samples: | ||
column_labels: [V1, V2] | ||
file: $(MERLIN_INFO)/samples.npy | ||
generate: | ||
cmd: python3 $(SPECROOT)/scripts/make_samples.py -dims 2 -n $(N_SAMPLES) -outfile=$(MERLIN_INFO)/samples.npy |
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,2 @@ | ||
#!/usr/bin/env python3 | ||
print("Nodes") |
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,2 @@ | ||
#!/bin/sh | ||
echo "pbs_version = 19.0.0" |
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
Oops, something went wrong.