[Swift-devel] patch for condor provider
Michael Wilde
wilde at mcs.anl.gov
Thu Jun 28 14:33:29 CDT 2012
One clarification here: Glen did this mod because the UC3 team requested that he add AccountingGroup to his submit files.
- Mike
----- Original Message -----
> From: "Glen Hocky" <hockyg at uchicago.edu>
> To: "swift-devel" <swift-devel at ci.uchicago.edu>
> Sent: Thursday, June 28, 2012 2:16:09 PM
> Subject: [Swift-devel] patch for condor provider
> 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");
> }
>
>
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel
--
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory
More information about the Swift-devel
mailing list