gridpack won't compile

Asked by Baris Altunkaynak

I am having trouble compiling gridpacks generated by MG5_v1.5.2. The error message I get at the end is:

make: *** No rule to make target `../bin/internal/combine_runs'. Stop.
Error make ../bin/internal/combine_runs in Source not successful

It seems madevent/Source/makefile does not include the rules to compile combine_runs. Am I missing something?

(here is a sample gridpack that does not compile: http://dl.dropbox.com/u/4282905/run_02_gridpack.tar.gz)

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

>
> make: *** No rule to make target `../bin/internal/combine_runs'. Stop.
> Error make ../bin/internal/combine_runs in Source not successful
>
> It seems madevent/Source/makefile does not include the rules to compile combine_runs.

Yes this code have been move from the fortran part to the python part.

So the easiest fix would be to remove this line in the makefile and the code should work.
Looks like we have forget to modify the makefile for the grid pack.

Sorry about that,

Olivier

On Oct 25, 2012, at 12:11 PM, Baris Altunkaynak <email address hidden> wrote:

> New question #212309 on MadGraph5:
> https://answers.launchpad.net/madgraph5/+question/212309
>
> I am having trouble compiling gridpacks generated by MG5_v1.5.2. The error message I get at the end is:
>
> make: *** No rule to make target `../bin/internal/combine_runs'. Stop.
> Error make ../bin/internal/combine_runs in Source not successful
>
> It seems madevent/Source/makefile does not include the rules to compile combine_runs. Am I missing something?
>
> (here is a sample gridpack that does not compile: http://dl.dropbox.com/u/4282905/run_02_gridpack.tar.gz)
>
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Baris Altunkaynak (baris-altunkaynak) said :
#2

Thank you for your fast response.

I am not sure which line to remove though. bin/compile loops over gen_ximprove combine_events and combine_runs. Do I remove that last one?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

yes this sounds perfect :-)

Cheers and sorry for that.

Olivier

On Oct 25, 2012, at 1:25 PM, Baris Altunkaynak <email address hidden> wrote:

> Question #212309 on MadGraph5 changed:
> https://answers.launchpad.net/madgraph5/+question/212309
>
> Status: Answered => Open
>
> Baris Altunkaynak is still having a problem:
> Thank you for your fast response.
>
> I am not sure which line to remove though. bin/compile loops over
> gen_ximprove combine_events and combine_runs. Do I remove that last one?
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Baris Altunkaynak (baris-altunkaynak) said :
#4

Hi,

I removed it from the loop as you suggested and then it compiles fine but when I run the gridpack I get these errors:

Updating grid_card.dat...
Now generating 10000 events with random seed 23 and granularity -1
P0_gg_gg
P0_gg_qq
P0_gq_gq
P0_qq_gg
P0_qq_qq
Traceback (most recent call last):
  File "./bin/gridrun", line 84, in <module>
    cmd_line = cmd_interface.GridPackCmd(me_dir=root_path, nb_event=args[0], seed=args[1])
  File "/home/baris/Desktop/run_02_gridpack/madevent/bin/internal/madevent_interface.py", line 4587, in __init__
    self.launch(nb_event, seed)
  File "/home/baris/Desktop/run_02_gridpack/madevent/bin/internal/madevent_interface.py", line 4609, in launch
    self.refine4grid(nb_event)
  File "/home/baris/Desktop/run_02_gridpack/madevent/bin/internal/madevent_interface.py", line 4680, in refine4grid
    stdout=devnull)
  File "/home/baris/Desktop/run_02_gridpack/madevent/bin/internal/misc.py", line 316, in deco_f
    % arg
Exception: ['../bin/internal/combine_runs'] fails with no such file or directory
Error: event file not found !

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

Needs more investigation then.

I'll do that and keep you inform.

Cheers,

Olivier

Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#6

Hi Baris,

Thanks for your patience.
In addition to your previous fix you need also to change the following:
in the file bin/internal/madevent_interface.py around line 4691 replace
        misc.call([pjoin(bindir, 'combine_runs')],
                                          cwd=pjoin(self.me_dir,'SubProcesses'),
                                          stdout=devnull)
by
combine_runs.CombineRuns(self.me_dir)

I've include those modifications inside the future 1.5.3 (probably going to be release next week)
and the gridpack works perfectly with those fix.

Sorry for those trouble,

Olivier

Revision history for this message
Baris Altunkaynak (baris-altunkaynak) said :
#7

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Baris Altunkaynak (baris-altunkaynak) said :
#8

Olivier, thank you very much for taking time to fix the problem. I am afraid there might be another small bug. If I run clean4grid, it removes nexternal.inc, but it seems madevent_interface.py opens it around line 1613:

nexternal = open(pjoin(me_dir,'Source','nexternal.inc')).read()

I guess I don't have to do clean4grid, so it should be okay but I wanted to let you know.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#9

Hi Baris,

Thanks a lot for the information. Indeed clean4grid is not really needed anymore (the size of the package is much smaller that what is was a couple of years ago.

But I will fix this as well.

Thanks so much,

Olivier