Skip to content

Commit

Permalink
Merge pull request #566 from ravescovi/cooley_config
Browse files Browse the repository at this point in the history
cooley_config
  • Loading branch information
ryanchard authored Aug 6, 2021
2 parents cd64cb6 + ebbf915 commit f8aac10
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docs/configs/cooley.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
from parsl.addresses import address_by_hostname
from parsl.launchers import MpiExecLauncher
from parsl.providers import CobaltProvider

from funcx_endpoint.endpoint.utils.config import Config
from funcx_endpoint.executors import HighThroughputExecutor

# fmt: off

# PLEASE UPDATE user_opts BEFORE USE
user_opts = {
'cooley': {
'worker_init': 'source ~/setup_funcx_test_env.sh',
'scheduler_options': '',
# Specify the account/allocation to which jobs should be charged
'account': '<YOUR_COOLEY_ALLOCATION>'
}
}

config = Config(
executors=[
HighThroughputExecutor(
max_workers_per_node=2,
address=address_by_hostname(),
provider=CobaltProvider(
queue='default',
account=user_opts['cooley']['account'],
launcher=MpiExecLauncher(),
# string to prepend to #COBALT blocks in the submit
# script to the scheduler eg: '#COBALT -t 50'
scheduler_options=user_opts['cooley']['scheduler_options'],

# Command to be run before starting a worker, such as:
# 'module load Anaconda; source activate funcx_env'.
worker_init=user_opts['cooley']['worker_init'],

walltime='00:30:00',
nodes_per_block=1,
init_blocks=0,
min_blocks=0,
max_blocks=4,
),
)
],
)

# fmt: onrom funcx_endpoint.endpoint.utils.config import Config
12 changes: 12 additions & 0 deletions docs/configuring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ The following configuration is an example to use singularity container on Theta.
.. literalinclude:: configs/theta_singularity.py


Cooley (ALCF)
^^^^^^^^^^^^

.. image:: images/31174D02-Cooley800.jpg

The following snippet shows an example configuration for executing on Argonne Leadership Computing Facility's
**Cooley** cluster. This example uses the `HighThroughputExecutor` and connects to Cooley's Cobalt scheduler
using the `CobaltProvider`. This configuration assumes that the script is being executed on the login nodes of Cooley.

.. literalinclude:: configs/cooley.py


Cori (NERSC)
^^^^^^^^^^^^

Expand Down
Binary file added docs/images/31174D02-Cooley800.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f8aac10

Please sign in to comment.