Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Micropp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ggiuntol
Micropp
Commits
f385d263
Commit
f385d263
authored
Oct 10, 2019
by
Guido Giuntoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small Changing on script to measure the GPU overloading
parent
f16c039f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
scripts/run-multi-gpu-mpi.sh
scripts/run-multi-gpu-mpi.sh
+6
-11
test/multi-gpu-mpi.cpp
test/multi-gpu-mpi.cpp
+0
-3
No files found.
scripts/run-multi-gpu-mpi.sh
View file @
f385d263
...
...
@@ -10,17 +10,12 @@
#SBATCH --exclusive
#SBATCH --time=01:30:00
### #SBATCH --nodes=1
### #SBATCH --ntasks-per-node=4
### #SBATCH --qos=bsc_case
### #SBATCH --qos=debug
N
=
100
NGP
=
32
N
=
5
NGP
=
5
STEPS
=
5
N_MPI
=
5
#EXEC="../build-gpu/test/test3d_2"
EXEC
=
"../test/multi-gpu-mpi"
EXEC
=
"../build/multi-gpu-mpi"
export
OMP_NUM_THREADS
=
1
export
CUDA_VISIBLE_DEVICES
=
"0,1,2,3"
...
...
@@ -31,10 +26,10 @@ export CUDA_VISIBLE_DEVICES="0,1,2,3"
rm
-rf
times.txt
for
i
in
{
1..9
}
;
do
for
((
i
=
1
;
i<
=
$N_MPI
;
i++
))
;
do
echo
"running"
$i
MPI processes
time
mpirun
-np
$i
$EXEC
$N
$NGP
$STEPS
>
output-
${
N
}
-
${
NGP
}
-
${
i
}
.out
mpirun
-np
$i
$EXEC
$N
$NGP
$STEPS
>
output-
${
N
}
-
${
NGP
}
-
${
i
}
.out
tim
=
$(
awk
'/time =/{print $3}'
output-
${
N
}
-
${
NGP
}
-
${
i
}
.out
)
echo
$i
$tim
>>
times.txt
...
...
test/multi-gpu-mpi.cpp
View file @
f385d263
...
...
@@ -19,14 +19,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <iostream>
#include <iomanip>
#include <cstring>
#include <cassert>
#include <chrono>
#include <bits/stdc++.h>
#include <mpi.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment