Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ST7-Intel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
Simon Maréchal
ST7-Intel
Commits
dc2e7e63
Commit
dc2e7e63
authored
4 years ago
by
Emile Prost
Browse files
Options
Downloads
Patches
Plain Diff
debuggage
parent
77996292
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
Appli-iso3dfd/test_nb_threads.py
+3
-2
3 additions, 2 deletions
Appli-iso3dfd/test_nb_threads.py
with
3 additions
and
2 deletions
Appli-iso3dfd/test_nb_threads.py
+
3
−
2
View file @
dc2e7e63
import
subprocess
import
subprocess
import
sys
import
sys
import
os
import
os
import
re
import
launcher_SUBP
import
launcher_SUBP
import
tools
import
tools
...
@@ -18,8 +19,8 @@ for nb_threads in range(0,5):
...
@@ -18,8 +19,8 @@ for nb_threads in range(0,5):
if
"
throughput
"
in
line
:
if
"
throughput
"
in
line
:
# Find float in line
# Find float in line
throughput
=
float
(
re
.
findall
(
"
\d+\.\d+
"
,
line
)[
0
])
throughput
=
float
(
re
.
findall
(
"
\d+\.\d+
"
,
line
)[
0
])
troughputs
[
nb_threads
]
+=
troughput
t
h
roughputs
[
nb_threads
]
+=
t
h
roughput
troughputs
[
nb_threads
]
=
troughputs
[
nb_threads
]
/
6
t
h
roughputs
[
nb_threads
]
=
t
h
roughputs
[
nb_threads
]
/
6
print
(
'
Mean value of throughput in the configuration [512, 256, 512, 128, 20, 9]
'
)
print
(
'
Mean value of throughput in the configuration [512, 256, 512, 128, 20, 9]
'
)
print
(
'
for a number of threads going from 4 to 8 :
'
)
print
(
'
for a number of threads going from 4 to 8 :
'
)
...
...
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