Skip to content
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

Redirect program output to file #12

Open
brnorris03 opened this issue Sep 8, 2015 · 3 comments
Open

Redirect program output to file #12

brnorris03 opened this issue Sep 8, 2015 · 3 comments

Comments

@brnorris03
Copy link
Contributor

Add a configuration option for redirecting stdout to a user-specified filename.

@xdai
Copy link
Collaborator

xdai commented Sep 13, 2015

For PBS, stdout/stderr can be controlled with PBS option "-e / -o / -j". We can specify them like this:

[Platform]
Queue     = PBS

[Queue]
options   = -q queue_name
          = -e stderr.log
          = -o stdout.log

In addition to that, autoperf will invoke the job like this in the PBS script:

# run the experiment
{exp_run} 2>&1 | tee {datadir}/job.log

i.e., stdout and stderr are dumped into {datadir}/job.log.

That been said, I believe you already know all the above, so I guess maybe you are asking to add a new option to change {datadir}/job.log?

@brnorris03
Copy link
Contributor Author

This is for non-PBS jobs, so we need to capture the stderr/stdout of the user-specified executable.

@xdai
Copy link
Collaborator

xdai commented Sep 19, 2015

For serial or mic jobs, we have the similar:

# run the experiment
{exp_run} 2>&1 | tee {datadir}/job.log 

Check https://github.com/HPCL/autoperf/blob/master/autoperf/queues/serial.py#L18 and https://github.com/HPCL/autoperf/blob/master/autoperf/queues/mic.py#L22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants