trun_diagnostics.sh - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
       trun_diagnostics.sh (772B)
       ---
            1 #!/bin/sh
            2 
            3 OUTFILE=diagnostics.txt
            4 
            5 report() {
            6     echo >> $OUTFILE
            7     echo "#### $@ ###" >> $OUTFILE
            8     $@ >> $OUTFILE 2>&1
            9 }
           10 
           11 echo "Running diagnostics, this will take a few minutes. Please wait..."
           12 date > $OUTFILE
           13 report ls -lh .
           14 report ls -lhR src
           15 report ls -lhR python
           16 report ls -lhR input
           17 report ls -lhR Testing
           18 report git show
           19 report git status
           20 report lspci
           21 report uname -a
           22 report cmake --version
           23 report nvcc --version
           24 report gcc --version
           25 report cmake .
           26 report make
           27 report make test
           28 report cat Testing/Temporary/LastTestsFailed.log
           29 report cat Testing/Temporary/LastTest.log
           30 
           31 rm -f $OUTFILE.gz
           32 gzip $OUTFILE
           33 echo "Diagnostics complete."
           34 echo "Report bugs and unusual behavior to anders.damsgaard@geo.au.dk."
           35 echo "Please attach the file $OUTFILE.gz to the mail."