Created
June 12, 2019 00:37
-
-
Save benhg/445f5b947f31ce9fea4a60efd120a8ae to your computer and use it in GitHub Desktop.
all of the base stuff to do a Parsl dataflow on blt
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
import parsl | |
from parsl.app.app import python_app, bash_app | |
from parsl.config import Config | |
from parsl.executors import IPyParallelExecutor | |
from parsl.providers import GridEngineProvider | |
from parsl.executors import HighThroughputExecutor | |
config = Config( | |
executors=[HighThroughputExecutor(provider=GridEngineProvider(), label="Grid Engine Provider")], | |
) | |
parsl.load(config) | |
@bash_app | |
def echo_hello(stdout='echo-hello.stdout', stderr='echo-hello.stderr'): | |
return 'echo "Hello World!"' | |
echo_hello().result() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment