Skip to content

Commit c5af2be

Browse files
committed
hpc notes
1 parent 7c7ecf4 commit c5af2be

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

docs/notebooks/hpc/HPC.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@
4747
"here we use the provide `pyclmuapp_hpc` script to quickly run the `pyclmuapp` command on the HPC."
4848
]
4949
},
50+
{
51+
"cell_type": "markdown",
52+
"metadata": {},
53+
"source": [
54+
"**Note**: must download the image in current directory first before running the command."
55+
]
56+
},
5057
{
5158
"cell_type": "code",
5259
"execution_count": 2,

docs/notebooks/hpc/singularity.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ A quick look for python scripts of pyclmuapp ``singularity`` mode.
66

77
Note! We recommend to use the ``singularity`` mode on HPC, and install `pyclmuapp` from source code (There is some configuration changed, which is not upadted to Pypi).
88

9+
**Note**: must download the image in current directory first before running the command.
10+
11+
.. code-block:: bash
12+
13+
pyclmuapp --has_container False --container_type singularity --init True
14+
15+
916
.. code-block:: python
1017
1118
from pyclmuapp import usp_clmu
@@ -14,7 +21,8 @@ Note! We recommend to use the ``singularity`` mode on HPC, and install `pyclmuap
1421
o = usp_clmu(container_type='singularity') # important to define the container_type. The default is docker
1522
1623
# the clmu-app_1.0.sif image will be download from docker hub at the current work dir.
17-
o.docker(cmd="pull", cmdlogfile="None",) # This will pull the image from the docker hub
24+
# o.docker(cmd="pull", cmdlogfile="None",) # This will pull the image from the docker hub if you not have a local image
25+
1826
# other parameters are available, see the Python API documentation
1927
# no need to o.docker(cmd="run") for singularity
2028
# then same as usually

0 commit comments

Comments
 (0)