Commit d94050c4 authored by Mario Teixeira Parente's avatar Mario Teixeira Parente
Browse files

tas/scripts: clean variable naming

parent a8b9054b
...@@ -2,16 +2,20 @@ import multiprocessing as mp ...@@ -2,16 +2,20 @@ import multiprocessing as mp
import os import os
import sys 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 # Turn off multi-threading due to loss in performance
os.environ['OPENBLAS_NUM_THREADS'] = '1' os.environ['OPENBLAS_NUM_THREADS'] = '1'
script_name = "tas/run_benchmark.py" 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" cmds = ''.join([f"{sys.executable} {script_name} {id} > /dev/null\n" for id in ids])
for seed in range(num_runs)])
launcher_job_file = f'tas/scripts/launcher_cmds.txt' launcher_job_file = f'tas/scripts/launcher_cmds.txt'
......
...@@ -10,8 +10,8 @@ script_name = "tas/run_experiments.py" ...@@ -10,8 +10,8 @@ script_name = "tas/run_experiments.py"
num_runs = 100 num_runs = 100
cmds = ''.join([f"{sys.executable} {script_name} {seed} > /dev/null\n" cmds = ''.join([f"{sys.executable} {script_name} {id_run} > /dev/null\n"
for seed in range(num_runs)]) for id_run in range(num_runs)])
launcher_job_file = f'tas/scripts/launcher_cmds.txt' launcher_job_file = f'tas/scripts/launcher_cmds.txt'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment