Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
HPC_SCHOOL_2024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HPC_SCHOOL
HPC_SCHOOL_2024
Commits
0ac85ae2
Commit
0ac85ae2
authored
1 year ago
by
David Goz
Browse files
Options
Downloads
Patches
Plain Diff
serial/openmp jabobi for hpc_school
parent
32f8a973
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
jacobi/openmp/not_opt/script/run.sh
+14
-4
14 additions, 4 deletions
jacobi/openmp/not_opt/script/run.sh
jacobi/serial/not_opt/script/run.sh
+52
-0
52 additions, 0 deletions
jacobi/serial/not_opt/script/run.sh
with
66 additions
and
4 deletions
jacobi/openmp/not_opt/script/run
_pleiadi
.sh
→
jacobi/openmp/not_opt/script/run.sh
+
14
−
4
View file @
0ac85ae2
#!/bin/bash
#!/bin/bash
######################### RESOURSE ALLOCATION #####################################
######################### RESOURSE ALLOCATION #####################################
##SBATCH --account=????????
#SBATCH --account=hpc_school
#SBATCH --partition=hpc_school
#SBATCH --partition=pleiadi
#SBATCH --job-name="Jacobi"
#SBATCH --job-name="Jacobi"
#SBATCH --nodes=1
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=8
#SBATCH --cpus-per-task=8
#SBATCH --output=Jacobi-omp-no-opt-%j.out
#SBATCH --output=Jacobi-omp-no-opt-%j.out
#SBATCH --error=Jacobi-omp-no-opt.%j.err
#SBATCH --error=Jacobi-omp-no-opt.%j.err
#SBATCH --time=00:0
3
:00
#SBATCH --time=00:0
5
:00
###################################################################################
###################################################################################
################################## MODULES ########################################
################################## MODULES ########################################
...
@@ -43,8 +42,19 @@ then
...
@@ -43,8 +42,19 @@ then
exit
2
exit
2
fi
fi
# OMP stuff
export
OMP_DISPLAY_AFFINITY
=
1
export
OMP_WAIT_POLICY
=
ACTIVE
# export OMP_PLACES=( "cores", "threads" )
# export BINDING=( "master" "close" "spread" )
for
OMP
in
${
OMP_THREADS
[@]
}
for
OMP
in
${
OMP_THREADS
[@]
}
do
do
# not necessary because the clause 'num_threads'
# is specified in the source code
# export OMP_NUM_THREADS=${OMP}
# run the application
# run the application
time
${
EXEC
}
${
GRID_SIZE_X
}
${
GRID_SIZE_Y
}
${
OMP
}
|&
tee
${
EXEC
}
_OMP_
${
OMP
}
_output.txt
time
${
EXEC
}
${
GRID_SIZE_X
}
${
GRID_SIZE_Y
}
${
OMP
}
|&
tee
${
EXEC
}
_OMP_
${
OMP
}
_output.txt
done
done
...
...
This diff is collapsed.
Click to expand it.
jacobi/serial/not_opt/script/run
_pleiadi
.sh
→
jacobi/serial/not_opt/script/run.sh
+
52
−
0
View file @
0ac85ae2
#!/bin/bash
#!/bin/bash
######################### RESOURSE ALLOCATION #####################################
######################### RESOURSE ALLOCATION #####################################
##SBATCH --account=????????
#SBATCH --account=hpc_school
#SBATCH --partition=hpc_school
#SBATCH --partition=pleiadi
#SBATCH --job-name="Jacobi"
#SBATCH --job-name="Jacobi"
#SBATCH --nodes=1
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=1
#SBATCH --cpus-per-task=1
#SBATCH --output=Jacobi-serial-no-opt-%j.out
#SBATCH --output=Jacobi-serial-no-opt-%j.out
#SBATCH --error=Jacobi-serial-no-opt.%j.err
#SBATCH --error=Jacobi-serial-no-opt.%j.err
#SBATCH --time=00:0
3
:00
#SBATCH --time=00:0
5
:00
###################################################################################
###################################################################################
################################## MODULES ########################################
################################## MODULES ########################################
...
@@ -21,6 +19,8 @@ source /opt/cluster/spack/share/spack/setup-env.sh
...
@@ -21,6 +19,8 @@ source /opt/cluster/spack/share/spack/setup-env.sh
module purge
module purge
# load GCC
# load GCC
module load default-gcc-11.2.0
module load default-gcc-11.2.0
# load valgrind (optional)
module load valgrind-3.18.1-gcc-11.2.0-3hcfkwk
###################################################################################
###################################################################################
# input parameters
# input parameters
...
@@ -50,55 +50,3 @@ time ${EXEC} ${GRID_SIZE_X} ${GRID_SIZE_Y} |& tee ${EXEC}_output.txt
...
@@ -50,55 +50,3 @@ time ${EXEC} ${GRID_SIZE_X} ${GRID_SIZE_Y} |& tee ${EXEC}_output.txt
cd
${
WORKDIR
}
cd
${
WORKDIR
}
exit
0
exit
0
# # return to ./script and source input parameters and function
# cd - && source input_parameters && source write_paramfile.sh
# # loop over particles
# for PART in "${N[@]}"
# do
# # loop over MPI tasks
# for TASK in "${MPI[@]}"
# do
# # loop over OMP threads
# for THR in "${THREADS[@]}"
# do
# # write the paramfile
# write_paramfile ${TEMPLATE} ${PARAMFILE} \
# ${DELETE_OUTPUT_FILES} ${OUTPUTDIR} \
# ${THR} ${PART}
# # check the status
# if [[ "$?" != "0" ]]
# then
# echo "Error while writing ${PARAMFILE} ...aborting..."
# exit 3
# fi
# # move the paramfile and move to the parent directory where the executable resides
# mv ${PARAMFILE} ../ && cd ..
# # run the application
# srun --ntasks ${TASK} ${EXEC} ${PARAMFILE} >& $SLURM_JOB_ID.log
# # check exit status
# if [[ "$?" != "0" ]]
# then
# echo "####################################################################"
# echo "ERROR while running the app using: ${TASK} MPI tasks and ${GPU} GPUs"
# echo "####################################################################"
# fi
# # delete the paramfile and return to the previous directory
# rm -f ${PARAMFILE} && cd -
# done # loop over THR
# done # loop over TASKS
# done # looop over particles
# # make clean
# cd .. && make clean
# Everything is OK!
# exit 0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment