Skip to content

Commit

Permalink
Merge pull request #114 from vincentcasseau/main
Browse files Browse the repository at this point in the history
Envs: minor DBG mode
  • Loading branch information
vincentcasseau authored Jul 29, 2024
2 parents fa31e70 + 6dab6d3 commit 803d103
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 44 deletions.
87 changes: 44 additions & 43 deletions Cassiopee/Envs/env_Cassiopee_local
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ set MAC0=`echo $KC | grep 'topaze'`; if ($%MAC0 != 0) set MAC="topaze"

# Detect the type of integer that is used
set INTTYPE=""
set DBGMODE=""
if ($?MACHINE == 0) then
if ($?MAC == 0) then
echo 'Your machine is not known by uname. Try to set MACHINE.'
Expand All @@ -59,7 +60,7 @@ endif
if ($MAC == "ld_pgi") then
#------------------------------- ld+PGI ---------------------------------------
setenv ELSAPROD pgi_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
foreach x (`(echo "" ; module -t list) | & grep intel`)
module unload $x
end
Expand All @@ -71,7 +72,7 @@ if ($MAC == "ld_pgi") then
else if ($MAC == "ld_eos8") then
#-------------------------- ld centos 8 + python 3 -----------------------------
setenv ELSAPROD eos8_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module purge
module unload intel/19.0.5
module unload impi/19.0.5
Expand All @@ -93,7 +94,7 @@ else if ($MAC == "ld_eos8") then
else if ($MAC == "ld") then
#------------------------------- ld rocky 8 + python 3 -----------------------------------
setenv ELSAPROD ld
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
source /etc/profile.d/modules-onera.csh
module purge
module load occt/7.6.1-gnu831
Expand All @@ -115,7 +116,7 @@ else if ($MAC == "ld") then
else if ($MAC == "eos814") then
#-------------------------- ld centos 8 + python 3.8 -----------------------------
setenv ELSAPROD eos814_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module purge
module load occt/7.6.1-gnu831
#module load gcc/10.2.0
Expand All @@ -136,7 +137,7 @@ else if ($MAC == "eos814") then
else if ($MAC == "ld_prev") then
#-------------------------- ld centos 7 + python 3 -----------------------------
setenv ELSAPROD x86_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Modules
foreach x (`(echo "" ; module -t list) | & grep intel`)
module unload $x
Expand All @@ -154,7 +155,7 @@ else if ($MAC == "ld_prev") then
else if ($MAC == "ld_python2") then
#----------------------------- ld centos 7 -------------------------------------
setenv ELSAPROD x86_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Modules
foreach x (`(echo "" ; module -t list) | & grep intel`)
module unload $x
Expand All @@ -174,7 +175,7 @@ else if ($MAC == "ld_python2") then
else if ($MAC == "eos") then
#----------------------------- eos -------------------------------------
setenv ELSAPROD x86_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Modules
foreach x (`(echo "" ; module -t list) | & grep intel`)
module unload $x
Expand All @@ -194,7 +195,7 @@ else if ($MAC == "eos") then
else if ($MAC == "macosx") then
#----------------------------- Mac OSX-----------------------------------------
setenv ELSAPROD macosx
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
setenv OMP_NUM_THREADS 2
set path=($path $CASSIOPEE/Dist/bin/macosx_r8)
setenv LD_LIBRARY_PATHL $CASSIOPEE/Dist/bin/"$ELSAPROD":$CASSIOPEE/Dist/bin/"$ELSAPROD"/lib:/opt/intel/composer_xe_2015/lib
Expand All @@ -206,7 +207,7 @@ else if ($MAC == "macosx") then
else if ($MAC == "ubuntu") then
#-------------------------------- ubuntu ------------------------------------
setenv ELSAPROD ubuntu
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
setenv OMP_NUM_THREADS 4
setenv PYTHONEXE=python3
setenv PRODMODE=1
Expand All @@ -215,7 +216,7 @@ else if ($MAC == "ubuntu") then
else if ($MAC == "fulvio") then
#------------------------------- fulvio ---------------------------------------
setenv ELSAPROD flv_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
foreach x (`(echo "" ; module -t list) | & grep intel`)
module unload $x
end
Expand All @@ -228,7 +229,7 @@ else if ($MAC == "fulvio") then
else if ($MAC == "visio_python3") then
#------------------------------- visio ---------------------------------------
setenv ELSAPROD vis_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
foreach x (`(echo "" ; module -t list) | & grep intel`)
module unload $x
end
Expand All @@ -245,7 +246,7 @@ else if ($MAC == "visio_python3") then
else if ($MAC == "visio") then
#------------------------------- visio ---------------------------------------
setenv ELSAPROD vis_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module load subversion/1.7.6
module load python/2.7.8
foreach x (`(echo "" ; module -t list) | & grep intel`)
Expand All @@ -261,7 +262,7 @@ else if ($MAC == "visio") then
else if ($MAC == "visung") then
#------------------------------- visung ---------------------------------------
setenv ELSAPROD visung_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module purge
module load subversion
module load occt/7.6.1-gnu831
Expand All @@ -279,7 +280,7 @@ else if ($MAC == "visung") then
else if ($MAC == "visung_el8") then
#------------------------------- visung ---------------------------------------
setenv ELSAPROD visung_el8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module purge
module load subversion
module load python/3.7.4-intel2120
Expand All @@ -296,7 +297,7 @@ else if ($MAC == "visung_el8") then
else if ($MAC == "austri") then
#------------------------------- austri ---------------------------------------
setenv ELSAPROD aus_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Nombre de threads
setenv OMP_NUM_THREADS 24
#setenv KMP_AFFINITY "verbose,granularity=fine,proclist=[0,2,4,6,8,10,12,14,16,18,20,22,1,3,5,7,9,11,13,15,17,19,21,23],explicit"
Expand All @@ -318,7 +319,7 @@ else if ($MAC == "austri") then
else if ($MAC == "giulia") then
#------------------------------- giulia ---------------------------------------
setenv ELSAPROD giu_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Nombre de threads
set ncpu=`cat /proc/cpuinfo |grep processor |cut -f2 -d: |tail -1`
@ ncpu++
Expand All @@ -337,7 +338,7 @@ else if ($MAC == "giulia") then
else if ($MAC == "cobalt") then
#------------------------------- cobalt ---------------------------------------
setenv ELSAPROD cob_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Nombre de threads
setenv OMP_NUM_THREADS 28
# modules
Expand All @@ -353,7 +354,7 @@ else if ($MAC == "cobalt") then
else if ($MAC == "tgcc_irene") then
#------------------------------- irene ---------------------------------------
setenv ELSAPROD irene_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Nombre de threads
setenv OMP_NUM_THREADS 24
# modules
Expand All @@ -366,7 +367,7 @@ else if ($MAC == "tgcc_irene") then
else if ($MAC == "jean-zay") then
#------------------------------- jean zay ------------------------------------
setenv ELSAPROD jz_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module load python/3.8.2
module load gcc/9.1.0-cuda-openacc
module load openmpi/4.1.1-cuda
Expand All @@ -379,7 +380,7 @@ else if ($MAC == "jean-zay") then
else if ($MAC == "eos") then
#-------------------------------- ld (centos6) -----------------------------------------
ELSAPROD x86_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Modules
foreach x (`(echo "" ; module -t list) | & grep intel`)
module unload $x
Expand All @@ -396,7 +397,7 @@ else if ($MAC == "eos") then
else if ($MAC == "spiro") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
foreach x (`(echo "" ; module -t list) | & grep intel`)
Expand All @@ -414,7 +415,7 @@ else if ($MAC == "spiro") then
else if ($MAC == "spiro_sky") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_sky_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
foreach x (`(echo "" ; module -t list) | & grep intel`)
Expand All @@ -431,7 +432,7 @@ else if ($MAC == "spiro_sky") then
else if ($MAC == "spiro_cas") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_cas_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
foreach x (`(echo "" ; module -t list) | & grep intel`)
Expand All @@ -448,7 +449,7 @@ else if ($MAC == "spiro_cas") then
else if ($MAC == "topaze") then
#------------------------------- topaze ccrt proc amd milan --------------------------------------
setenv ELSAPROD topaze_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
foreach x (`(echo "" ; module -t list) | & grep intel`)
module unload $x
Expand All @@ -465,7 +466,7 @@ else if ($MAC == "topaze") then
else if ($MAC == "spiro_amdRM") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_amdrm_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 32
foreach x (`(echo "" ; module -t list) | & grep intel`)
Expand All @@ -483,7 +484,7 @@ else if ($MAC == "spiro_amdRM") then
else if ($MAC == "spiro_amdNP") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_amdnp_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 32
foreach x (`(echo "" ; module -t list) | & grep intel`)
Expand All @@ -500,7 +501,7 @@ else if ($MAC == "spiro_amdNP") then
else if ($MAC == "spiro_socle6") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
# Set next two lines only if python is not python
Expand All @@ -516,7 +517,7 @@ else if ($MAC == "spiro_socle6") then
else if ($MAC == "spiro_sonics") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD linux64
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
setenv PYTHONEXE python3
Expand All @@ -527,15 +528,15 @@ else if ($MAC == "spiro_sonics") then
else if ($MAC == "spiro_python2") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module load CFD/4.0-intel-17.impi
# Number of threads
setenv OMP_NUM_THREADS 24

else if ($MAC == "spiro_anaconda") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_acda
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
# Set next two lines only if python is not python
Expand All @@ -548,7 +549,7 @@ else if ($MAC == "spiro_anaconda") then
else if ($MAC == "spiro_el8") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_el8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
setenv PYTHONEXE python3
Expand All @@ -573,7 +574,7 @@ else if ($MAC == "spiro_el8") then
else if ($MAC == "spiro_gcc") then
#----------------------------- spiro -----------------------------------------
setenv ELSAPROD spiro_gcc
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Nbre de threads
setenv OMP_NUM_THREADS 24
module purge
Expand All @@ -590,7 +591,7 @@ else if ($MAC == "spiro_gcc") then
else if ($MAC == "spiro_coda") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_coda
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
setenv PYTHONEXE python3
Expand All @@ -599,7 +600,7 @@ else if ($MAC == "spiro_coda") then
else if ($MAC == "spiro_pgi") then
#------------------------------- spiro --------------------------------------
setenv ELSAPROD spiro_pgi
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 24
# Set next two lines only if python is not python
Expand All @@ -614,7 +615,7 @@ else if ($MAC == "spiro_pgi") then
else if ($MAC == "spiro_gpu") then
#----------------------------- spiro gpu ------------------------------------
setenv ELSAPROD spiro_gpu
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
source /etc/profile.d/modules-onera.csh
module purge
#module load python/3.10.8-gnu831
Expand All @@ -637,7 +638,7 @@ else if ($MAC == "spiro_gpu") then
else if ($MAC == "juno") then
#------------------------------- juno --------------------------------------
setenv ELSAPROD juno
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 48
source /etc/profile.d/modules-onera.csh
Expand All @@ -663,7 +664,7 @@ else if ($MAC == "juno") then
else if ($MAC == "juno_gcc") then
#----------------------------- juno gcc -----------------------------------------
setenv ELSAPROD juno_gcc
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Nbre de threads
setenv OMP_NUM_THREADS 48
source /etc/profile.d/modules-onera.csh
Expand All @@ -687,7 +688,7 @@ else if ($MAC == "juno_gcc") then
else if ($MAC == "juno_gpu") then
#----------------------------- juno gpu ------------------------------------
setenv ELSAPROD juno_gpu
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
source /etc/profile.d/modules-onera.csh
module purge
#module load python/3.10.8-gnu831
Expand All @@ -710,7 +711,7 @@ else if ($MAC == "juno_gpu") then
else if ($MAC == "juno_coda") then
#------------------------------- juno --------------------------------------
setenv ELSAPROD juno_coda
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 48
setenv PYTHONEXE python3
Expand All @@ -719,7 +720,7 @@ else if ($MAC == "juno_coda") then
else if ($MAC == "sator_brw") then
#------------------------------- sator for broadwell ----------------------------------
setenv ELSAPROD sat_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module purge
module load python/3.7.4-intel2120
module load hdf5/1.10.5-intel2120-impi
Expand All @@ -737,7 +738,7 @@ else if ($MAC == "sator_brw") then
else if ($MAC == "sator_sky") then
#------------------------------- sator for skylake ------------------------------------
setenv ELSAPROD sat_sky_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module purge
#module load socle-cfd/5.0-intel2120-impi
module load python/3.7.4-intel2120
Expand All @@ -753,7 +754,7 @@ else if ($MAC == "sator_sky") then
else if ($MAC == "sator_cas") then
#------------------------------- sator for cascade ------------------------------------
setenv ELSAPROD sat_cas_r8
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
module purge
#module load socle-cfd/5.0-intel2120-impi
module load python/3.7.4-intel2120
Expand All @@ -772,7 +773,7 @@ else if ($MAC == "sator_cas") then
else if ($MAC == "sator_sph") then
#------------------------------- sator for saphire ------------------------------------
setenv ELSAPROD sat_sph
setenv ELSAPROD "$ELSAPROD$INTTYPE"
setenv ELSAPROD "$ELSAPROD$INTTYPE$DBGMODE"
# Number of threads
setenv OMP_NUM_THREADS 48
module purge
Expand Down
Loading

0 comments on commit 803d103

Please sign in to comment.