Patch for TotalView support with MPICH2/MVAPICH2
Pete Wyckoff
pw at osc.edu
Thu Apr 10 17:42:05 EDT 2008
frank.mietke at informatik.tu-chemnitz.de wrote on Wed, 02 Apr 2008 14:33 +0200:
> As attachment the revised patch. I made some minor changes:
>
> - added two header files in tv_attach.c so that variables are known
> - inserted a nanosleep() in MPIR_Breakpoint to prevent optimization by the
> compiler. You could do something else there if you think or you forbid
> optimization during compilation of tv_attach.c
> - nc + bash support, see below
> - README.tv file
Okay, merged these changes then glued the whole thing into the repo.
> Communication through /dev/tcp is a feature of the shell. The shell opens a
> socket and starts communication.
> Okay, two issues. On our systems nc isn't installed, and Debian/Ubuntu systems
> deactivated this feature in the bash and suggest using nc. I changed the script
> above in this way that I check for nc first and if it is not there try using the
> bash way. I have added some remarks to the README.tv file.
I played again with the nc/bash code. Doing "test -x nc" doesn't
work unless you're sitting in /usr/bin. So I changed it to "hash
nc", hoping we find it in the path somewhere. Neither this nor the
shell approach are very rock solid. Hard to know if the shell
approach even works, and we can't do it at configure time as compute
nodes are possibly different from the "front end" none on which
configure generally runs. Oh well, cross fingers; we made a
reasonable effort.
Thanks for all your explanations too. I didn't put them in the
documentation because it's probably too much information for most
users.
This will surely help lots of MPICH2 users who would like to use Totalview
with mpiexec. Thanks again,
-- Pete
More information about the mpiexec
mailing list