lkml.org 
[lkml]   [2011]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] coccicheck: add parallel execution
On 7/26/2011 8:53 AM, Michal Marek wrote:
> Why not move the loop into some Makefile and let make take care of the
> parallel execution? Something among the lines of
>
> results := check1.out check2.out ... (generated)
> coccicheck: $(results)
> cat $^
>
> %.out: FORCE
> ... run given test and store its result ...
>
> then the user can simply type make -j6 coccicheck.
>
> Note: I haven't seen the patch, I only got Nicolas' mail now.
>
> Michal
>

yes, I agree, that would be better - especially from a user perspective.
I'm not much of a makefile expert at all. I did try that approach
initially, but it seemed like it was going to turn into a rewrite of the
coccinelle script. If someone can do it via make, I'd say go for it :)
I won't have much free time for the foreseeable future to tackle it.
using "make -j" is much more comfortable and intuitive than typing
PARALLEL= ...

Greg


\
 
 \ /
  Last update: 2011-07-27 00:49    [W:0.064 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site