Skip to content

Propagate omp settings to run command #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class GenerationArgs:
if not args.dummy_run:
case = f'{lib},{algorithm} ' + case
stdout, stderr = utils.read_output_from_command(
command)
command, env=env)
stdout, extra_stdout = utils.filter_stdout(stdout)
stderr = utils.filter_stderr(stderr)

Expand Down
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def is_exists_files(files):
return True


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


Expand Down