improving prerequisites report for next release
This commit is contained in:
parent
eec71cef84
commit
136df3618d
|
@ -1,4 +1,3 @@
|
||||||
.noH5py
|
|
||||||
*.pyc
|
*.pyc
|
||||||
*.mod
|
*.mod
|
||||||
*.o
|
*.o
|
||||||
|
@ -8,3 +7,4 @@
|
||||||
bin
|
bin
|
||||||
PRIVATE
|
PRIVATE
|
||||||
build
|
build
|
||||||
|
system_report.txt
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#==================================================================================================
|
#==================================================================================================
|
||||||
# Execute this script and send system_report.txt to damask@mpie.de for support
|
# Execute this script (type './DAMASK_prerequisites.sh')
|
||||||
|
# and send system_report.txt to damask@mpie.de for support
|
||||||
#==================================================================================================
|
#==================================================================================================
|
||||||
|
|
||||||
OUTFILE="system_report.txt"
|
OUTFILE="system_report.txt"
|
||||||
echo generating $OUTFILE
|
echo ===========================================
|
||||||
|
echo + Generating $OUTFILE
|
||||||
|
echo + Send to damask@mpie.de for support
|
||||||
|
echo ===========================================
|
||||||
|
|
||||||
|
|
||||||
echo date +"%m-%d-%y" >$OUTFILE
|
|
||||||
|
|
||||||
# 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^
|
||||||
|
@ -17,6 +21,10 @@ exec > $OUTFILE 2>&1
|
||||||
# https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
|
# https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
|
||||||
DAMASK_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DAMASK_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
echo System report for \'$(hostname)\' created on $(date '+%Y-%m-%d %H:%M:%S') by \'$(whoami)\'
|
||||||
|
echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
|
echo
|
||||||
echo ==============================================================================================
|
echo ==============================================================================================
|
||||||
echo DAMASK settings
|
echo DAMASK settings
|
||||||
echo ==============================================================================================
|
echo ==============================================================================================
|
||||||
|
@ -34,19 +42,24 @@ echo System
|
||||||
echo ==============================================================================================
|
echo ==============================================================================================
|
||||||
uname -a
|
uname -a
|
||||||
echo
|
echo
|
||||||
|
echo PATH: $PATH
|
||||||
|
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH
|
||||||
|
echo PYTHONPATH: $PYTHONPATH
|
||||||
|
echo SHELL: $SHELL
|
||||||
|
echo
|
||||||
echo ==============================================================================================
|
echo ==============================================================================================
|
||||||
echo Python
|
echo Python
|
||||||
echo ==============================================================================================
|
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)x" != "x" ]]; then
|
if which $executable &> /dev/null; then
|
||||||
echo $executable version: $($executable --version 2>&1)
|
echo $executable version: $($executable --version 2>&1)
|
||||||
else
|
else
|
||||||
echo $executable does not exist
|
echo $executable does not exist
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo Location of $DEFAULT_PYTHON: $(ls -la $(which $DEFAULT_PYTHON))
|
echo Details on $DEFAULT_PYTHON: $(ls -la $(which $DEFAULT_PYTHON))
|
||||||
echo
|
echo
|
||||||
for module in numpy scipy;do
|
for module in numpy scipy;do
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
|
@ -73,7 +86,7 @@ echo ===========================================================================
|
||||||
echo GCC
|
echo GCC
|
||||||
echo ==============================================================================================
|
echo ==============================================================================================
|
||||||
for executable in gcc g++ gfortran ;do
|
for executable in gcc g++ gfortran ;do
|
||||||
if [[ "$(which $executable)x" != "x" ]]; then
|
if which $executable &> /dev/null; then
|
||||||
echo $(which $executable) version: $($executable --version 2>&1)
|
echo $(which $executable) version: $($executable --version 2>&1)
|
||||||
else
|
else
|
||||||
echo $executable does not exist
|
echo $executable does not exist
|
||||||
|
@ -84,7 +97,7 @@ 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)x" != "x" ]]; then
|
if which $executable &> /dev/null; then
|
||||||
echo $(which $executable) version: $($executable --version 2>&1)
|
echo $(which $executable) version: $($executable --version 2>&1)
|
||||||
else
|
else
|
||||||
echo $executable does not exist
|
echo $executable does not exist
|
||||||
|
@ -95,7 +108,7 @@ 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 mpicxx mpicxx mpifort mpif90 mpif77; do
|
||||||
if [[ "$(which $executable)x" != "x" ]]; then
|
if which $executable &> /dev/null; then
|
||||||
echo $(which $executable) version: $($executable --show 2>&1)
|
echo $(which $executable) version: $($executable --show 2>&1)
|
||||||
else
|
else
|
||||||
echo $executable does not exist
|
echo $executable does not exist
|
||||||
|
|
Loading…
Reference in New Issue