Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is in response to issue #121 from @slava77. I believe it takes care of the Makefile problem where putting 2 targets on the same line might result in the rule for those targets being run simultaneously by 2 threads (as @slava77 hypothesized in Skype). The issue seems to occur twice in the Makefile; this PR fixes both. It also addresses the incomplete cleanup issue, where a couple of
.cc
source files that are created byrootcling
duringmake
get left behind bymake distclean
. I tested the documented procedure inREADME_buildFromCMSSW.txt
, and the new Makefile works both on a fresh clone and a directory tree cleaned bymake distclean
. I leave it to @osschar to check on the goodness of my solution.If we decide to make this PR into a further PR to cms-sw, then I propose that we also consider changing the default compilation for standalone builds to
-Ofast -fno-reciprocal-math -mrecip=none
, since this combination has been approved by CMSSW as not harming reproducibility between AMD and Intel platforms. See cms-sw/cmsdist#8280. This combination of options improves the performance of mkFit by quite a lot: my little test with InitialStep runs almost 20% faster when the above options are provided throughCXXUSERFLAGS
. In general I think our default standalone build should match the default options for the full CMSSW build... but I can't tell if these flags are now the default for CMSSW builds. Can someone please comment on that?