Skip to content

Commit

Permalink
Adding a note/test to regression test for 'local' comms
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlarson1 committed Jan 16, 2020
1 parent 72bdd6a commit e996496
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
#
# Execute via one of the following commands (e.g. 3 workers):
# mpiexec -np 4 python3 test_6-hump_camel_persistent_uniform_sampling.py
# python3 test_6-hump_camel_persistent_uniform_sampling.py --nworkers 3 --comms local
# python3 test_6-hump_camel_persistent_uniform_sampling.py --nworkers 3 --comms tcp
#
# The number of concurrent evaluations of the objective function will be 4-1=3.
#
# This test uses an external local optimization method within a persistent
# APOSMM instance. Points are passed to/from the localopt method using files
# with run-specific hashes. These hashes are currently generated using uuid,
# which may not be thread safe on some systems (e.g., Travis-CI). This was
# resolved by not using 'local' communication; we therefore recommend using
# 'mpi' communication when using persistent_aposmm with an external localopt
# method.
# """

# Do not change these lines - they are parsed by run-tests.sh
Expand All @@ -30,6 +36,9 @@

nworkers, is_master, libE_specs, _ = parse_args()

if libE_specs['comms'] != 'mpi':
sys.exit("We recommend using 'mpi' communication when using persistent_aposmm with an external localopt.")

if is_master:
start_time = time()

Expand Down

0 comments on commit e996496

Please sign in to comment.