trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2014

Re: [trinity-devel] Can TDE now build in parallel jobs (i.e. -j2 or -j4)?

From: "Timothy Pearson" <kb9vqf@...>
Date: Mon, 20 Jan 2014 16:32:09 -0600
>>  A year or so ago, building with make -j >1 was advised against
>>due to the
>>potential to produce spurious build failures, etc. Has that
>>changed? The build
>>time savings is attractive, but if there hasn't been any testing,
>>best to stick
>>to -j1 for now?
>
> The only build scripts where I limit NUMJOBS=-j1:
>
> dependencies/avahi-tqt/avahi-tqt.SlackBuild
> libraries/pytdeextensions/pytdeextensions.SlackBuild
> tdebindings/tdebindings.SlackBuild
>
> For everything else:
>
> if [ "$NUMJOBS" = "" ]; then
>   NUMJOBS="`grep -c '^processor' /proc/cpuinfo`"
>   NUMJOBS=$(($NUMJOBS + 2))
>   export NUMJOBS="-j${NUMJOBS}"
> fi
>
> Darrell

The build farm builds everything on 8-core machines with parallel jobs
allowed, and I haven't seen any failures.

Tim