Skip to content

Commit 5793e78

Browse files
committed
Expand testing instructions
1 parent 6b5a477 commit 5793e78

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

tests/test_moldrug.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@
5252
shutil.copyfileobj(f_in, f_out)
5353

5454

55-
# Mode can be changed to "smaug" or "elwe" to calculate cost functions on Smaug or Elwe cluster.
56-
# It is used only internally by the author, simply because these clusters are not publicly available.
57-
# You can still look at the code and adapt it to your cluster.
55+
# Execution mode can be changed to "smaug" or "elwe" to calculate cost functions on Smaug or Elwe clusters.
56+
# Both configurations are used only internally by the author, because none of the two clusters is publicly available.
57+
# That being said, an example cluster configuration can be adopted to your needs.
58+
#
59+
# Note on Elwe: Worker nodes of Elwe are unable to reach the controller when MolDrug is running directly on the frontend.
60+
# One way to circumvent it is to run tests from an interactive node, eg. by calling `elwe slot`, `pytest tests -k test_multi_receptor`.
61+
# Sending the main job to the queue works as well
62+
# sbatch --partition uds-hub --nodes 1 --mem-per-cpu 1GB --time 00:15:00 --ntasks-per-node 10 --gres gpu:1 --constraint 'XEON_E5_2630v4' \
63+
# --wrap 'bash -c "source .venv/bin/activate ; pytest tests -k test_multi_receptor"'
5864
execution_mode = "multiprocessing"
5965

6066

@@ -203,7 +209,8 @@ def test_multi_receptor(maxiter=1, popsize=2, njobs=3, NumbCalls=1):
203209
processes=1,
204210
memory='8GB',
205211
walltime='00:15:00',
206-
job_extra_directives=['--gpus 1']
212+
job_extra_directives=['--gpus 1'],
213+
log_directory="."
207214
)
208215

209216
# Requesting njobs workers in total, each in a separate Slurm slot.

0 commit comments

Comments
 (0)