Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
models
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
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documentation
models
Commits
4811328d
Commit
4811328d
authored
2 years ago
by
Guillaume Demesy
Browse files
Options
Downloads
Patches
Plain Diff
add openblas scaling test
parent
e9ee5efa
No related branches found
No related tags found
No related merge requests found
Pipeline
#10107
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DiffractionGratings/grating3D_postplot_scaling.py
+31
-0
31 additions, 0 deletions
DiffractionGratings/grating3D_postplot_scaling.py
DiffractionGratings/grating3D_scaling.sh
+21
-0
21 additions, 0 deletions
DiffractionGratings/grating3D_scaling.sh
with
52 additions
and
0 deletions
DiffractionGratings/grating3D_postplot_scaling.py
0 → 100644
+
31
−
0
View file @
4811328d
import
numpy
as
np
import
matplotlib.pyplot
as
plt
plt
.
figure
()
temp
=
np
.
genfromtxt
(
'
temp_scaling_runtime_MUMPS.out
'
,
delimiter
=
'
'
,
dtype
=
None
,
encoding
=
None
)[:,
7
]
runtime_MUMPS
=
np
.
array
([
np
.
float
(
temp
[
i
][:
-
2
])
for
i
in
range
(
len
(
temp
))])
tab_procs
=
np
.
loadtxt
(
'
temp_scaling_nbproc.out
'
)
tab_paramaille
=
np
.
loadtxt
(
'
temp_scaling_paramaille.out
'
)
runtime_MUMPS
=
runtime_MUMPS
.
reshape
((
len
(
tab_paramaille
),
len
(
tab_procs
)))
temp
=
np
.
genfromtxt
(
'
temp_scaling_NDOFs.out
'
,
delimiter
=
'
'
,
dtype
=
None
,
encoding
=
None
)
NDofs
=
[
temp
[
k
][
6
]
for
k
in
range
(
0
,
len
(
tab_procs
)
*
len
(
tab_paramaille
),
len
(
tab_procs
))]
plt
.
figure
()
for
k
in
range
(
len
(
tab_paramaille
)):
plt
.
plot
(
tab_procs
,
runtime_MUMPS
[
k
,:],
label
=
'
%g
'
%
NDofs
[
k
])
plt
.
legend
()
plt
.
xlabel
(
"
nprocs
"
)
plt
.
xlabel
(
"
MUMPS wall time (s)
"
)
plt
.
savefig
(
'
runtime.jpg
'
)
plt
.
figure
()
for
k
in
range
(
len
(
tab_paramaille
)):
plt
.
plot
(
tab_procs
,
runtime_MUMPS
[
k
,
0
]
/
runtime_MUMPS
[
k
,:],
label
=
'
%g
'
%
NDofs
[
k
])
plt
.
legend
(
title
=
"
Matrix size
"
)
plt
.
xlabel
(
"
number of procs
"
)
plt
.
ylabel
(
"
speedup
"
)
plt
.
savefig
(
'
speedup.jpg
'
)
# plt.show()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
DiffractionGratings/grating3D_scaling.sh
0 → 100644
+
21
−
0
View file @
4811328d
#!/bin/bash
export
OPENBLAS_NUM_THREADS
=
1
export
OMP_NUM_THREADS
=
1
export
GRATING_CASE
=
"halfellipsoid"
rm
-rf
res3D temp_scaling_nbproc.out temp_scaling_paramaille.out temp_scaling_runtime_MUMPS.out
rm
temp.out
for
p
in
5 10 15 20 25 30 35 40
do
echo
$p
>>
temp_scaling_paramaille.out
gmsh grating3D.geo
-3
-o
grating3D.msh
-setstring
test_case
$GRATING_CASE
-setnumber
paramaille
$p
for
i
in
1 2 4 6 8 10 12 14 16 20 24 28 32 40 44
do
if
[
"
$p
"
-eq
"1"
]
;
then
echo
$i
>>
temp_scaling_nbproc.out
;
fi
export
OPENBLAS_NUM_THREADS
=
$i
getdp grating3D.pro
-pre
helmholtz_vector
-msh
grating3D.msh
-cal
-pos
postop_helmholtz_vector
-petsc_prealloc
200
-setstring
test_case
$GRATING_CASE
done
done
grep
'N:'
nohup.out
>
temp_scaling_NDOFs.out
grep
-A1
'N:'
nohup.out
>
temp.out
&&
grep
'Wall'
temp.out
>
temp_scaling_runtime_MUMPS.out
rm
temp.out
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