Changeset 1909 for XIOS/trunk/xios_test_suite/TEST_SUITE/step1.py
- Timestamp:
- 06/19/20 18:57:59 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/xios_test_suite/TEST_SUITE/step1.py
r1907 r1909 7 7 import copy 8 8 9 param_list = ["ATMdomain", "UsingServer2", "NumberClients", "NumberServers", "RatioServer2", "NumberPoolsServer2", "Duration" ]10 param_short_list = ["ATMdom", "Srv2", "NbClnt", "NbSrv", "RatioSrv2", "NbPlSrv2", "Duration" ]9 param_list = ["ATMdomain", "UsingServer2", "NumberClients", "NumberServers", "RatioServer2", "NumberPoolsServer2", "Duration", "InfoLevel"] 10 param_short_list = ["ATMdom", "Srv2", "NbClnt", "NbSrv", "RatioSrv2", "NbPlSrv2", "Duration", "Info"] 11 11 12 12 mode=os.getenv("mode") … … 38 38 default_param = json.load(f) 39 39 f.close() 40 return default_param[0] 40 l = list(default_param[0].items()) 41 l.sort() 42 def_param=dict(l) 43 return def_param 41 44 42 45 def generate_job(fn, n): … … 62 65 fh.write("#MSUB -Q test\n") 63 66 fh.write("#MSUB -m work,scratch\n") 64 fh.write("source ../../../BUILD/build_"+arch+"_"+mode+"/arch.env\n") 67 fh.write("cp ../../build_"+arch+"_"+mode+"/bin/generic_testcase.exe ./\n") 68 fh.write("source ../../build_"+arch+"_"+mode+"/arch.env\n") 65 69 fh.write("ccc_mprun -n "+str(n)+" generic_testcase.exe\n") 66 70 … … 81 85 fh.write("ulimit -c 0\n") 82 86 fh.write("cd ${SLURM_SUBMIT_DIR}\n") 83 fh.write("source ../../../BUILD/build_"+arch+"_"+mode+"/arch.env\n") 87 fh.write("cp ../../build_"+arch+"_"+mode+"/bin/generic_testcase.exe ./\n") 88 fh.write("source ../../build_"+arch+"_"+mode+"/arch.env\n") 84 89 fh.write("source $I_MPI_ROOT/intel64/bin/mpivars.sh release_mt\n") 85 90 fh.write("srun generic_testcase.exe") … … 90 95 if machine=="irene": 91 96 with open("full_job_"+arch+"_"+mode+".sh", "a") as fh: 92 fh.write("\ncd ${location}/"+location+"; ccc_mprun -E \'--exclusive\' -n "+str(n)+" generic_testcase.exe > output .out 2> error.out &\n")97 fh.write("\ncd ${location}/"+location+"; ccc_mprun -E \'--exclusive\' -n "+str(n)+" generic_testcase.exe > output_"+arch+"_"+mode+".out 2> error_"+arch+"_"+mode+".out &\n") 93 98 fh.write("PIDS+=($!)\n") 94 99 fh.write("CONFIGS+=("+location+")\n") 95 100 if machine=="jeanzay": 96 101 with open("full_job_"+arch+"_"+mode+".sh", "a") as fh: 97 fh.write("\ncd ${location}/"+location+"; srun --exclusive -n "+str(n)+" generic_testcase.exe > output .out 2> error.out &\n")102 fh.write("\ncd ${location}/"+location+"; srun --exclusive -n "+str(n)+" generic_testcase.exe > output_"+arch+"_"+mode+".out 2> error_"+arch+"_"+mode+".out &\n") 98 103 99 104 def main(): … … 108 113 fh.write("#MSUB -r XIOS\n") 109 114 fh.write("#MSUB -eo\n") 110 fh.write("#MSUB -o client_output.out\n")111 fh.write("#MSUB -e client_error.err\n")115 fh.write("#MSUB -o output_"+arch+"_"+mode+".out\n") 116 fh.write("#MSUB -e error_"+arch+"_"+mode+".err\n") 112 117 fh.write("#MSUB -c 1\n") 113 118 fh.write("#MSUB -n "+str(nb_proc_irene)+"\n") … … 121 126 fh.write("export location="+os.getcwd()+"\n") 122 127 fh.write("export log_location="+os.getcwd()+"\n") 123 fh.write("source ../BUILD/build_"+arch+"_"+mode+"/arch.env\n")128 fh.write("source build_"+arch+"_"+mode+"/arch.env\n") 124 129 fh.write("echo \"parallel launch arch="+arch+" mode="+mode+"\" >> ${log_location}/Log.txt\n") 125 130 fh.write("date >> ${log_location}/Log.txt\n") … … 133 138 fh.write("#====================================================\n") 134 139 fh.write("#SBATCH --ntasks="+str(nb_proc_jz)+"\n") 140 fh.write("#SBATCH -o output_"+arch+"_"+mode+".out\n") 141 fh.write("#SBATCH -e error_"+arch+"_"+mode+".out\n") 135 142 fh.write("#SBATCH --hint=nomultithread\n") 136 143 fh.write("#SBATCH -t 00:10:00\n") … … 138 145 fh.write("ulimit -c 0\n") 139 146 fh.write("cd ${SLURM_SUBMIT_DIR}\n") 140 fh.write("source ../BUILD/build_"+arch+"_"+mode+"/arch.env\n")147 fh.write("source build_"+arch+"_"+mode+"/arch.env\n") 141 148 fh.write("source $I_MPI_ROOT/intel64/bin/mpivars.sh release_mt\n") 142 149 fh.write("export location="+os.getcwd()+"\n") … … 179 186 mystr = mystr.replace(":", "") 180 187 mystr = mystr.replace("u'", "") 188 mystr = mystr.replace("b'", "") 181 189 mystr = mystr.replace("'", "") 182 190 mystr = mystr.replace(" ", "_")
Note: See TracChangeset
for help on using the changeset viewer.