Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in generating gridpack using Phantom Generator #3624

Open
sv3048 opened this issue Jan 24, 2024 · 2 comments
Open

Issue in generating gridpack using Phantom Generator #3624

sv3048 opened this issue Jan 24, 2024 · 2 comments

Comments

@sv3048
Copy link
Contributor

sv3048 commented Jan 24, 2024

Dear experts @menglu21 @agrohsje @bbilin !
(cc'ing @vischia )

I am following this twiki here.

https://twiki.cern.ch/twiki/bin/view/CMS/PhantomGeneratorCMS#instructions_to_deploy_a_new_rel

and I had deployed the phantom 1_6 release with phantom_1_6_slc7_amd64_gcc700.tar.gz version and here is compilation log showing its successfully compiled. This release is available now here at /afs/cern.ch/cms/generators/www/phantom/compiled/phantom_1_6_slc7_amd64_gcc700.tar.gz.

log of compilation : log.txt

Now I submitted it using python ./submit_phantom.py ssww.cfg . In this submit_phantom.file I have only changed line 115 [1] and its being changed to : submitfile.write ('export PDFLIBDIR=/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/lhapdf/6.2.1-pafccj3/lib\n').

I have got this library using these steps. [2]
/afs/cern.ch/work/s/sverma/public/Phantom/genproductions/bin/Phantom./submit_phantom.py

The submission log can be found below.
submission_log.txt

everything is perfect but each time I have issue with CONDORfile generation. so I am opening the issue here.
you can find the file here : /afs/cern.ch/work/s/sverma/public/Phantom/genproductions/bin/Phantom/ssww.cfg

Changes done in the ssww.cfg files are :

18 CMSSW = CMSSW_10_6_19
21 package = /afs/cern.ch/cms/generators/www/phantom/compiled/phantom_1_6_slc7_amd64_gcc700.tar.gz
28 ARCH = slc7_amd64_gcc700
47 scheduler = CONDOR
48 queue = 1

[1] https://github.com/cms-sw/genproductions/blob/master/bin/Phantom/submit_phantom.py#L115
[2]setup cms release CMSSW_10_6_19 , did cmsenv, and then
$ lhapdf-config --libdir

Please let me know. I tried to debug the issue but didn't understand its cause. It would be quite helpful.

I would also request if Phantom related activities could be reopened from the GEN side assigning one Phantom contact. Twiki seems updated quite long back.

Thanks and Regards,
Sadhana Verma

@sv3048
Copy link
Contributor Author

sv3048 commented Jan 25, 2024

Just for the documentation purpose.

With the help of Meng:

I updated setupdir2.pl to setupdir2_6.pl in submit_phantom.py file.

Things worked and I didn't get the error during submission ( as you can see in previous message https://github.com/cms-sw/genproductions/files/14038982/submission_log.txt ).

but I am not getting the runcmsgrid .sh file inside gridpack which is placed inside this folder.

/afs/cern.ch/work/s/sverma/public/Phantom/genproductions/bin/Phantom/gridpack_ssww_try1

Using runcmsgrid.sh is the next step according to twiki in order to get few events.

and also I changed the queue 1 to queue workday inside the ssww.cfg file

as when I was trying to run ./CONDORfile [1] ( in order to check what its doing ) it was giving me error JobFlavor used is invalid. It gets fixed using workday instead of 1.

Could you please let me know how to proceed further as this folder contains a lot of sub-process folders [lets say [2] ] as well. What I am I suppose to do with those?

Your help is highly appreciated in this regard.

[1] /afs/cern.ch/work/s/sverma/public/Phantom/genproductions/bin/Phantom/gridpack_ssww_try1/CONDORfile
[2] /afs/cern.ch/work/s/sverma/public/Phantom/genproductions/bin/Phantom/gridpack_ssww_try1/ds-uceve_muvm_

Thanks and Regards,
Sadhana

@sihyunjeon
Copy link
Collaborator

what you should do is around/after line 153 or line 883

def prepareEventProductionScript (productionfilename, phantom, phantomfolder, cmssw, shell, scram_arch, debugging = 0):
prepareEventProductionScript (foldername + '/runcmsgrid.sh', phantom, phantomfolder, cmssw, shell, scram_arch, debugging)

where runcmsgrid.sh is being written, see if it happens or not by adding in some print ("debug") lines
and if not, try to go up and see where it fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants