Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AINX
base-ariane-fork
Commits
d94050c4
Commit
d94050c4
authored
May 18, 2022
by
Mario Teixeira Parente
Browse files
tas/scripts: clean variable naming
parent
a8b9054b
Changes
2
Hide whitespace changes
Inline
Side-by-side
tas/scripts/run_benchmark_parallel.py
View file @
d94050c4
...
...
@@ -2,16 +2,20 @@ import multiprocessing as mp
import
os
import
sys
sys
.
path
.
insert
(
0
,
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)))))
from
tas
import
setting
# Turn off multi-threading due to loss in performance
os
.
environ
[
'OPENBLAS_NUM_THREADS'
]
=
'1'
script_name
=
"tas/run_benchmark.py"
num_runs
=
100
subfolders_experiments
=
next
(
os
.
walk
(
setting
.
folder_experiments_approach
))[
1
]
ids
=
sorted
([
int
(
subfolder_experiments
)
for
subfolder_experiments
in
subfolders_experiments
])
cmds
=
''
.
join
([
f
"
{
sys
.
executable
}
{
script_name
}
{
seed
}
> /dev/null
\n
"
for
seed
in
range
(
num_runs
)])
cmds
=
''
.
join
([
f
"
{
sys
.
executable
}
{
script_name
}
{
id
}
> /dev/null
\n
"
for
id
in
ids
])
launcher_job_file
=
f
'tas/scripts/launcher_cmds.txt'
...
...
tas/scripts/run_experiments_parallel.py
View file @
d94050c4
...
...
@@ -10,8 +10,8 @@ script_name = "tas/run_experiments.py"
num_runs
=
100
cmds
=
''
.
join
([
f
"
{
sys
.
executable
}
{
script_name
}
{
seed
}
> /dev/null
\n
"
for
seed
in
range
(
num_runs
)])
cmds
=
''
.
join
([
f
"
{
sys
.
executable
}
{
script_name
}
{
id_run
}
> /dev/null
\n
"
for
id_run
in
range
(
num_runs
)])
launcher_job_file
=
f
'tas/scripts/launcher_cmds.txt'
...
...
Write
Preview
Supports
Markdown
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