Permalink
Please sign in to comment.
Showing
with
6,391 additions
and 50 deletions.
- +1 −1 .flake8
- +106 −3 .gitignore
- +2 −24 README.rst
- +0 −1 docs/Makefile
- +1 −3 docs/conf.py
- +96 −0 docs/devguide/#dev_docs.rst#
- +1 −0 docs/devguide/.#dev_docs.rst
- +43 −0 docs/devguide/changelog.rst
- +6 −1 docs/devguide/design.rst
- +76 −10 docs/devguide/dev_docs.rst
- +24 −0 docs/index.rst
- +3 −0 docs/libsubmit_art/README.txt
- BIN docs/libsubmit_art/multi_node.png
- +4 −0 docs/libsubmit_art/multi_node.svg
- BIN docs/libsubmit_art/multi_worker.png
- +4 −0 docs/libsubmit_art/multi_worker.svg
- BIN docs/libsubmit_art/single_worker.png
- +4 −0 docs/libsubmit_art/single_worker.svg
- +77 −0 docs/quick/quickstart.rst
- +14 −0 docs/reference.rst
- +48 −0 docs/stubs/libsubmit.providers.aws.aws.EC2Provider.rst
- +33 −0 docs/stubs/libsubmit.providers.cobalt.cobalt.Cobalt.rst
- +33 −0 docs/stubs/libsubmit.providers.condor.condor.Condor.rst
- +37 −0 docs/stubs/libsubmit.providers.googlecloud.googlecloud.GoogleCloud.rst
- +35 −0 docs/stubs/libsubmit.providers.gridEngine.gridEngine.GridEngine.rst
- +24 −0 docs/stubs/libsubmit.providers.jetstream.jetstream.Jetstream.rst
- +33 −0 docs/stubs/libsubmit.providers.local.local.Local.rst
- +31 −0 docs/stubs/libsubmit.providers.provider_base.ExecutionProvider.rst
- +35 −0 docs/stubs/libsubmit.providers.slurm.slurm.Slurm.rst
- +33 −0 docs/stubs/libsubmit.providers.torque.torque.Torque.rst
- +119 −0 libsubmit/__init__.py
- +5 −0 libsubmit/channels/__init__.py
- +98 −0 libsubmit/channels/channel_base.py
- +128 −0 libsubmit/channels/errors.py
- 0 libsubmit/channels/local/__init__.py
- +167 −0 libsubmit/channels/local/local.py
- 0 libsubmit/channels/ssh/__init__.py
- +229 −0 libsubmit/channels/ssh/ssh.py
- 0 libsubmit/channels/ssh_il/__init__.py
- +78 −0 libsubmit/channels/ssh_il/ssh_il.py
- +89 −0 libsubmit/error.py
- +12 −0 libsubmit/launchers/__init__.py
- +314 −0 libsubmit/launchers/launchers.py
- +31 −0 libsubmit/providers/__init__.py
- 0 libsubmit/providers/aws/__init__.py
- +705 −0 libsubmit/providers/aws/aws.py
- +17 −0 libsubmit/providers/aws/template.py
- 0 libsubmit/providers/azure/__init__.py
- +200 −0 libsubmit/providers/azure/azure.py
- +15 −0 libsubmit/providers/azure/azureconf.json
- +100 −0 libsubmit/providers/azure/deployer.py
- +209 −0 libsubmit/providers/cluster_provider.py
- 0 libsubmit/providers/cobalt/__init__.py
- +238 −0 libsubmit/providers/cobalt/cobalt.py
- +15 −0 libsubmit/providers/cobalt/template.py
- 0 libsubmit/providers/condor/__init__.py
- +297 −0 libsubmit/providers/condor/condor.py
- +28 −0 libsubmit/providers/condor/template.py
- 0 libsubmit/providers/googlecloud/__init__.py
- +265 −0 libsubmit/providers/googlecloud/googlecloud.py
- 0 libsubmit/providers/grid_engine/__init__.py
- +230 −0 libsubmit/providers/grid_engine/grid_engine.py
- +12 −0 libsubmit/providers/grid_engine/template.py
- 0 libsubmit/providers/jetstream/__init__.py
- +144 −0 libsubmit/providers/jetstream/jetstream.py
- +43 −0 libsubmit/providers/jetstream/setup_first_time.sh
- 0 libsubmit/providers/kubernetes/__init__.py
- +265 −0 libsubmit/providers/kubernetes/kube.py
- +4 −0 libsubmit/providers/kubernetes/template.py
- 0 libsubmit/providers/local/__init__.py
- +206 −0 libsubmit/providers/local/local.py
- +91 −0 libsubmit/providers/provider_base.py
- 0 libsubmit/providers/slurm/__init__.py
- +224 −0 libsubmit/providers/slurm/slurm.py
- +16 −0 libsubmit/providers/slurm/template.py
- 0 libsubmit/providers/torque/__init__.py
- +18 −0 libsubmit/providers/torque/template.py
- +253 −0 libsubmit/providers/torque/torque.py
- +2 −0 libsubmit/tests/setup_path.sh
- +5 −0 libsubmit/tests/test_channels/remote_run.sh
- +17 −0 libsubmit/tests/test_channels/test_channels.py
- +42 −0 libsubmit/tests/test_channels/test_local_channel.py
- +49 −0 libsubmit/tests/test_channels/test_scp_1.py
- +49 −0 libsubmit/tests/test_channels/test_ssh_1.py
- +57 −0 libsubmit/tests/test_channels/test_ssh_errors.py
- +41 −0 libsubmit/tests/test_channels/test_ssh_file_transport.py
- +24 −0 libsubmit/tests/test_channels/test_ssh_interactive.py
- +58 −0 libsubmit/tests/test_integration/test_ssh/test_ssh_beagle.py
- +61 −0 libsubmit/tests/test_integration/test_ssh/test_ssh_condor_earth.py
- +55 −0 libsubmit/tests/test_integration/test_ssh/test_ssh_cori.py
- +55 −0 libsubmit/tests/test_integration/test_ssh/test_ssh_swan.py
- +105 −0 libsubmit/tests/test_providers/ec2/test_ec2.py
- +83 −0 libsubmit/utils.py
- +4 −0 libsubmit/version.py
- +8 −1 requirements.txt
- +5 −4 setup.py
- +2 −2 test-requirements.txt
@@ -1,10 +1,113 @@ | ||
*~ | ||
*.pyc | ||
build/* | ||
dist/* | ||
parsl.egg-info/* | ||
.scripts | ||
.*out | ||
.*err | ||
*log | ||
.ipynb_checkpoints | ||
.ipynb_checkpoints | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
# C extensions | ||
*.so | ||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
# Translations | ||
*.mo | ||
*.pot | ||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
# Scrapy stuff: | ||
.scrapy | ||
# Sphinx documentation | ||
docs/_build/ | ||
# PyBuilder | ||
target/ | ||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
# pyenv | ||
.python-version | ||
# celery beat schedule file | ||
celerybeat-schedule | ||
# SageMath parsed files | ||
*.sage.py | ||
# dotenv | ||
.env | ||
# virtualenv | ||
.venv | ||
venv/ | ||
ENV/ | ||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
# Rope project settings | ||
.ropeproject | ||
# mkdocs documentation | ||
/site | ||
# mypy | ||
.mypy_cache/ | ||
# emacs buffers | ||
\#* |
@@ -0,0 +1,96 @@ | ||
Developer Documentation | ||
*********************** | ||
.. automodule:: libsubmit | ||
:no-undoc-members: | ||
.. autofunction:: set_stream_logger | ||
.. autofunction:: set_file_logger | ||
ExecutionProviders | ||
------------------ | ||
An execution provider is basically an adapter to various types of execution resources. The providers abstract | ||
away the interfaces provided by various systems to request, monitor, and cancel computate resources. | ||
.. autoclass:: libsubmit.execution_provider_base.ExecutionProvider | ||
:members: __init__, submit, status, cancel, scaling_enabled, channels_required | ||
Slurm | ||
^^^^^ | ||
.. autoclass:: libsubmit.providers.slurm.slurm.Slurm | ||
:members: __init__, submit, status, cancel, _status, scaling_enabled, _write_submit_script, current_capacity, channels_required | ||
Cobalt | ||
^^^^^^ | ||
.. autoclass:: libsubmit.providers.cobalt.cobalt.Cobalt | ||
:members: __init__, submit, status, cancel, _status, scaling_enabled, _write_submit_script, current_capacity, channels_required | ||
Condor | ||
^^^^^^ | ||
.. autoclass:: libsubmit.providers.condor.condor.Condor | ||
:members: __init__, submit, status, cancel, _status, scaling_enabled, _write_submit_script, current_capacity, channels_required | ||
Torque | ||
^^^^^^ | ||
.. autoclass:: libsubmit.providers.torque.torque.Torque | ||
:members: __init__, submit, status, cancel, _status, scaling_enabled, _write_submit_script, current_capacity, channels_required | ||
Local | ||
^^^^^ | ||
.. autoclass:: libsubmit.providers.local.local.Local | ||
:members: __init__, submit, status, cancel, scaling_enabled, current_capacity, channels_required | ||
AWS | ||
^^^ | ||
.. autoclass:: libsubmit.providers.aws.aws.EC2Provider | ||
:members: __init__, submit, status, cancel, scaling_enabled, current_capacity, channels_required, create_vpc, read_state_file, write_state_file, create_session, security_group | ||
Channels | ||
-------- | ||
For certain resources such as campus clusters or supercomputers at research laboratories, resource requirements | ||
may require authentication. For instance some resources may allow access to their job schedulers from only | ||
their login-nodes which require you to authenticate on through SSH, GSI-SSH and sometimes even require | ||
two factor authentication. Channels are simple abstractions that enable the ExecutionProvider component to talk | ||
to the resource managers of compute facilities. The simplest Channel, *LocalChannel* simply executes commands | ||
locally on a shell, while the *SshChannel* authenticates you to remote systems. | ||
.. autoclass:: libsubmit.channels.channel_base.Channel | ||
:members: execute_wait, script_dir, execute_no_wait, push_file, close | ||
LocalChannel | ||
^^^^^^^^^^^^ | ||
.. autoclass:: libsubmit.channels.local.local.LocalChannel | ||
:members: __init__, execute_wait, execute_no_wait, push_file, script_dir, close | ||
SshChannel | ||
^^^^^^^^^^^^ | ||
.. autoclass:: libsubmit.channels.ssh.ssh.SshChannel | ||
:members: __init__, execute_wait, execute_no_wait, push_file, pull_file, script_dir, close | ||
SshILChannel | ||
^^^^^^^^^^^^ | ||
.. autoclass:: libsubmit.channels.ssh_il.ssh_il.SshILChannel | ||
:members: __init__, execute_wait, execute_no_wait, push_file, pull_file, script_dir, close | ||
Launchers | ||
--------- | ||
Launchers are basically wrappers for user submitted scripts as they are submitted to | ||
a specific execution resource. | ||
.. autofunction:: libsubmit.launchers.singleNodeLauncher | ||
@@ -0,0 +1 @@ | ||
ben@benbox.7349 |
Oops, something went wrong.
0 comments on commit
e54c01c