Skip to content

Commit b19771f

Browse files
ShvetsKSShvets Kirill
and
Shvets Kirill
authored
Propagate omp settings to run command (#52)
* fix omp env * revert mode Co-authored-by: Shvets Kirill <kirill.shvets@intel.com>
1 parent b408ce8 commit b19771f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class GenerationArgs:
215215
if not args.dummy_run:
216216
case = f'{lib},{algorithm} ' + case
217217
stdout, stderr = utils.read_output_from_command(
218-
command)
218+
command, env=env)
219219
stdout, extra_stdout = utils.filter_stdout(stdout)
220220
stderr = utils.filter_stderr(stderr)
221221

utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def is_exists_files(files):
5858
return True
5959

6060

61-
def read_output_from_command(command):
61+
def read_output_from_command(command, env=os.environ.copy()):
6262
res = subprocess.run(command.split(' '), stdout=subprocess.PIPE,
63-
stderr=subprocess.PIPE, encoding='utf-8', env=os.environ.copy())
63+
stderr=subprocess.PIPE, encoding='utf-8', env=env)
6464
return res.stdout[:-1], res.stderr[:-1]
6565

6666

0 commit comments

Comments
 (0)