Changeset 2501 for palm/trunk
- Timestamp:
- Sep 26, 2017 11:41:55 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrun
r2499 r2501 27 27 # ----------------- 28 28 # $Id$ 29 # default value for number of cores (option -X) set to 1 30 # bugfix for mechanism which overwrites configuration file settings with values 31 # provided by palmrun options 32 # 33 # 2499 2017-09-22 16:47:58Z kanani 29 34 # option -h named configuration identifier 30 35 # … … 65 70 compiler_name_ser="" 66 71 compiler_options="" 67 cores= ""72 cores=1 68 73 cores_atmos=0 69 74 cores_ocean=0 … … 116 121 source_list="" 117 122 source_path="" 118 tasks_per_node= ""123 tasks_per_node=0 119 124 threads_per_task=1 120 125 tmpcreate=false … … 179 184 (j) running_in_batch_mode=true;; 180 185 (k) keep_data_from_previous_run=true; prc="$prc -k";; 181 (m) memory=$OPTARG; prc="$prc -m$OPTARG";;186 (m) palmrun_memory=$OPTARG; prc="$prc -m$OPTARG";; 182 187 (M) makefile=$OPTARG; prc="$prc -M$OPTARG";; 183 188 (O) use_openmp=true; threads_per_task=$OPTARG; prc="$prc -O$OPTARG";; … … 186 191 (R) return_address=$OPTARG;; 187 192 (s) source_list=$OPTARG;; 188 (t) cpumax=$OPTARG; prc="$prc -t$OPTARG";;193 (t) palmrun_cpumax=$OPTARG; prc="$prc -t$OPTARG";; 189 194 (T) palmrun_tasks_per_node=$OPTARG; prc="$prc -T$OPTARG";; 190 195 (u) remote_username=$OPTARG; prc="$prc -u$OPTARG";; … … 193 198 (w) max_par_io_str=$OPTARG; prc="$prc -w$OPTARG";; 194 199 (x) do_trace=true;set -x; prc="$prc -x";; 195 (X) cores=$OPTARG; prc="$prc -X$OPTARG";;200 (X) palmrun_cores=$OPTARG; prc="$prc -X$OPTARG";; 196 201 (y) ocean_file_appendix=true; prc="$prc -y";; 197 202 (Y) run_coupled_model=true; coupled_dist=$OPTARG; prc="$prc -Y'$OPTARG'";; … … 568 573 569 574 575 # VALUES OF PALMRUN-OPTIONS OVERWRITE THOSE FROM THE CONFIGURATION-FILE 576 [[ $palmrun_memory != 0 ]] && memory=$palmrun_memory 577 [[ $palmrun_cpumax != "" ]] && cpumax=$palmrun_cpumax 578 [[ "$palmrun_cores" != "" ]] && cores=$palmrun_cores 579 [[ "$max_par_io_str" != "" ]] && maximum_parallel_io_streams=$max_par_io_str 580 [[ "$palmrun_tasks_per_node" != "" ]] && tasks_per_node=$palmrun_tasks_per_node 581 582 583 570 584 # EVALUATE MODEL COUPLING FEATURES (OPTION -Y) 571 585 if [[ $run_coupled_model = true ]] … … 587 601 588 602 fi 589 590 591 # SAVE VALUES OF PALMRUN-OPTIONS IN ORDER TO OVERWRITE592 # THOSE VALUES GIVEN IN THE CONFIGURATION-FILE593 palmrun_memory=$memory594 palmrun_cpumax=$cpumax595 palmrun_cores=$cores596 597 598 # VALUES OF PALMRUN-OPTIONS OVERWRITE THOSE FROM THE CONFIGURATION-FILE599 [[ $palmrun_memory != 0 ]] && memory=$palmrun_memory600 [[ $palmrun_cpumax != 0 ]] && cpumax=$palmrun_cpumax601 [[ "$palmrun_cores" != "" ]] && cores=$palmrun_cores602 [[ "$max_par_io_str" != "" ]] && maximum_parallel_io_streams=$max_par_io_str603 [[ "$palmrun_tasks_per_node" != "" ]] && tasks_per_node=$palmrun_tasks_per_node604 605 603 606 604 … … 846 844 # CHECK, IF THE NUMBER OF CORES PER NODE HAS BEEN GIVEN UND IF IT IS AN 847 845 # INTEGRAL DIVISOR OF THE TOTAL NUMBER OF CORES GIVEN BY OPTION -X 848 if [[ "$tasks_per_node" = ""]]846 if [[ $tasks_per_node = 0 ]] 849 847 then 850 848 printf "\n" … … 2348 2346 [[ "$cores" != "" ]] && palmrun_com=${palmrun_com}" -X $cores" 2349 2347 [[ $use_openmp = true ]] && palmrun_com=${palmrun_com}" -O $threads_per_task" 2350 [[ "$tasks_per_node" != ""]] && palmrun_com=${palmrun_com}" -T $tasks_per_node"2348 [[ $tasks_per_node != 0 ]] && palmrun_com=${palmrun_com}" -T $tasks_per_node" 2351 2349 [[ $delete_temporary_catalog = false ]] && palmrun_com=${palmrun_com}" -B" 2352 2350 [[ "$ocean_file_appendix" = true ]] && palmrun_com=${palmrun_com}" -y"
Note: See TracChangeset
for help on using the changeset viewer.