-
Notifications
You must be signed in to change notification settings - Fork 47
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 #566 from ravescovi/cooley_config
cooley_config
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 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
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 |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.