ExternalLibraries/MPI: increase verbosity when 'export VERBOSE=yes' is set
Ticket #1667 touched on this issue a bit, but since I would like to see a solution just for the verbosity level and not a rewriting of how a external library should be reconfigured I think it is worth a ticket on its on.
Currently if I set 'export VERBOSE=yes', the only message output I get from the MPI thorn is:
Running configuration script for thorn MPI:
Found MPI compiler wrapper at /usr/bin/mpic++!
Successfully configured MPI.
Finished running configuration script for thorn MPI.
while for other external library detect bash scripts I have a verbose output as requested:
Running configuration script for thorn HDF5:
+ set -e
+ . /home/bruno/tmp/ET_test/Cactus/lib/make/bash_utils.sh
+ '[' -n '' ']'
+ HDF5_DIR_INPUT=
++ echo ''
++ tr '[a-z]' '[A-Z]'
+ '[' '' = BUILD ']'
+ HDF5_BUILD=
+ HDF5_C_LIBS='hdf5_hl hdf5'
+ '[' no = yes ']'
+ '[' yes = yes ']'
+ '[' gfortran '!=' none ']'
+ HDF5_FORTRAN_LIBS='hdf5hl_fortran hdf5_fortran'
...
+ echo 'INCLUDE_DIRECTORY $(HDF5_INC_DIRS)'
+ echo 'LIBRARY_DIRECTORY $(HDF5_LIB_DIRS)'
+ echo 'LIBRARY $(HDF5_LIBS)'
Additional requested language support: Fortran
HDF5 selected, but HDF5_DIR not set. Checking pkg-config ...
HDF5 not found. Checking standard paths ...
HDF5 not found.
Using bundled HDF5...
One way of doing something similar in perl is using the module Devel::ebug* and write an utility in the lines of the one presented here:
http://www.nntp.perl.org/group/perl.beginners/2008/03/msg99151.html
Would someone be interested in pursuing this path for debugging perl scripts in Cactus and then increasing its verbosity?
Keyword: ExternalLibraries
Keyword: MPI
Comments (5)
-
-
Please review.
If not objected I will apply this after 2019-07-14.
-
- edited description
- changed status to open
-
- changed status to resolved
Applied as git hash 2995447 "MPI: remove need for external package" of ExternalLibraries-MPI
-
- changed status to closed
- Log in to comment
MPI no longer uses a bash based detection script. The current one (
detect.pl
) does look atVERBOSE
but ignores the setting. The code was present in the very first commit introducing the perl code ee23cc93ec728624bb5396fa5f2626f3ce95b310 . There's a Trace module in Perl that would do the trick: https://perl.plover.com/Trace/ and a pull request using it is here: https://github.com/EinsteinToolkit/ExternalLibraries-MPI/pull/1