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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HPC_SCHOOL
HPC_SCHOOL_2024
Commits
b876ce7d
Commit
b876ce7d
authored
11 months ago
by
David Goz
Browse files
Options
Downloads
Patches
Plain Diff
Delete run.sh
parent
edb87672
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
jacobi/serial/not_opt/script/run.sh
+0
-65
0 additions, 65 deletions
jacobi/serial/not_opt/script/run.sh
with
0 additions
and
65 deletions
jacobi/serial/not_opt/script/run.sh
deleted
100755 → 0
+
0
−
65
View file @
edb87672
#!/bin/bash
# compile the application
# select flags inside the Makefile (parent directory)
cd
..
&&
make mpi_omp_step_profiling
-f
Makefile
if
[[
"
$?
"
!=
"0"
]]
then
echo
"Cannot compile the application ...aborting..."
exit
1
fi
# the executable
EXEC
=
$(
find
.
-name
*
$(
hostname
)
*
-executable
-type
f
)
if
[[
"
$?
"
!=
"0"
]]
then
echo
"Cannot find the executable ...aborting..."
exit
2
fi
# 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
mpirun
-np
${
TASK
}
${
EXEC
}
${
PARAMFILE
}
# 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
# 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