Im trying to time my little program, which uses MPI and I want the output in a file.
The command Im trying: time --output=rt.txt mpirun -np 2 a.out. But the flags for timeand mpirun seem to clash.
Any ideas how this might work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you sure about this ? From the man page for the binary
timeWhich
timeare you using ? Note there’s a built-in shelltime, and a separate binary. I suspect you need to use the separate binary rather than the built-in. Just specify it as/usr/bin/time(or wherever it’s installed)