Skip to content

Instantly share code, notes, and snippets.

@AymenFJA
Last active March 3, 2022 21:21
Show Gist options
  • Save AymenFJA/473c992bc7219cf44ab78980354296d3 to your computer and use it in GitHub Desktop.
Save AymenFJA/473c992bc7219cf44ab78980354296d3 to your computer and use it in GitHub Desktop.
Prepared for Logan Ward
import radical.pilot as rp
from parsl.app.app import python_app, bash_app
@bash_app
def mpi_simulate(x: float, ptype = rp.MPI,
nproc = 3, pre_exec = []):
return './simulate {0}'.format(x)
result = mpi_simulate(2, ptype = rp.MPI, nproc = 3, pre_exec = ['cd simulate_pre_exe'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment