Skip to content

Instantly share code, notes, and snippets.

@kpedro88
Last active October 19, 2021 20:44
Show Gist options
  • Save kpedro88/fee1e6d1ff5b9e4ee96c4ac1203c23d4 to your computer and use it in GitHub Desktop.
Save kpedro88/fee1e6d1ff5b9e4ee96c4ac1203c23d4 to your computer and use it in GitHub Desktop.

Fix igprof for CMSSW_10_6_X

igprof may hang in CMSSW_10_6_X because of a bad interaction between itself, popen/fork, and tbb. This manifests in a call to GetLinuxSysInfo(), which occurs in the constructor of TMVA::Config in ROOT 6.14. To mitigate this issue, a modified libTMVA.so is distributed here. The modification can be viewed at kpedro88:root/cms/v6-14-00-patches/8ba6b0f_fixIgprof_106X.

To install this modification in a CMSSW_10_6_X area (these instructions assume cmsrel and cmsenv have already been called, i.e. the area has been created and the environment is active):

wget https://gist.githubusercontent.com/kpedro88/fee1e6d1ff5b9e4ee96c4ac1203c23d4/raw/FixIgprof106X.sh
chmod +x FixIgprof106X.sh
./FixIgprof106X.sh
cmsenv
#!/bin/bash
TOOLS=$CMSSW_BASE/config/toolbox/slc7_amd64_gcc700/tools/selected
GIST=fee1e6d1ff5b9e4ee96c4ac1203c23d4
mkdir $CMSSW_BASE/rootfix
cd $CMSSW_BASE/rootfix
lndir $ROOTSYS
cp ${TOOLS}/root_interface.xml root_interface.xml.orig
git clone https://gist.github.com/fee1e6d1ff5b9e4ee96c4ac1203c23d4.git
cp -f ${GIST}/libTMVA.so lib/
cp -f ${GIST}/root_interface.xml ${TOOLS}/
scram setup root_interface
This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment