Skip to content

Commit

Permalink
sd
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMakus committed Jan 15, 2024
1 parent 7b7cb55 commit a452fb6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@
"## 2.2 Start correlation\n",
"To start the correlation, we will use the `mpirun` command in bash:\n",
"\n",
"Jupyter notebook limits the output, so if you wish to see the complete output, you might prefer actually executing these commands in a terminal."
"Jupyter notebook limits the output, so if you wish to see the complete output, you might prefer actually executing these commands in a terminal. Sometimes this might even be required - depending on your system."
]
},
{
Expand Down Expand Up @@ -530,6 +530,9 @@
"import os\n",
"# This gives number of threads, usually twice as many as physical cores\n",
"ncpus = os.cpu_count()//2\n",
"\n",
"# note that mpi commands might have to be launched from the command line\n",
"# (depeding on your system)\n",
"!mpirun -n $ncpus python correlate.py"
]
},
Expand Down Expand Up @@ -943,6 +946,9 @@
"# because the jobs are split into N jobs, where N is the number of\n",
"# component combinations (in our case N==1)\n",
"ncpus = os.cpu_count()//2\n",
"\n",
"# note that mpi commands might have to be launched from the command line\n",
"# (depeding on your system)\n",
"!mpirun -n $ncpus python ./monitor.py"
]
},
Expand Down

0 comments on commit a452fb6

Please sign in to comment.