Skip to content

Commit c89b3f4

Browse files
committedApr 26, 2024
[Adastra-gpu] F77Flags in debug mode should contain -O0, otherwise link fails
+ cleanup
1 parent 34deb2d commit c89b3f4

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed
 

‎.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ Outils/ICoCo/ICoCo_src/README.BALTIK
5656
Outils/ICoCo/ICoCo_src/configure
5757
Outils/ICoCo/ICoCo_src/env_MEDICoCo.sh
5858
Outils/ICoCo/ICoCo_src/full_env_MEDICoCo.sh
59-
Outils/Python_modules/distribute-0.6.28/
60-
Outils/Python_modules/distribute-0.7.3/
6159
Outils/ICoCo/ICoCo_src/share/swig/install/
6260
Outils/ICoCo/ICoCo_src/.tests_ICoCo_opt.html
6361
Outils/ICoCo/ICoCo_src/ICoCo
@@ -82,6 +80,7 @@ src/Readme_eclipse.pdf
8280
doc/TRUST/Tutorial/ICoCo_tutorial.pdf
8381
doc/TRUST/Tutorial/TRUST_tutorial.pdf
8482
doc/TRUST/Tutorial/Baltik_tutorial.pdf
83+
doc/TRUST/exercices/Tutorial_solutions/Tutorial_solutions.pdf
8584
doc/tmp
8685
doc/tmp_files
8786

‎Outils/VisIt/src/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ clean()
1414
[ -d ${paquet%.tar.xz} ] && rm -r -f ${paquet%.tar.xz}
1515
rm -f $paquet
1616
done
17-
rm -r -f VTK-?.?.? VTK-*-build visit visit?.?.? visit-vtk-?.? visit-vtk-*-build Mesa-?.? Mesa-?.*.? qt-everywhere-opensource-src-?.?.?
18-
rm -f build_visit2_5_2* build_visit*help
17+
rm -r -f VTK-?.?.? VTK-*-build visit visit?.?.? visit-vtk-?.? visit-vtk-*-build Mesa-?.? Mesa-?.*.? qt-everywhere-src* llvm-* clang*
18+
rm -f build_visit*help
1919
rm -f build_visit*"_log" *.cmake *.conf tmp* *.py releases
2020
rm -f visit-install
2121
echo "OK"

‎bin/Installer_TRUST

+4-12
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ then
469469
fi
470470
echo | tee -a $LOG
471471
source $TRUST_ROOT/env_TRUST.sh
472-
mklibs >> $LOG
473472

474473
# Message de detection :
475474
[ ${#TRUST_CC} = 0 ] && echo "Warning : this script did not find C++ compiler : you CANNOT compile TRUST" | tee -a $LOG
@@ -584,10 +583,7 @@ echo | tee -a $LOG
584583
echo "**************************" | tee -a $LOG
585584
echo "HOW TO INITIALIZE TRUST ?:" | tee -a $LOG
586585
echo "**************************" | tee -a $LOG
587-
echo "Add the following lines in your $HOME/.profile or $HOME/.bashrc file:" | tee -a $LOG
588-
echo "# TRUST environment:" | tee -a $LOG
589-
echo "export TRUST_ROOT=$TRUST_ROOT" | tee -a $LOG
590-
echo "source \$TRUST_ROOT/env_TRUST.sh 1>/dev/null 2>&1" | tee -a $LOG
586+
echo "export TRUST_ROOT=$TRUST_ROOT/env_TRUST.sh 1>/dev/null 2>&1" | tee -a $LOG
591587
cd $ROOT
592588
echo | tee -a $LOG
593589
echo "********************" | tee -a $LOG
@@ -596,21 +592,17 @@ echo "********************" | tee -a $LOG
596592
#echo $ECHO_OPTS "[Fast] Run the command 'trust -check VAHL_DAVIS', if you want to check the TRUST binary on a single test.\n" | tee -a $LOG
597593
echo $ECHO_OPTS "[Fast] Run the command 'trust -check Kernel', if you want to check the TRUST binary on a single test.\n" | tee -a $LOG
598594
echo $ECHO_OPTS "[Long] Run the command 'trust -check all', if you want to check the TRUST binary on test cases. It may take several hours." | tee -a $LOG
599-
echo | tee -a $LOG
600-
echo "**********************************" | tee -a $LOG
601-
echo "HOW TO BUILD TRUST IN DEBUG MODE?" | tee -a $LOG
602-
echo "**********************************" | tee -a $LOG
603-
echo $ECHO_OPTS "cd $TRUST_ROOT" | tee -a $LOG
604-
echo $ECHO_OPTS "make debug" | tee -a $LOG
595+
echo $ECHO_OPTS "[Fast using ctest] Run the command 'trust -ctest all', if you want to check the TRUST binary using ctest (not adapted for clusters).\n" | tee -a $LOG
605596
echo | tee -a $LOG
606597
echo "************************" | tee -a $LOG
607598
echo "HOW TO RE-BUILD TRUST ?" | tee -a $LOG
608599
echo "************************" | tee -a $LOG
609600
echo $ECHO_OPTS "If you want to build again TRUST, run:" | tee -a $LOG
610601
echo $ECHO_OPTS "cd $TRUST_ROOT" | tee -a $LOG
611602
echo $ECHO_OPTS "./configure -help # Then check and/or change the detected values into the \$TRUST_ROOT/env/machine.env file" | tee -a $LOG
603+
echo $ECHO_OPTS "./configure \$OPTIONS" | tee -a $LOG
612604
echo $ECHO_OPTS "source env_TRUST.sh # Initialize the new environment" | tee -a $LOG
613-
echo $ECHO_OPTS "make clean;make # Then clean and rebuild TRUST" | tee -a $LOG
605+
echo $ECHO_OPTS "make # rebuild TRUST" | tee -a $LOG
614606
echo | tee -a $LOG
615607
echo "*******************" | tee -a $LOG
616608
echo "HOW TO USE TRUST ?" | tee -a $LOG

‎bin/KSH/Verifie_pere

+18-19
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ test_pere()
44
baltik_build_configure -execute
55
make optim
66
(
7-
source env_Verifie_pere.sh && trust nul;
7+
source env_Verifie_pere.sh && trust nul;
88
exit $?
99
)
1010
status=$?
1111
}
1212
gen_dico()
1313
{
1414
$TRUST_Awk 'BEGIN {printf("{ ");}{if ($2!=$1) {printf(" %s ,",$2);}} END {print("fin")}' $TRUST_ROOT/doc/.dico | sed "s/,fin/}/" > dico
15-
$TRUST_Awk 'BEGIN {printf("{ ");}{if ($2!=$1) {printf(" %s ,",$1);}} END {print("fin")}' $TRUST_ROOT/doc/.dico | sed "s/,fin/}/" >> dico
15+
$TRUST_Awk 'BEGIN {printf("{ ");}{if ($2!=$1) {printf(" %s ,",$1);}} END {print("fin")}' $TRUST_ROOT/doc/.dico | sed "s/,fin/}/" >> dico
1616
sed "s?|[^ ]* ? ?g" dico > dico2; mv dico2 dico
1717
}
1818

@@ -25,7 +25,7 @@ tar xfz $TRUST_ROOT/bin/KSH/Verifie_pere.tgz
2525
cd Verifie_pere
2626

2727
echo End > nul.data
28-
echo > LOG
28+
echo > LOG
2929
gen_dico >>LOG 2>&1
3030

3131
# on verifie que les erreurs sont detectees
@@ -40,16 +40,16 @@ rm -f src/Transformer.cpp
4040

4141
# Pierre si je ne fais pas cela , des fois il ne recompile pas l'atelier
4242
#
43-
# Je ne veux pas faire rm $exec comme cela si ca ne compile pas on aura comme avant
44-
sleep 1
43+
# Je ne veux pas faire rm $exec comme cela si ca ne compile pas on aura comme avant
44+
sleep 1
4545

4646
test_pere >>LOG 2>&1
4747
ok=$status
4848

4949
if [ $erreur -eq 0 ]
5050
then
51-
echo "The test doesn't run anymore " | tee -a LOG
52-
ok=-13
51+
echo "The test doesn't run anymore " | tee -a LOG
52+
ok=-13
5353
fi
5454
#on teste maintenant les bases... en regardant les sources
5555
ana_base()
@@ -60,37 +60,36 @@ ana_base()
6060
[ `basename $f` = "MD_Vector.cpp" ] && h=`echo $h| sed "s/Vector/Vector_base/"`
6161
res=`grep Implemente_base $f | awk -F\( '{print $2}' |sed "s?);?,?;s/ //g"`
6262
class=`echo $res | awk -F, '{print $1 }'`
63-
pere=`echo $res | awk -F, '{print $3 }'`
64-
63+
pere=`echo $res | awk -F, '{print $3 }'`
64+
6565
res2=`grep public $h | grep $class| sed "s/,/ /g"`
6666
echo $res2 | awk -v pere=$pere 'BEGIN {ok=0}{ for (i=1;i<=NF;i++) { if ($i==pere){ ok=1}}} END {print ok}'
6767
[ $mode -eq 1 ] && echo "classe " $class, "pere: " $pere&& echo dans $d/$h $res2
68-
68+
6969
}
7070

7171
for d in `cd $TRUST_ROOT; find src -type d`
72-
do
73-
72+
do
73+
7474
files=`grep -l Implemente_base $TRUST_ROOT/$d/*.cpp 2>/dev/null`
7575
for f in $files
7676
do
7777
okl=`ana_base $f 0`
7878
if [ $okl -ne 1 ]
79-
then
80-
ok=-100
81-
echo problem with $f >>LOG
82-
ana_base $f 1 >>LOG
79+
then
80+
ok=-100
81+
echo problem with $f >>LOG
82+
ana_base $f 1 >>LOG
8383
fi
84-
8584
done
8685
done
8786

8887

8988
if [ $ok -ne 0 ]
9089
then
91-
echo " KO: Problem with a father; See the `pwd`/LOG file" | tee -a LOG
90+
echo " KO: Problem with a father; See the `pwd`/LOG file" | tee -a LOG
9291
else
93-
echo " OK: See the `pwd`/LOG file" | tee -a LOG
92+
echo " OK"
9493
fi
9594
exit $ok
9695

‎bin/KSH/astyle_jdd.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ do
4545
sed -i "s?//?#?g" $tmp
4646
sed -i "s?twoslashes?//?g" $tmp
4747
sed -i "s?ascii_fieldsplit?ascii:fieldsplit?g" $tmp
48-
cp $tmp $file
48+
cat $tmp > $file
49+
rm $tmp
4950
fi
5051
fi
5152
done

‎env_src/configurer_env

+12-3
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ then
504504
cd $TRUST_ROOT
505505
rm -r -f $TRUST_ROOT/env_TRUST.sh $TRUST_ROOT/env/ $TRUST_ROOT/lib $TRUST_ROOT/exec $TRUST_ROOT/include $TRUST_ROOT/Makefile $TRUST_ROOT/MonoDir* $TRUST_ROOT/build
506506
rm -f $TRUST_ROOT/configure.log
507-
rm -f $TRUST_ROOT/tags $TRUST_ROOT/TAGS $TRUST_ROOT/compile*log $TRUST_ROOT/License.txt_*
507+
rm -f $TRUST_ROOT/tags $TRUST_ROOT/TAGS $TRUST_ROOT/compile*log
508508
rm -f $TRUST_ROOT/.toto
509509
# Plus on efface le $TRUST_TMP
510510
rm -r -f $TRUST_TMP
@@ -513,10 +513,17 @@ then
513513
rm -f $(find $TRUST_ROOT/src -name instancie_src_*)
514514
rm -f $TRUST_ROOT/src/MAIN/instancie_appel*
515515
rm -f $(find $TRUST_ROOT/src -name CMakeLists.txt)
516-
rm -f $(find $TRUST_ROOT/Validation/Rapports_automatiques -name .form.md5sum)
517516
rm -f $(find $TRUST_ROOT/src -name .check_sources.ok)
517+
# on efface aussi les fichiers ignores et log
518+
rm -f $(find $TRUST_ROOT/Validation/Rapports_automatiques -name .form.md5sum)
518519
rm -f $TRUST_ROOT/Validation/Rapports_automatiques/.check_of_all_validation_forms
519520
rm -rf $(find $TRUST_ROOT/Validation -name build)
521+
rm -rf $(find $TRUST_ROOT/Validation -name Run.log)
522+
rm -f $(find $TRUST_ROOT/Outils/VisIt/ -name visit-install"*" | grep -v 3_3_3)
523+
rm -f $TRUST_ROOT/doc/TRUST/exercices/Tutorial_solutions/Tutorial_solutions.pdf
524+
rm -f $TRUST_ROOT/doc/TRUST/Tutorial/*_tutorial.pdf
525+
rm -f $TRUST_ROOT/Outils/TRIOXDATA/test_complet/lance_test_modif
526+
520527
exit 0
521528
else
522529
rm -f prog.log
@@ -1832,7 +1839,7 @@ case $TRUST_ARCH_CC in
18321839
[ "$TRUST_ARCH_CC" = "linux_crayCC" ] && SYSLIBS="-L$GCC_PREFIX/snos/lib64 -lstdc++ -lgfortran -lrt" # EXTP GNU
18331840
SYSLIBS=$SYSLIBS" ${PE_MPICH_GTL_DIR_amd_gfx90a} ${PE_MPICH_GTL_LIBS_amd_gfx90a}" # Librairie GTL necessaire pour activer GPU-Direct
18341841
F77Flags="-O3 -fPIC"
1835-
F77Flags="-O1 -fPIC" # Sinon _dger_ undefined reference dans dlsode.f !
1842+
F77Flags="-O1 -fPIC" # Sinon _dger_ undefined reference dans dlsode.f ! en debug il faut -g -O0 sinon meme erreur !
18361843
[ "$TRUST_INT64" = "1" ] && [ "$TRUST_ARCH_CC" = "linux_crayCC" ] && F77Flags=$F77Flags" -default64" # crayftn
18371844
[ "$TRUST_INT64" = "1" ] && [ "$TRUST_ARCH_CC" = "linux_amdclang++" ] && F77Flags=$F77Flags" -fdefault-integer-8" # flang
18381845
ccFLAGS="-O3 -fPIC"
@@ -2311,6 +2318,8 @@ LINK_MALIB = $LINK_MALIB" > $tmp
23112318
CppFlags=`echo $CppFlags | sed "1,$ s?-O[0-9]?-g -O0?g"`
23122319
### Sur gcc >= 11, -g utilise dwarf5 qui empeche addr2line des versions < 2.35.2 de binutils de convertir les adresses des binaires en numero ligne du code source
23132320
[[ $(echo $TRUST_VERSION_GNU | cut -d '.' -f 1) -ge 11 ]] && CppFlags=${CppFlags/-g /-gdwarf-4 }
2321+
### sur Adastra-gpu avec crayftn, il faut passer -O0 sinon make debug passe pas( _dger_ undefined reference dans dlsode.f)
2322+
[ "$TRUST_ARCH_CC" = "linux_crayCC" ] && F77Flags=`echo $F77Flags | sed "1,$ s?-g?-g -O0?g"`
23142323
#############################
23152324
# Creation du fichier profile
23162325
#############################

0 commit comments

Comments
 (0)