CTest with MPI

53 views
Skip to first unread message

Zachary 42!

unread,
Nov 13, 2020, 3:24:39 PM11/13/20
to dea...@googlegroups.com
Hi everyone,

I am trying to run some MPI tests and I don’t see on the deal.II website how to use ctest for running MPI programs. I just saw how the output file needs to indicate the number of processors used in the test so numdiff works correctly. How do you use ctest for running a MPI test program?

Thank you,

Zachary Streeter

Wolfgang Bangerth

unread,
Nov 13, 2020, 6:36:21 PM11/13/20
to dea...@googlegroups.com
On 11/13/20 1:24 PM, Zachary 42! wrote:
> I am trying to run some MPI tests and I don’t see on the deal.II website how to use ctest for running MPI programs. I just saw how the output file needs to indicate the number of processors used in the test so numdiff works correctly. How do you use ctest for running a MPI test program?

Once you create a test and an output file, you do 'make setup_tests' and
'ctest -R my_test' where my_test happens to be a test that uses MPI. Apart
from the fact that the number of processors used is encoded in the name of the
output file, there is no magic to it.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Zachary Streeter

unread,
Nov 13, 2020, 8:02:02 PM11/13/20
to deal.II User Group
Oh the test sees the number of processors from the .output files name?

Wolfgang Bangerth

unread,
Nov 13, 2020, 8:04:14 PM11/13/20
to dea...@googlegroups.com
On 11/13/20 6:02 PM, Zachary Streeter wrote:
> Oh the test sees the number of processors from the .output files name?

Yes. 'make setup_tests' figures this all out for you :-)

Zachary Streeter

unread,
Nov 13, 2020, 8:07:01 PM11/13/20
to deal.II User Group
Ahh, I don't feel bad not thinking that possibility; brilliant!

Wolfgang Bangerth

unread,
Nov 13, 2020, 8:08:43 PM11/13/20
to dea...@googlegroups.com
On 11/13/20 6:07 PM, Zachary Streeter wrote:
> Ahh, I don't feel bad not thinking that possibility; brilliant!

Matthias Maier (tamiko) gets the credit :-)
Reply all
Reply to author
Forward
0 new messages