[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [condor-users] Computation in condor_submit macros

On Wednesday 26 November 2003 12:12 pm, Albert Reuther wrote:
> Hello,
> I am trying to use submit macros to alter specify a portion of the
> input filenames. (This would extend also to output and error names,
> too.) Specifically, I'm trying to specify the input file with a
> process number ($(PROCESS)) incremented by one. So instead of the
> first process having an input file of "input.0.dat" that was
> generated with
> input = input.$(PROCESS).dat,
> it would be "input.1.dat". To derive this, I tried defining my own macro:
> PROCPLUS1 = ($(PROCESS) + 1), and substituted it into
> input = input.$(PROCPLUS1).dat
> but this didn't work because it looked like it only performed a
> string substitution.

This is correct.

> I've looked in the condor_submit "man" page
> <http://www.cs.wisc.edu/condor/manual/v6.6/condor_submit.html#33200>
> for clues and even
> <http://computing.ee.ethz.ch/programming/condor.en.html>, but
> everything seems to indicate that the Condor submit macros are only
> text substitution tools and cannot do any mathematical computations.
> Is that true?
> Any ideas?

Perhaps 'ClusterId' and / or 'JobId' would server you better?  See section 2.5 
"Submitting a Job" of the Condor manual.


           <<< Follow the white rabbit. >>>
 /`-_    Nicholas R. LeRoy               The Condor Project
{     }/ http://www.cs.wisc.edu/~nleroy  http://www.cs.wisc.edu/condor
 \    /  nleroy@xxxxxxxxxxx              The University of Wisconsin
 |_*_|   608-265-5761                    Department of Computer Sciences

Condor Support Information:
To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
unsubscribe condor-users <your_email_address>