Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from Libensemble/develop
Develop
- Loading branch information
Showing
64 changed files
with
2,180 additions
and
1,920 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Balsam Job Controller | ||
===================== | ||
|
||
To create a Balsam job controller, the calling script should contain:: | ||
|
||
jobctr = BalsamJobController() | ||
|
||
The Balsam job controller inherits from the MPI job controller. See the | ||
:doc:`MPIJobController<mpi_controller>` for shared API. Any differences are | ||
shown below. | ||
|
||
.. automodule:: balsam_controller | ||
:no-undoc-members: | ||
|
||
.. autoclass:: BalsamJobController | ||
:show-inheritance: | ||
.. :inherited-members: | ||
.. :member-order: bysource | ||
.. :members: __init__, launch, poll, manager_poll, kill, set_kill_mode | ||
.. autoclass:: BalsamJob | ||
:show-inheritance: | ||
:member-order: bysource | ||
.. :members: workdir_exists, file_exists_in_workdir, read_file_in_workdir, stdout_exists, read_stdout | ||
.. :inherited-members: |
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,17 @@ | ||
MPI Job Controller | ||
================== | ||
|
||
To create an MPI job controller, the calling script should contain:: | ||
|
||
jobctl = MPIJobController() | ||
|
||
See the controller API below for optional arguments. | ||
|
||
.. automodule:: mpi_controller | ||
:no-undoc-members: | ||
|
||
.. autoclass:: MPIJobController | ||
:show-inheritance: | ||
:inherited-members: | ||
.. :member-order: bysource | ||
.. :members: __init__, register_calc, launch, manager_poll |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
../../libensemble/alloc_funcs/fast_alloc.py |
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 @@ | ||
../../libensemble/alloc_funcs/fast_alloc_to_aposmm.py |
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 @@ | ||
../../libensemble/tests/regression_tests/test_fast_alloc.py |
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
52 changes: 52 additions & 0 deletions
52
examples/job_submission_scripts/bebop_submit_slurm_centralmode.sh
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,52 @@ | ||
#!/bin/bash | ||
#SBATCH -J libE_test_central | ||
#SBATCH -N 5 | ||
#SBATCH -p knlall | ||
##SBATCH -A <my_project> | ||
#SBATCH -o tlib.%j.%N.out | ||
#SBATCH -e tlib.%j.%N.error | ||
#SBATCH -t 01:00:00 | ||
|
||
#Launch script for running in central mode. | ||
#LibEnsemble will run on a dedicated node (or nodes). | ||
#The remaining nodes in the allocation will be dedicated to the jobs launched by the workers. | ||
|
||
#Requirements for running: | ||
# Must use job_controller with auto-resources=True and central_mode=True. | ||
# Note: Requires a schedular having an environment variable giving a global nodelist in a supported format (eg. SLURM/COBALT) | ||
# Otherwise a worker_list file will be required. | ||
|
||
#Currently requires even distribution - either multiple workers per node or nodes per worker | ||
|
||
|
||
#User to edit these variables | ||
export EXE=libE_calling_script.py | ||
export NUM_WORKERS=4 | ||
|
||
export I_MPI_FABRICS=shm:tmi | ||
|
||
#If using in calling script (After N mins manager kills workers and timing.dat created.) | ||
export LIBE_WALLCLOCK=55 | ||
|
||
#--------------------------------------------------------------------------------------------- | ||
#Test | ||
echo -e "Slurm job ID: $SLURM_JOBID" | ||
|
||
#cd $PBS_O_WORKDIR | ||
cd $SLURM_SUBMIT_DIR | ||
|
||
# A little useful information for the log file... | ||
echo -e "Master process running on: $HOSTNAME" | ||
echo -e "Directory is: $PWD" | ||
|
||
#This will work for the number of contexts that will fit on one node (eg. 320 on Bebop) - increase libE nodes for more. | ||
cmd="srun --overcommit --ntasks=$(($NUM_WORKERS+1)) --nodes=1 python $EXE $LIBE_WALLCLOCK" | ||
|
||
echo The command is: $cmd | ||
echo End PBS script information. | ||
echo All further output is from the process being run and not the pbs script.\n\n $cmd # Print the date again -- when finished | ||
|
||
$cmd | ||
|
||
# Print the date again -- when finished | ||
echo Finished at: `date` |
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.