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

Re: [Condor-users] Executable that produce graphics (e.g. histograms)



> here's my new SUBMIT FILE:
> ##########################
> Universe   = vanilla
> #Executable = job.sh  #using the script job.sh
> Executable = root
> 
> Log        = job.log
> Output     = job.out
> Error      = job.error
> 
> should_transfer_files = YES
> when_to_transfer_output = ON_EXIT
> 
> #transfer_input_files  = root, analysis.root, analysis.C
> transfer_input_file = analysis.root, analysis.C
> 
> Arguments = analysis.C, analysis.png

Arguments should be as they appear on the command line.

I thought you said you invoke it locally as

root analysis.C

in which case, 
arguments = analysis.C
is what you want

Normally you wouldn't have commas in an argument list on command line,
and I thought you only had the one param.

You shouldn't have to worry about mentioning analysis.png
since condor should return it automatically

> Queue
> ##########################################
> 
> Those lines with # are the modifications when I use the job.sh script.
> And still I got the same error:

lets leave job.sh just now and try and run it without.

Next question:

where is "root", are you getting it from local directory or is it in
your path somewhere? 

> %cat analysis.error
> root: can't figure out DISPLAY, set it manually

I suspect you would have to open your DISPLAY on your local machine
for X access from ALL potential condor execute nodes for this to work.
Can you not write a client script that 
a) submits graphical job to condor system where graphics are put in a .png file
b) does a condor_wait till job finishes
c) displays the resulting .png file on screen

> > It looks like "root" needs at least one environment 
> variable setting.
> > the "environment" setting can be used for that in your file.
> > Check what $ROOTSYS is in your submission machine, and ensure that
> > anything it
> > refers to is available at the remote end.
> 
> I am running this job only on the submmitting machine (the central
> manager) turning the other nodes OFF. How do I specify specific
> environment settings on the submit file?

I think this has changed slightly from 6.6 to 6.8, but something along the lines
of the following (you may need to check in manual for your version)
http://www.cs.wisc.edu/condor/manual/v6.8/condor_submit.html
environment=ROOTSYS=/bin/abcdefg

note in old syntax, "|" is used to separate env vars in Windows and ";"
on unix. New syntax is different, I haven't used it.

> >> %cat analysis.error
> >> root: can't figure out DISPLAY, set it manually
> >
> > This sounds like it is trying to write to your XWIN display which
> > isn't goign to be much use in a batch environment.
> 
> There's a figure display...the graph pops out at the same 
> time it is saved
> as analysis.png file. It is okay for me if the graph doesn't 
> show in the
> XWIN after the job finishes, what I need is the output file which is
> analysis.png. (How can I make this output appear in my 
> working directory?)

Is there an option to root to tell it NOT to do the graphical presentation
and just dump the file? If so, use that and make the 
arguments string look like the corresponding command line.

GL

JK