Skip to content
Snippets Groups Projects
Commit 0d1afce6 authored by Carrie A Brown's avatar Carrie A Brown
Browse files

Merge branch 'cb-edits' into 'master'

Change #!/bin/sh to #!/bin/bash - Merge of all PRs

See merge request !211
parents d6f5c378 5be8af13
No related branches found
No related tags found
10 merge requests!211Change #!/bin/sh to #!/bin/bash - Merge of all PRs,!210Replaced #!/bin/sh with #!/bin/bash,!209Replaced #!/bin/sh with #!/bin/bash,!208Replaced #!/bin/sh with #!/bin/bash,!207Replaced #!/bin/sh with #!/bin/bash,!206Replaced #!/bin/sh with #!/bin/bash,!205Replaced #!/bin/sh with #!/bin/bash,!204Replaced #!/bin/sh with #!/bin/bash,!203Replaced #!/bin/sh with #!/bin/bash,!202changed #!/bin/sh to #!/bin/bash
......@@ -59,7 +59,7 @@ the submit file.
**SLURM Submit File**
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=03:15:00 # Run time in hh:mm:ss
#SBATCH --mem-per-cpu=1024 # Maximum memory required per CPU (in megabytes)
#SBATCH --job-name=hello-world
......
......@@ -9,7 +9,7 @@ since you must request multiple cores from a single node.
{{% panel theme="info" header="OpenMP example submission" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --ntasks-per-node=16 # 16 cores
#SBATCH --nodes=1 # 1 node
#SBATCH --mem-per-cpu=1024 # Minimum memory required per CPU (in megabytes)
......
......@@ -19,7 +19,7 @@ For teaching purposes, users need to add
{{% panel theme="info" header="ANSYS.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --ntasks=1
#SBATCH --time=00:30:00
#SBATCH --mem-per-cpu=1024
......
......@@ -15,7 +15,7 @@ Specifically, these two lines should be added before calling matlab:
{{% panel theme="info" header="serial_matlab.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=03:15:00
#SBATCH --mem-per-cpu=1024
#SBATCH --job-name=[job_name]
......@@ -33,7 +33,7 @@ The submit file:
{{% panel theme="info" header="parallel_matlab.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=5
#SBATCH --time=03:15:00
......
......@@ -27,7 +27,7 @@ example:
{{% panel theme="info" header="serial_R.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=00:30:00
#SBATCH --mem-per-cpu=1024
#SBATCH --job-name=TestJob
......@@ -47,7 +47,7 @@ directed to, as follows:
{{% panel theme="info" header="serial_R.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=00:30:00
#SBATCH --mem-per-cpu=1024
#SBATCH --job-name=TestJob
......@@ -66,7 +66,7 @@ with `--args` as follows:
{{% panel theme="info" header="serial_R.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=00:30:00
#SBATCH --mem-per-cpu=1024
#SBATCH --job-name=TestJob
......@@ -87,7 +87,7 @@ using `Rscript` the submit script could look like the following:
{{% panel theme="info" header="serial_R.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=00:30:00
#SBATCH --mem-per-cpu=1024
#SBATCH --job-name=TestJob
......@@ -111,7 +111,7 @@ will follow the script name as in the example below:
{{% panel theme="info" header="serial_R.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=00:30:00
#SBATCH --mem-per-cpu=1024
#SBATCH --job-name=TestJob
......@@ -133,7 +133,7 @@ since both are running multicore jobs on a single node. Below is an example:
{{% panel theme="info" header="parallel_R.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --ntasks-per-node=16
#SBATCH --nodes=1
#SBATCH --time=00:30:00
......@@ -173,7 +173,7 @@ Below is an example of running Rmpi on Crane on 2 nodes and 32 cores:
{{% panel theme="info" header="Rmpi.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=16
#SBATCH --time=00:30:00
......
......@@ -203,7 +203,7 @@ the submit file header.
{{% panel theme="info" header="**Submit File Example**" %}}
{{< highlight batch >}}
[demo01@login.hcc_cluster ~]$ cat submit_test.slurm
#!/bin/batch
#!/bin/bash
#SBATCH --ntasks=4
#SBATCH --qos=ac_demo
#SBATCH --ntasks=5
......
......@@ -16,7 +16,7 @@ in [Submitting Jobs]({{< relref "/guides/submitting_jobs/_index.md" >}}).  
{{% panel theme="info" header="example.slurm" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --array=0-31
#SBATCH --time=03:15:00 # Run time in hh:mm:ss
#SBATCH --mem-per-cpu=1024 # Minimum memory required per CPU (in megabytes)
......
......@@ -8,7 +8,7 @@ This script requests 16 cores on nodes with InfiniBand:
{{% panel theme="info" header="mpi.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --ntasks=16
#SBATCH --mem-per-cpu=1024
#SBATCH --time=03:15:00
......@@ -31,7 +31,7 @@ tasks, 16 on each of two nodes:
{{% panel theme="info" header="mpi.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=16
#SBATCH --mem-per-cpu=1024
......
......@@ -103,7 +103,7 @@ CUDA and OpenACC submissions require running on GPU nodes.
{{% panel theme="info" header="cuda.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=03:15:00
#SBATCH --mem-per-cpu=1024
#SBATCH --job-name=cuda
......@@ -123,7 +123,7 @@ required to compile as well).
{{% panel theme="info" header="openacc.submit" %}}
{{< highlight batch >}}
#!/bin/sh
#!/bin/bash
#SBATCH --time=03:15:00
#SBATCH --mem-per-cpu=1024
#SBATCH --job-name=cuda-acc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment