Skip to content

Commit

Permalink
Update 3-hpc-allocation.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Nov 12, 2024
1 parent 8cb4dd7 commit b2088a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/3-hpc-allocation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
],
"source": [
"%%time\n",
"with Executor(backend=\"flux\") as exe:\n",
"with Executor(backend=\"flux\", flux_executor_pmi_mode=\"pmix\") as exe:\n",
" future_lst = [exe.submit(sum, [i, i]) for i in range(2, 5)]\n",
" print([f.result() for f in future_lst])"
]
Expand Down Expand Up @@ -83,7 +83,7 @@
}
],
"source": [
"with Executor(backend=\"flux\") as exe:\n",
"with Executor(backend=\"flux\", flux_executor_pmi_mode=\"pmix\") as exe:\n",
" future = None\n",
" for i in range(1, 4):\n",
" if future is None:\n",
Expand Down Expand Up @@ -123,7 +123,7 @@
}
],
"source": [
"with Executor(backend=\"flux\") as exe:\n",
"with Executor(backend=\"flux\", flux_executor_pmi_mode=\"pmix\") as exe:\n",
" fs = exe.submit(calc, 3, resource_dict={\"cores\": 2})\n",
" print(fs.result())"
]
Expand Down

0 comments on commit b2088a0

Please sign in to comment.