add threads

This commit is contained in:
gabrielkheisa 2022-11-14 15:59:10 +07:00
parent 9d66c09c6e
commit c56c7d7573
7 changed files with 98 additions and 0 deletions

14
tugas3_16thread.sh Normal file
View File

@ -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

14
tugas3_1thread.sh Normal file
View File

@ -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

14
tugas3_2thread.sh Normal file
View File

@ -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

14
tugas3_32thread.sh Normal file
View File

@ -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

14
tugas3_4thread.sh Normal file
View File

@ -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

14
tugas3_64thread.sh Normal file
View File

@ -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

14
tugas3_8thread.sh Normal file
View File

@ -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