[Swift-devel] patch for condor provider

Glen Hocky hockyg at uchicago.edu
Thu Jun 28 14:16:09 CDT 2012


Hey everyone. I have a small patch to suggest for the condor provider.

For accounting group parameter, which I have added, the accounting group
apparently must be specified in quotes, i.e.

+AccountingGroup = "group_friends.hockyg"

so in my sites file I have

        <profile namespace="globus"
key="AccountingGroup">"group_friends.hockyg"</profile>

but perhaps you would rather modify my patch such that this is specified
sans quotes

Best,
Glen


svn diff
modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/condor/CondorExecutor.java
Index:
modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/condor/CondorExecutor.java
===================================================================
---
modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/condor/CondorExecutor.java
(revision
3420)
+++
modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/condor/CondorExecutor.java
(working
copy)
@@ -52,6 +52,9 @@
  if ("MPI".equals(type)) {
  wr.write("universe = MPI\n");
  }
+ else if ("parallel".equals(type)) {
+ wr.write("universe = parallel\n");
+ }
  else if("grid".equals(type)) {
  grid = true;
  String gridResource = (String) spec.getAttribute("gridResource");
@@ -68,10 +71,15 @@
  else {
  wr.write("universe = vanilla\n");
  }
+
+                //set account group if specified
+ writeAttr("AccountingGroup", "+AccountingGroup = ", wr);
+
  if ("true".equals(spec.getAttribute("holdIsFailure"))) {
  wr.write("periodic_remove = JobStatus == 5\n");
  }
  writeAttr("count", "machine_count = ", wr);
+ writeAttr("count", "request_cpus = ", wr);
  if (spec.getStdInput() != null) {
  wr.write("input = " + quote(spec.getStdInput()) + "\n");
  }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20120628/10ca8ba7/attachment.html>


More information about the Swift-devel mailing list