[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

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
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
condor_exec.exe: ROOTSYS not set. Set it before trying to run
condor_exec.exe.

So I made a shell script:

job.sh:
#################################
#! /bin/sh
export ROOTSYS=/home/soft/root51200 #ROOT install directory
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

I do not know how to continue now :(

The following is a snippet of StarterLog: I don't know if this might help.
#######################################################
9/29 22:11:30 IWD: /home/condor/condor/local.physics/execute/dir_6095
9/29 22:11:30 Output file:
/home/condor/condor/local.physics/execute/dir_6095/job.out
9/29 22:11:30 Error file:
/home/condor/condor/local.physics/execute/dir_6095/job.error
9/29 22:11:30 About to exec
/home/condor/condor/local.physics/execute/dir_6095/condor_exec.exe
########################################################
But when I try to look at the /home/condor/condor/local.physics/execute/
directory, there was nothing in there! ( the dir_6095 do not exist!)


Any help would be very much appreciated.


Leo

>> Hi all,
>>
>> Does anyone of you tried to use an executable which should produce a
>> graphical output (e.g. histograms or detector's geometry)?
>> How did you do
>> it? How did you modify your submit file or what did you do?
>
> If you program produces ANY output in the working directory of the job,
> then I believe Condor will copy those files back to the submission node.
> It doesn't matter whether those files are binaries, libraries, histograms,
> excel files, csv, or whatever. Whether these binary files will still be
> readable on your submission node is another question.
>
> If your files are being created in a subdirectory then they'll need adding
> to the list of transferred output files. Either that or you arrange for
> the
> files to appear in your job's workign directory (by wrapping call to
> executable
> in a script, remembering to add it to the transfer input files of course,
> or
> by flags to the executable to reroute the results files).
>
> Good luck
>
> JK
>
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>
> The archives can be found at either
> https://lists.cs.wisc.edu/archive/condor-users/
> http://www.opencondor.org/spaces/viewmailarchive.action?key=CONDOR
>