modularized

This commit is contained in:
Martin Diehl 2018-02-01 07:56:55 +01:00
parent e4266c94e7
commit 24ba08c2cc
1 changed files with 51 additions and 26 deletions

View File

@ -9,9 +9,23 @@ OUTFILE="system_report.txt"
echo =========================================== echo ===========================================
echo + Generating $OUTFILE echo + Generating $OUTFILE
echo + Send to damask@mpie.de for support echo + Send to damask@mpie.de for support
echo + view with \'cat $OUTFILE\'
echo =========================================== echo ===========================================
function getDetails {
if which $1 &> /dev/null; then
echo ----------------------------------------------------------------------------------------------
echo $1:
echo ----------------------------------------------------------------------------------------------
echo + location:
which $1
echo + $1 $2:
$1 $2
echo -e '\n'
else
echo $ does not exist
fi
}
# redirect STDOUT and STDERR to logfile # redirect STDOUT and STDERR to logfile
# https://stackoverflow.com/questions/11229385/redirect-all-output-in-a-bash-script-when-using-set-x^ # https://stackoverflow.com/questions/11229385/redirect-all-output-in-a-bash-script-when-using-set-x^
@ -28,13 +42,19 @@ echo
echo ============================================================================================== echo ==============================================================================================
echo DAMASK settings echo DAMASK settings
echo ============================================================================================== echo ==============================================================================================
echo ----------------------------------------------------------------------------------------------
echo DAMASK_ROOT: echo DAMASK_ROOT:
echo ----------------------------------------------------------------------------------------------
echo $DAMASK_ROOT echo $DAMASK_ROOT
echo echo
echo ----------------------------------------------------------------------------------------------
echo Version: echo Version:
echo ----------------------------------------------------------------------------------------------
cat VERSION cat VERSION
echo echo
echo ----------------------------------------------------------------------------------------------
echo Settings in CONFIG: echo Settings in CONFIG:
echo ----------------------------------------------------------------------------------------------
cat CONFIG cat CONFIG
echo echo
echo ============================================================================================== echo ==============================================================================================
@ -46,6 +66,8 @@ echo PATH: $PATH
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH
echo PYTHONPATH: $PYTHONPATH echo PYTHONPATH: $PYTHONPATH
echo SHELL: $SHELL echo SHELL: $SHELL
echo PETSC_ARCH: $PETSC_ARCH
echo PETSC_DIR: $PETSC_DIR
echo echo
echo ============================================================================================== echo ==============================================================================================
echo Python echo Python
@ -53,16 +75,14 @@ echo ===========================================================================
DEFAULT_PYTHON=python2.7 DEFAULT_PYTHON=python2.7
for executable in python python2 python3 python2.7; do for executable in python python2 python3 python2.7; do
if which $executable &> /dev/null; then getDetails $executable '--version'
echo $executable version: $($executable --version 2>&1)
else
echo $executable does not exist
fi
done done
echo Details on $DEFAULT_PYTHON: $(ls -la $(which $DEFAULT_PYTHON)) echo ----------------------------------------------------------------------------------------------
echo echo Details on $DEFAULT_PYTHON:
echo ----------------------------------------------------------------------------------------------
echo $(ls -la $(which $DEFAULT_PYTHON))
for module in numpy scipy;do for module in numpy scipy;do
echo ---------------------------------------------------------------------------------------------- echo -e '\n----------------------------------------------------------------------------------------------'
echo $module echo $module
echo ---------------------------------------------------------------------------------------------- echo ----------------------------------------------------------------------------------------------
$DEFAULT_PYTHON -c "import $module; \ $DEFAULT_PYTHON -c "import $module; \
@ -86,31 +106,36 @@ echo ===========================================================================
echo GCC echo GCC
echo ============================================================================================== echo ==============================================================================================
for executable in gcc g++ gfortran ;do for executable in gcc g++ gfortran ;do
if which $executable &> /dev/null; then getDetails $executable '--version'
echo $(which $executable) version: $($executable --version 2>&1)
else
echo $executable does not exist
fi
done done
echo echo
echo ============================================================================================== echo ==============================================================================================
echo Intel Compiler Suite echo Intel Compiler Suite
echo ============================================================================================== echo ==============================================================================================
for executable in icc icpc ifort ;do for executable in icc icpc ifort ;do
if which $executable &> /dev/null; then getDetails $executable '--version'
echo $(which $executable) version: $($executable --version 2>&1)
else
echo $executable does not exist
fi
done done
echo echo
echo ============================================================================================== echo ==============================================================================================
echo MPI Wrappers echo MPI Wrappers
echo ============================================================================================== echo ==============================================================================================
for executable in mpicc mpiCC mpicxx mpicxx mpifort mpif90 mpif77; do for executable in mpicc mpiCC mpic++ mpicxx mpifort mpif90 mpif77; do
if which $executable &> /dev/null; then getDetails $executable '-show'
echo $(which $executable) version: $($executable --show 2>&1)
else
echo $executable does not exist
fi
done done
echo
echo ==============================================================================================
echo MPI Launchers
echo ==============================================================================================
for executable in mpirun mpiexec; do
getDetails $executable '--version'
done
echo
echo ==============================================================================================
echo Abaqus
echo ==============================================================================================
cd installation/mods_Abaqus # to have the right environment file
for executable in abaqus abq2016 abq2017; do
getDetails $executable 'information=all'
done
cd ../..