~ubuntu-branches/ubuntu/trusty/nordugrid-arc/trusty

« back to all changes in this revision

Viewing changes to src/services/a-rex/lrms/condor/submit-condor-job.in

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2013-11-29 13:39:10 UTC
  • mfrom: (3.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20131129133910-sy6ayoavphc5hozs
Tags: 4.0.0-1
4.0.0 Release (Closes: #715131) (LP: #1049798)

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
 
154
154
        # source RTE script
155
155
#        $script .= ". \Q$ENV{RUNTIME_CONFIG_DIR}/$r\E 0 $r_args>&2\n";
156
 
        $script .= "\nsourcewithargs() {\n script=\$1;shift;. \$script\n } ; sourcewithargs \Q$ENV{RUNTIME_CONFIG_DIR}/$r\E 0 $r_args>&2\n";
 
156
        $script .= "\nsourcewithargs() {\n script=\$1;shift;. \$script\n } ; sourcewithargs \Q$ENV{RUNTIME_CONFIG_DIR}/$r\E 0 $r_args >&2\n";
157
157
        $script .= "ret=\$?\n";
158
158
 
159
159
        # print joboption_* variables to stdout. First export them, then use perl for printing.
410
410
        $output .= "Requirements = (" . (join ") && (", @requirements) . ")\n";
411
411
    }
412
412
 
 
413
    if($grami{joboption_exclusivenode} eq "true"){
 
414
        $output .= "+RequiresWholeMachine=True\n";
 
415
    }
 
416
 
413
417
    # Option to force Condor to transfer of input and output files by itself
414
418
    if ($config{shared_filesystem} =~ /^no/i && notnull($grami{joboption_inputfile_0})) { 
415
419
        $output .= "Transfer_input_files = ";
471
475
    #   6. hardcoded limit on 1 GB
472
476
    $grami{joboption_memory} ||= $config{defaultmemory} || $config{service}{defaultmemory} || $config{MaxVirtualMemory} || $config{service}{MaxVirtualMemory} || 1000;
473
477
    $output .= "+JobMemoryLimit = ".int(1024*$grami{joboption_memory})."\n";
474
 
    $remove .= " || ImageSize > JobMemoryLimit";
 
478
    $remove .= " || ResidentSetSize > JobMemoryLimit";
475
479
    warn "$0: Setting memory limit\n";
476
480
 
 
481
    $output .= "request_memory = $grami{joboption_memory}\n";
 
482
    $output .= "request_cpus = $grami{joboption_count}\n";
477
483
    $output .= "GetEnv = True\n" .
478
484
               "Universe = vanilla\n" .
479
 
               "Notification = Always\n" .
 
485
               "Notification = Never\n" .
480
486
#              "When_to_transfer_output = ON_EXIT\n" .
481
487
               "Periodic_remove = $remove\n" .
482
488
               "Queue\n";