Skip to content

Instantly share code, notes, and snippets.

@benhg
Created June 12, 2019 00:37
Show Gist options
  • Save benhg/445f5b947f31ce9fea4a60efd120a8ae to your computer and use it in GitHub Desktop.
Save benhg/445f5b947f31ce9fea4a60efd120a8ae to your computer and use it in GitHub Desktop.
all of the base stuff to do a Parsl dataflow on blt
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