| 83 | |
| 84 | # Job Header for MPI - MPI/OMP with libIGCM # |
| 85 | ## Forced model ## |
| 86 | ### MPI ### |
| 87 | To launch a job on XXX MPI tasks |
| 88 | {{{ |
| 89 | #!/bin/ksh |
| 90 | # ###################### |
| 91 | # ## ADA IDRIS ## |
| 92 | # ###################### |
| 93 | # Job name |
| 94 | # @ job_name = MyJob |
| 95 | # Job type |
| 96 | # @ job_type = parallel |
| 97 | # Standard output file name |
| 98 | # @ output = Script_Output_MyJob.000001 |
| 99 | # Error output file name |
| 100 | # @ error = Script_Output_MyJob.000001 |
| 101 | # Total number of tasks |
| 102 | # @ total_tasks = XXX |
| 103 | # @ environment = "BATCH_NUM_PROC_TOT=XXX" |
| 104 | # Maximum CPU time per task hh:mm:ss |
| 105 | # @ wall_clock_limit = 1:00:00 |
| 106 | # End of the header options |
| 107 | # @ queue |
| 108 | }}} |
| 109 | |
| 110 | |
| 111 | ### hybrid MPI-OMP ### |
| 112 | [[NoteBox(note,Hybrid version are only available with _v6 configurations, 600px)]] |
| 113 | |
| 114 | To launch a job on XXX MPI tasks and YYY threads OMP on each task |
| 115 | * first you need to modify your config.card |
| 116 | {{{ |
| 117 | ATM= (gcm.e, lmdz.x, XXXMPI, YYYOMP) |
| 118 | }}} |
| 119 | * second you need to modify your job header |
| 120 | {{{ |
| 121 | #!/bin/ksh |
| 122 | # ###################### |
| 123 | # ## ADA IDRIS ## |
| 124 | # ###################### |
| 125 | # Job name |
| 126 | # @ job_name = MyJob |
| 127 | # Job type |
| 128 | # @ job_type = parallel |
| 129 | # Standard output file name |
| 130 | # @ output = Script_Output_MyJob.000001 |
| 131 | # Error output file name |
| 132 | # @ error = Script_Output_MyJob.000001 |
| 133 | # Total number of tasks |
| 134 | # @ total_tasks = XXX |
| 135 | # @ environment = "BATCH_NUM_PROC_TOT=XXX*YYY" |
| 136 | # Maximum CPU time per task hh:mm:ss |
| 137 | # @ wall_clock_limit = 1:00:00 |
| 138 | # Specific option for OpenMP parallelization: Number of OpenMP threads per MPI task |
| 139 | # @ parallel_threads = YYY |
| 140 | # End of the header options |
| 141 | # @ queue |
| 142 | }}} |
| 143 | |
| 144 | |
| 145 | ## Coupled model ## |
| 146 | ### MPI ### |
| 147 | To launch a job on XXX (32) MPI tasks. 5 for NEMO, 1 for oasis and 26 MPI tasks for LMDZ by default for IPSLCM5A. |
| 148 | {{{ |
| 149 | #!/bin/ksh |
| 150 | # ###################### |
| 151 | # ## ADA IDRIS ## |
| 152 | # ###################### |
| 153 | # Job name |
| 154 | # @ job_name = MyCoupledJob |
| 155 | # Job type |
| 156 | # @ job_type = parallel |
| 157 | # Standard output file name |
| 158 | # @ output = Script_Output_MyCoupledJob.000001 |
| 159 | # Error output file name |
| 160 | # @ error = Script_Output_MyCoupledJob.000001 |
| 161 | # Total number of tasks |
| 162 | # @ total_tasks = 32 |
| 163 | # @ environment = "BATCH_NUM_PROC_TOT=32" |
| 164 | # Maximum CPU time per task hh:mm:ss |
| 165 | # @ wall_clock_limit = 1:00:00 |
| 166 | # End of the header options |
| 167 | # @ queue |
| 168 | }}} |
| 169 | |
| 170 | |
| 171 | ### hybrid MPI-OMP ### |
| 172 | [[NoteBox(note,Hybrid version are only available with _v6 configurations, 600px)]] |
| 173 | |
| 174 | To launch a job on XXX (24) MPI tasks and YYY (2) threads OMP for LMDZ, ZZZ (7) MPI tasks for NEMO and SSS (1) XIOS servers : |
| 175 | |
| 176 | * first you need to modify your config.card. On ada, this is working for IPSLCM6_rc0 (IPSLCM6A_VLR) : |
| 177 | {{{ |
| 178 | ATM= (gcm.e, lmdz.x, 24MPI, 2OMP) |
| 179 | SRF= ("" ,"" ) |
| 180 | SBG= ("" ,"" ) |
| 181 | OCE= (opa, opa.xx , 7MPI) |
| 182 | ICE= ("" ,"" ) |
| 183 | MBG= ("" ,"" ) |
| 184 | CPL= ("", "" ) |
| 185 | IOS= (xios_server.exe, xios.x, 1MPI) |
| 186 | }}} |
| 187 | * second you need to modify your job header |
| 188 | {{{ |
| 189 | #!/bin/ksh |
| 190 | # ###################### |
| 191 | # ## ADA IDRIS ## |
| 192 | # ###################### |
| 193 | # Job name |
| 194 | # @ job_name = MyCoupledJob |
| 195 | # Job type |
| 196 | # @ job_type = parallel |
| 197 | # Standard output file name |
| 198 | # @ output = Script_Output_MyCoupledJob.000001 |
| 199 | # Error output file name |
| 200 | # @ error = Script_Output_MyCoupledJob.000001 |
| 201 | # Total number of tasks |
| 202 | # @ total_tasks = 32 |
| 203 | # @ environment = "BATCH_NUM_PROC_TOT=56" |
| 204 | # Maximum CPU time per task hh:mm:ss |
| 205 | # @ wall_clock_limit = 1:00:00 |
| 206 | # Specific option for OpenMP parallelization: Number of OpenMP threads per MPI task |
| 207 | # @ parallel_threads = 2 |
| 208 | # End of the header options |
| 209 | # @ queue |
| 210 | }}} |
| 211 | |