From c56c7d757357bf00f4a4a1d359a1ccc360f26a4d Mon Sep 17 00:00:00 2001 From: gabrielkheisa Date: Mon, 14 Nov 2022 15:59:10 +0700 Subject: [PATCH] add threads --- tugas3_16thread.sh | 14 ++++++++++++++ tugas3_1thread.sh | 14 ++++++++++++++ tugas3_2thread.sh | 14 ++++++++++++++ tugas3_32thread.sh | 14 ++++++++++++++ tugas3_4thread.sh | 14 ++++++++++++++ tugas3_64thread.sh | 14 ++++++++++++++ tugas3_8thread.sh | 14 ++++++++++++++ 7 files changed, 98 insertions(+) create mode 100644 tugas3_16thread.sh create mode 100644 tugas3_1thread.sh create mode 100644 tugas3_2thread.sh create mode 100644 tugas3_32thread.sh create mode 100644 tugas3_4thread.sh create mode 100644 tugas3_64thread.sh create mode 100644 tugas3_8thread.sh diff --git a/tugas3_16thread.sh b/tugas3_16thread.sh new file mode 100644 index 0000000..9374c91 --- /dev/null +++ b/tugas3_16thread.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#SBATCH --nodes=1 +#SBATCH --time=00:01:10 +#SBATCH --job-name=Gabriel + +whoami +hostname +$(date +%Y%m%d_%H%M%S%Z) + +gfortran -fopenmp tugas3.f90 +export OMP_NUM_THREADS=16 +ulimit -s unlimited +./a.out \ No newline at end of file diff --git a/tugas3_1thread.sh b/tugas3_1thread.sh new file mode 100644 index 0000000..01e3e93 --- /dev/null +++ b/tugas3_1thread.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#SBATCH --nodes=1 +#SBATCH --time=00:01:10 +#SBATCH --job-name=Gabriel + +whoami +hostname +$(date +%Y%m%d_%H%M%S%Z) + +gfortran -fopenmp tugas3.f90 +export OMP_NUM_THREADS=1 +ulimit -s unlimited +./a.out \ No newline at end of file diff --git a/tugas3_2thread.sh b/tugas3_2thread.sh new file mode 100644 index 0000000..5b694d0 --- /dev/null +++ b/tugas3_2thread.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#SBATCH --nodes=1 +#SBATCH --time=00:01:10 +#SBATCH --job-name=Gabriel + +whoami +hostname +$(date +%Y%m%d_%H%M%S%Z) + +gfortran -fopenmp tugas3.f90 +export OMP_NUM_THREADS=2 +ulimit -s unlimited +./a.out \ No newline at end of file diff --git a/tugas3_32thread.sh b/tugas3_32thread.sh new file mode 100644 index 0000000..8f12912 --- /dev/null +++ b/tugas3_32thread.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#SBATCH --nodes=1 +#SBATCH --time=00:01:10 +#SBATCH --job-name=Gabriel + +whoami +hostname +$(date +%Y%m%d_%H%M%S%Z) + +gfortran -fopenmp tugas3.f90 +export OMP_NUM_THREADS=32 +ulimit -s unlimited +./a.out \ No newline at end of file diff --git a/tugas3_4thread.sh b/tugas3_4thread.sh new file mode 100644 index 0000000..e3c876d --- /dev/null +++ b/tugas3_4thread.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#SBATCH --nodes=1 +#SBATCH --time=00:01:10 +#SBATCH --job-name=Gabriel + +whoami +hostname +$(date +%Y%m%d_%H%M%S%Z) + +gfortran -fopenmp tugas3.f90 +export OMP_NUM_THREADS=4 +ulimit -s unlimited +./a.out \ No newline at end of file diff --git a/tugas3_64thread.sh b/tugas3_64thread.sh new file mode 100644 index 0000000..c09de83 --- /dev/null +++ b/tugas3_64thread.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#SBATCH --nodes=1 +#SBATCH --time=00:01:10 +#SBATCH --job-name=Gabriel + +whoami +hostname +$(date +%Y%m%d_%H%M%S%Z) + +gfortran -fopenmp tugas3.f90 +export OMP_NUM_THREADS=64 +ulimit -s unlimited +./a.out \ No newline at end of file diff --git a/tugas3_8thread.sh b/tugas3_8thread.sh new file mode 100644 index 0000000..921b1bf --- /dev/null +++ b/tugas3_8thread.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#SBATCH --nodes=1 +#SBATCH --time=00:01:10 +#SBATCH --job-name=Gabriel + +whoami +hostname +$(date +%Y%m%d_%H%M%S%Z) + +gfortran -fopenmp tugas3.f90 +export OMP_NUM_THREADS=8 +ulimit -s unlimited +./a.out \ No newline at end of file