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

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



> Hi JK,
> 
> I'm using the ROOT system (developed from CERN) to plot the 
> results of my
> simulation. In my working directory, I have
> 
> analysis.root - a root file (contains ntuple) (this is feed 
> to analysis.C)
> analysis.C - code that produce plot/graph out of the 
> analysis.root file
>             - this file should produce a graph and save as 
> analysis.png
> root - binary file (an executable)
>
> To run, I just type (command line)
> % root analysis.C

OK, I understand this.
 
> then, a graph pops out and is saved as analysis.png on my 
> working directory.
> 
> But when I tried to submit it to condor, I used the following:
> 
> SUBMIT FILE:
> #####################################
> Universe   = vanilla
> Executable = root
> transfer_input_files  = root, analysis.C

Do you not need
transfer_input_files  = analysis.C analysis.root
analysis.root needs to go, but root doesn't since 
the "executable" goes by default

You also need:

arguments = analysis.C

> transfer_files        = ALWAYS

what is this line? I can't find it in the 6.8 manual for
condor_

> Log        = analysis.log
> Output     = analysis.out
> Error      = analysis.error
> should_transfer_files = YES
> when_to_transfer_output = ON_EXIT

these are good, although it would be nice if condor team made these
consistent. Too many times I have typed in 
should_transfer_output = YES         # warning!
when_to_transfer_output = ON_EXIT
or
should_transfer_files = YES
when_to_transfer_files = ON_EXIT     # warning!

> Queue
> ######################################
> 
> % cat analysis.error
> condor_exec.exe: ROOTSYS not set. Set it before trying to run
> condor_exec.exe.

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.

> So I made a shell script:
> 
> job.sh:
> #################################
> #! /bin/sh
> export ROOTSYS=/home/soft/root51200 #ROOT install directory

Hmm, I wonder what else it needs that is inside this directory?
This could cause problems.

> export PATH=$PATH:$ROOTSYS/bin
> root analysis.C
> ##################################
> 
> ...then modified the submit file
> SUBMIT FILE (modified):
> #######################################
> Universe   = vanilla
> Executable = job.sh
> transfer_input_files  = root, analysis.C
> transfer_files        = ALWAYS
> Log        = analysis.log
> Output     = analysis.out
> Error      = analysis.error
> should_transfer_files = YES
> when_to_transfer_output = ON_EXIT
> Queue
> ######################################
> 
> %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.

Try the changes above and see how you get on.

> I do not know how to continue now :(
> 
> The following is a snippet of StarterLog: I don't know if 
> this might help.
> ...

Sendign this stuff is useful, but I'd need to see results of having
applied previous changes.

Cheers

John Kewley
j.kewley@xxxxxxxx