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