- Timestamp:
- Apr 24, 2015, 6:31:45 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippScripts/scripts/sc_prepare_run.pl (modified) (1 diff)
-
ippScripts/scripts/sc_remote_exec.pl (modified) (1 diff)
-
ippconfig/recipes/remote_hosts.config (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/sc_prepare_run.pl
r38168 r38186 304 304 print COMMAND "#!/bin/tcsh\n"; 305 305 print COMMAND "##### Moab controll lines\n"; 306 print COMMAND "#MSUB -l nodes=${node_req}:ppn=${proc_per_node},walltime=${time_req}:00:00\n"; ## CHECK RESOURCES 307 print COMMAND "#MSUB -j oe\n"; 308 print COMMAND "#MSUB -V\n"; 309 print COMMAND "#MSUB -o ${remote_root}/stask_logs/${stage}.${remote_id}.out\n"; 306 if ($remote_recipe{SCHEDULER} eq 'MOAB') { 307 print COMMAND "#MSUB -l nodes=${node_req}:ppn=${proc_per_node},walltime=${time_req}:00:00\n"; ## CHECK RESOURCES 308 print COMMAND "#MSUB -j oe\n"; 309 print COMMAND "#MSUB -V\n"; 310 print COMMAND "#MSUB -o ${remote_root}/stask_logs/${stage}.${remote_id}.out\n"; 311 } 312 elsif ($remote_recipe{SCHEDULER} eq 'SLURM') { 313 print COMMAND "###### sbatch control lines\n"; 314 print COMMAND "#SBATCH --time ${time_req}:00:00\n"; 315 print COMMAND "#SBATCH --nodes ${node_req}\n"; 316 print COMMAND "#SBATCH --open-mode=append\n"; 317 print COMMAND "#SBATCH --export=ALL\n"; 318 print COMMAND "#SBATCH --exclusive\n"; 319 } 320 else { 321 &my_die("No scheduler defined", $remote_id, 0, 'fail_state'); 322 } 323 310 324 print COMMAND "date\n"; 311 325 print COMMAND 'srun -n $SLURM_JOB_NUM_NODES -m cyclic -l /bin/hostname | sort -n | awk \'{printf "%s\n", $2}\' > hosts.${SLURM_JOB_ID}' . "\n"; -
trunk/ippScripts/scripts/sc_remote_exec.pl
r38180 r38186 171 171 # Run real command 172 172 my (undef,$remote_command) = &uri_convert($uri_command); 173 my $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command"); 173 my $ssh_exec_stdout; 174 175 if ($remote_recipe{SCHEDULER} eq 'MOAB') { 176 $ssh_exec_stdout = &ssh_exec_command("msub -V $remote_command"); 177 } 178 elsif ($remote_recipe{SCHEDULER} eq 'SLURM') { 179 $ssh_exec_stdout = &ssh_exec_command("sbatch $remote_command"); 180 } 181 else { 182 &my_die("No scheduler defined", $remote_id, 0, 'pending'); 183 } 174 184 if ($#{ $ssh_exec_stdout } != -1) { # Parse the output 175 185 $job_id = ${ $ssh_exec_stdout }[0]; -
trunk/ippconfig/recipes/remote_hosts.config
r38168 r38186 18 18 # This is used to decide if we bring back warp images, and if stack should ask for local copies. 19 19 TRANSFER_WARP_IMAGES BOOL FALSE 20 21 SCHEDULER STR MOAB 20 22 21 23 PROC_PER_NODE S32 24 … … 39 41 TRANSFER_WARP_IMAGES BOOL FALSE 40 42 43 SCHEDULER STR SLURM 44 41 45 PROC_PER_NODE S32 20 42 46 MIN_NODES S32 1
Note:
See TracChangeset
for help on using the changeset viewer.
