Changeset 1725


Ignore:
Timestamp:
09/26/19 17:13:09 (5 years ago)
Author:
yushan
Message:

Generic_testcase : Update for Jean-Zay

Location:
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE
Files:
2 deleted
16 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/check.py

    r1723 r1725  
    8181                f=open("checkfile.def", "r") 
    8282                h=open("report.txt", "a+") 
     83                l=open("report.html", "a+") 
     84                h.write("Config : "+configName+"\n")             
     85                l.write("<p>Config : "+configName+"</p>")        
    8386                for line in f: 
    8487                        line=line.strip() 
     
    8891                                os.system(cmd) 
    8992 
    90                                 h.write("test for "+configName+" for file "+lpurple(line)+"     \t"+yellow('INITIALIZED')+"\n")          
     93                                h.write("test for "+lpurple(line)+"     \t"+yellow('INITIALIZED')+"\n")          
     94                                l.write("<p>test for <font color=\"purple\">"+line+"</font> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"darkorange\">INITIALIZED</font></p>") 
    9195                                print yellow("\n        ****************************************") 
    9296                                print yellow("        ** "+line+" is stored as temporal reference !!! **") 
     
    9498                                 
    9599                f.close() 
     100                h.write("\n") 
     101                l.write("<br>") 
    96102                h.close() 
    97103 
     
    124130 
    125131 
    126  
     132                h.write("Config : "+configName+"\n")     
     133                l.write("<p>Config : "+configName+"</p>")        
    127134                for line in f: 
    128135 
     
    135142 
    136143                                if os.stat("diff.txt").st_size==0: 
    137                                         h.write("test for "+configName+" for file "+lpurple(line)+"     \t"+green('PASSED')+"\n")                
    138                                         l.write("<p>test for "+configName+" for file <font color=\"purple\">"+line+"</font> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"green\">PASSED</font></p>")               
     144                                        h.write("test for "+lpurple(line)+"     \t"+green('PASSED')+"\n")                
     145                                        l.write("<p>test for <font color=\"purple\">"+line+"</font> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"green\">PASSED</font></p>")               
    139146                                        print green("\n        ****************************************") 
    140147                                        print green("        ** "+line+" is valid !!! **") 
     
    145152                                        for gline in g: 
    146153                                                if gline.strip().startswith("0") or ":" in gline : 
    147                                                         h.write("test for "+configName+" for file "+lpurple(line)+"      \t"+green('PASSED')+"\n")               
    148                                                         l.write("<p>test for "+configName+" for file <font color=\"purple\">"+line+"</font> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"green\">PASSED</font></p>")               
     154                                                        h.write("test for "+lpurple(line)+"      \t"+green('PASSED')+"\n")               
     155                                                        l.write("<p>test for <font color=\"purple\">"+line+"</font> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"green\">PASSED</font></p>")               
    149156                                                        print green("\n        ****************************************") 
    150157                                                        print green("        ** "+line+" is valid !!! **") 
    151158                                                        print green("\n        ****************************************") 
    152159                                                else: 
    153                                                         h.write("test for "+configName+" for file "+lpurple(line)+"     \t"+red('FAILED')+"\n")          
    154                                                         l.write("<p>test for "+configName+" for file <font color=\"purple\">"+line+"</font> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"red\">FAILED</font></p>")                 
     160                                                        h.write("test for "+lpurple(line)+"     \t"+red('FAILED')+"\n")          
     161                                                        l.write("<p>test for <font color=\"purple\">"+line+"</font> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color=\"red\">FAILED</font></p>")                 
    155162                                                        print red("\n        **************************************************") 
    156163                                                        print red("        ** "+line+" is NOT valid. Please debugging.. **") 
     
    158165                                        g.close() 
    159166                f.close() 
     167                h.write("\n") 
     168                l.write("<br>") 
    160169                h.close() 
    161170 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/clean_config.sh

    r1722 r1725  
    1 cd test_function/test_average 
    2 rm -rf config_* 
     1bash -c "cd test_function/test_average && rm -rf config_*" 
     2bash -c "cd test_function/test_maximum && rm -rf config_*" 
     3bash -c "cd test_function/test_minimum && rm -rf config_*" 
     4bash -c "cd test_function/test_sum && rm -rf config_*" 
     5bash -c "cd test_scalar_algo && rm -rf config_*" 
     6bash -c "cd test_axis_algo && rm -rf config_*" 
     7bash -c "cd test_domain_algo && rm -rf config_*" 
     8bash -c "cd test_grid_algo && rm -rf config_*" 
    39 
    4 cd ../test_maximum 
    5 rm -rf config_* 
    610 
    7 cd ../test_minimum 
    8 rm -rf config_* 
    9  
    10 cd ../test_sum 
    11 rm -rf config_* 
    12  
    13 cd ../../test_scalar_algo 
    14 rm -rf config_* 
    15  
    16 cd ../test_axis_algo 
    17 rm -rf config_* 
    18  
    19 cd ../test_domain_algo 
    20 rm -rf config_* 
    21  
    22 cd ../test_grid_algo 
    23 rm -rf config_* 
    24  
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/checkfile.def

    r1714 r1725  
    1 #atm_output_1.nc 
    21 
    3 atm_output.nc 
    4 atm_output_copy.nc 
     2atm_output_zoom.nc 
     3#atm_output_inverse.nc 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/context_atm.xml

    r1718 r1725  
    2626        <zoom_axis begin="0" n="5"/> 
    2727    </axis> 
     28 
    2829    <axis id="domain_X_zoom" axis_ref="domain_X"> 
    2930        <zoom_axis begin="0" n="10"/> 
    3031    </axis> 
     32 
    3133    <axis id="domain_Y_zoom" axis_ref="domain_Y"> 
    3234        <zoom_axis begin="3" n="5"/> 
    3335    </axis> 
     36 
    3437  </axis_definition> 
    3538 
     
    149152      <axis axis_ref="domain_X_zoom" /> 
    150153      <axis axis_ref="domain_Y" /> 
    151  
    152     </grid> 
    153  
    154   
    155   
     154    </grid> 
     155 
     156 
     157 
    156158  
    157159  
     
    387389   
    388390 
    389      <file id="atm_output" output_freq="1ts" enabled="true"> 
    390        <field id="fieldXY_zoomY" field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="instant" enabled="true"/> 
    391     </file> 
    392    
    393     <file id="atm_output_copy" output_freq="1ts" enabled="true"> 
    394        <field id="fieldXY_zoomY_copy" field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="once" enabled="true"/> 
    395        <field id="fieldXY_zoomX" field_ref="field_XY" grid_ref="grid_XY_zoom_X" operation="once" enabled="false"/> 
    396     </file> 
     391     <file id="atm_output_zoom" output_freq="1ts" enabled="true"> 
     392       <field field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="instant" enabled="true"/> 
     393     </file> 
    397394 
    398395 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/run_sub_test.sh

    r1723 r1725  
    3535touch report.html 
    3636> report.html 
    37 echo "<p> </p> " >> report.html 
    38 echo "<p> </p> " >> report.html 
     37echo "<br> " >> report.html 
     38echo "<br> " >> report.html 
     39echo "<br> " >> report.html 
    3940echo "<p>testing  <font color="blue">axis</font> algorithms...</p>" >> report.html  
    40 echo "<p> </p> " >> report.html 
     41echo "<br> " >> report.html 
    4142 
    4243nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
     
    5455 
    5556nb_proc=$(python sub_config2.py 2>&1)  
     57nb_jz=$(($nb_proc-1)) 
    5658 
    57 if [$machine_name == irene] 
     59if [[ ($machine_name == irene) ]] 
    5860then 
    5961    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 
     62elif [[($machine_name == ada)]] 
     63then 
     64    echo "Testing on ADA" 
     65    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 
     66elif [[($machine_name == jeanzay)]] 
     67then 
     68    echo "Testing on Jean-Zay"  
     69    # touch srun.conf 
     70    # > srun.conf 
     71    # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 
     72    # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
     73    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 
    6074else 
    61     mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 
     75    echo "other machine" 
    6276fi 
    6377 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/user_params.def

    r1713 r1725  
    1111# e.g. NumberServers = 2, 4, 8   
    1212 
    13 NumberServers = 2, 4 
     13NumberServers = 2 
    1414ATMdomain='lmdz' 
    15 UsingServer2 = 'false', 'true' 
     15UsingServer2 = 'true' 
    1616# Duration = '1d', '2d' 
    1717# NumberPoolsServer2 = 1 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/checkfile.def

    r1714 r1725  
    1 #atm_output_1.nc 
    21 
    32atm_output.nc 
     3 
     4atm_output_expand.nc 
     5 
     6 
     7atm_output_extract.nc 
     8 
     9atm_output_interpolate.nc 
     10 
     11atm_output_zoom.nc 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/context_atm.xml

    r1694 r1725  
    388388    <file id="atm_output" output_freq="1ts" type="one_file" enabled="true"> 
    389389       <!-- <field id="id_fieldXY" field_ref="field_XY" operation="once" enabled="true"/> --> 
    390        <field id="id_fieldX" field_ref="field_X" operation="once" enabled="true"/> 
    391     </file> 
    392  
    393      <file id="atm_output_zoom" output_freq="1ts" enabled="true"> 
    394        <field id="fieldX_zoomX" field_ref="field_X" grid_ref="grid_X_zoom" operation="once" enabled="true"/> 
    395        <!-- <field id="fieldXY_zoomX" field_ref="field_XY" grid_ref="grid_XY_zoom_X" operation="once" enabled="true"/> 
    396        <field id="fieldXY_zoomY" field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="once" enabled="true"/> --> 
     390       <field field_ref="field_X" operation="instant" enabled="true"/> 
     391    </file> 
     392 
     393    <file id="atm_output_expand" output_freq="1ts" enabled="true"> 
     394       <field field_ref="field_X" operation="instant" enabled="true"/> 
     395    </file> 
     396 
     397    <file id="atm_output_extract" output_freq="1ts" enabled="true"> 
     398       <field field_ref="field_X" operation="instant" enabled="true"/> 
     399    </file> 
     400 
     401    <file id="atm_output_interpolate" output_freq="1ts" enabled="true"> 
     402       <field field_ref="field_X" operation="instant" enabled="true"/> 
     403    </file> 
     404 
     405    <file id="atm_output_zoom" output_freq="1ts" enabled="true"> 
     406       <field field_ref="field_X" operation="instant" enabled="true"/> 
    397407    </file> 
    398408 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/run_sub_test.sh

    r1723 r1725  
    3535touch report.html 
    3636> report.html 
    37 echo "<p> </p> " >> report.html 
    38 echo "<p> </p> " >> report.html 
     37echo "<br> " >> report.html 
     38echo "<br> " >> report.html 
     39echo "<br> " >> report.html 
    3940echo "<p>testing  <font color="blue">domain</font> algorithms...</p>" >> report.html  
    40 echo "<p> </p> " >> report.html 
     41echo "<br> " >> report.html 
    4142 
    4243nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
     
    5455 
    5556nb_proc=$(python sub_config2.py 2>&1)  
     57nb_jz=$(($nb_proc-1)) 
    5658 
    57 if [$machine_name == irene] 
     59if [[ ($machine_name == irene) ]] 
    5860then 
    5961    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 
     62elif [[($machine_name == ada)]] 
     63then 
     64    echo "Testing on ADA" 
     65    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 
     66elif [[($machine_name == jeanzay)]] 
     67then 
     68    echo "Testing on Jean-Zay"  
     69    # touch srun.conf 
     70    # > srun.conf 
     71    # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 
     72    # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
     73    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 
    6074else 
    61     mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 
     75    echo "other machine" 
    6276fi 
    6377 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_domain_algo/user_params.def

    r1714 r1725  
    1212 
    1313NumberServers = 2, 4 
    14 UsingServer2 = 'false', 'true' 
     14UsingServer2 = 'true', 'false' 
    1515ATMdomain = 'lmdz' 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/run_sub_test.sh

    r1723 r1725  
    3838touch report.html 
    3939> report.html 
    40 echo "<p> </p> " >> report.html 
    41 echo "<p> </p> " >> report.html 
     40echo "<br> " >> report.html 
     41echo "<br> " >> report.html 
     42echo "<br> " >> report.html 
    4243echo "<p>testing  <font color="blue">average</font> reduce...</p>" >> report.html  
    43 echo "<p> </p> " >> report.html 
     44echo "<br> " >> report.html 
    4445 
    4546 
     
    5859 
    5960nb_proc=$(python sub_config2.py 2>&1)  
     61nb_jz=$(($nb_proc-1)) 
    6062 
    61 if [$machine_name == irene] 
     63if [[ ($machine_name == irene) ]] 
    6264then 
    6365    ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     66elif [[($machine_name == ada)]] 
     67then 
     68    echo "Testing on ADA" 
     69    mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     70elif [[($machine_name == jeanzay)]] 
     71then 
     72    echo "Testing on Jean-Zay"  
     73    # touch srun.conf 
     74    # > srun.conf 
     75    # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 
     76    # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
     77    srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 
    6478else 
    65     mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     79    echo "other machine" 
    6680fi 
    6781 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_maximum/run_sub_test.sh

    r1723 r1725  
    3939touch report.html 
    4040> report.html 
    41 echo "<p> </p> " >> report.html 
    42 echo "<p> </p> " >> report.html 
     41echo "<br> " >> report.html 
     42echo "<br> " >> report.html 
     43echo "<br> " >> report.html 
    4344echo "<p>testing  <font color="blue">maximum</font> reduce...</p>" >> report.html  
    44 echo "<p> </p> " >> report.html 
     45echo "<br> " >> report.html 
    4546 
    4647nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
     
    5859 
    5960nb_proc=$(python sub_config2.py 2>&1)  
     61nb_jz=$(($nb_proc-1)) 
    6062 
    61 if [$machine_name == irene] 
     63if [[ ($machine_name == irene) ]] 
    6264then 
    6365    ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     66elif [[($machine_name == ada)]] 
     67then 
     68    echo "Testing on ADA" 
     69    mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     70elif [[($machine_name == jeanzay)]] 
     71then 
     72    echo "Testing on Jean-Zay"  
     73    # touch srun.conf 
     74    # > srun.conf 
     75    # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 
     76    # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
     77    srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 
    6478else 
    65     mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     79    echo "other machine" 
    6680fi 
    6781 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_minimum/run_sub_test.sh

    r1723 r1725  
    3838touch report.html 
    3939> report.html 
    40 echo "<p> </p> " >> report.html 
    41 echo "<p> </p> " >> report.html 
     40echo "<br> " >> report.html 
     41echo "<br> " >> report.html 
     42echo "<br> " >> report.html 
    4243echo "<p>testing  <font color="blue">minimum</font> reduce...</p>" >> report.html  
    43 echo "<p> </p> " >> report.html 
     44echo "<br> " >> report.html 
    4445 
    4546nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
     
    5758 
    5859nb_proc=$(python sub_config2.py 2>&1)  
     60nb_jz=$(($nb_proc-1)) 
    5961 
    60 if [$machine_name == irene] 
     62if [[ ($machine_name == irene) ]] 
    6163then 
    6264    ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     65elif [[($machine_name == ada)]] 
     66then 
     67    echo "Testing on ADA" 
     68    mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     69elif [[($machine_name == jeanzay)]] 
     70then 
     71    echo "Testing on Jean-Zay"  
     72    # touch srun.conf 
     73    # > srun.conf 
     74    # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 
     75    # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
     76    srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 
    6377else 
    64     mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     78    echo "other machine" 
    6579fi 
    6680 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_sum/run_sub_test.sh

    r1723 r1725  
    3838touch report.html 
    3939> report.html 
    40 echo "<p> </p> " >> report.html 
    41 echo "<p> </p> " >> report.html 
     40echo "<br> " >> report.html 
     41echo "<br> " >> report.html 
     42echo "<br> " >> report.html 
    4243echo "<p>testing  <font color="blue">accumulate</font> reduce...</p>" >> report.html  
    43 echo "<p> </p> " >> report.html 
     44echo "<br> " >> report.html 
    4445 
    4546nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
     
    5758 
    5859nb_proc=$(python sub_config2.py 2>&1)  
     60nb_jz=$(($nb_proc-1)) 
    5961 
    60 if [$machine_name == irene] 
     62if [[ ($machine_name == irene) ]] 
    6163then 
    6264    ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     65elif [[($machine_name == ada)]] 
     66then 
     67    echo "Testing on ADA" 
     68    mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     69elif [[($machine_name == jeanzay)]] 
     70then 
     71    echo "Testing on Jean-Zay"  
     72    # touch srun.conf 
     73    # > srun.conf 
     74    # echo "0-"$nb_jz " ../../../build_prod/bin/generic_testcase.exe">> srun.conf 
     75    #srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
     76    srun -n $nb_proc --mpi=pmi2 ../../../build_prod/bin/generic_testcase.exe 
    6377else 
    64     mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe 
     78    echo "other machine" 
    6579fi 
    6680 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_grid_algo/run_sub_test.sh

    r1723 r1725  
    3535touch report.html 
    3636> report.html 
    37 echo "<p> </p> " >> report.html 
    38 echo "<p> </p> " >> report.html 
     37echo "<br> " >> report.html 
     38echo "<br> " >> report.html 
     39echo "<br> " >> report.html 
    3940echo "<p>testing  <font color="blue">grid</font> algorithms...</p>" >> report.html  
    40 echo "<p> </p> " >> report.html 
     41echo "<br> " >> report.html 
    4142 
    4243nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
     
    5455 
    5556nb_proc=$(python sub_config2.py 2>&1)  
     57nb_jz=$(($nb_proc-1)) 
    5658 
    57 if [$machine_name == irene] 
     59if [[ ($machine_name == irene) ]] 
    5860then 
    5961    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 
     62elif [[($machine_name == ada)]] 
     63then 
     64    echo "Testing on ADA" 
     65    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 
     66elif [[($machine_name == jeanzay)]] 
     67then 
     68    echo "Testing on Jean-Zay"  
     69    # touch srun.conf 
     70    # > srun.conf 
     71    # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 
     72    # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
     73    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 
    6074else 
    61 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 
     75    echo "other machine" 
    6276fi 
    6377 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh

    r1723 r1725  
    3232touch report.html 
    3333> report.html 
    34 echo "<p> </p> " >> report.html 
    35 echo "<p> </p> " >> report.html 
     34echo "<br> " >> report.html 
     35echo "<br> " >> report.html 
     36echo "<br> " >> report.html 
    3637echo "<p>testing  <font color="blue">scalar</font> algorithms...</p>" >> report.html  
    37 echo "<p> </p> " >> report.html 
     38echo "<br> " >> report.html 
    3839 
    3940nb_config=$(python sub_config1.py 2>&1)                                                                                                                     
     
    5152 
    5253nb_proc=$(python sub_config2.py 2>&1)  
     54nb_jz=$(($nb_proc-1)) 
    5355 
    54 if [$machine_name == irene] 
     56if [[ ($machine_name == irene) ]] 
    5557then 
    5658    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe 
    57 else  #machine_name=ada 
     59elif [[($machine_name == ada)]] 
     60then 
     61    echo "Testing on ADA" 
    5862    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 
     63elif [[($machine_name == jeanzay)]] 
     64then 
     65    echo "Testing on Jean-Zay"  
     66    # touch srun.conf 
     67    # > srun.conf 
     68    # echo "0-"$nb_jz " ../../build_prod/bin/generic_testcase.exe">> srun.conf 
     69    # srun --mpi=pmi2 -K1 --multi-prog -m cyclic ./srun.conf  
     70    srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe 
     71else 
     72    echo "other machine" 
    5973fi 
    6074python sub_check.py 
Note: See TracChangeset for help on using the changeset viewer.