Skip to content

Instantly share code, notes, and snippets.

@riga
Created October 21, 2019 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riga/1fc3e823c083798ef40a855caedf89ff to your computer and use it in GitHub Desktop.
Save riga/1fc3e823c083798ef40a855caedf89ff to your computer and use it in GitHub Desktop.
Test the TensorFlow 2.0 installation in CMSSW.
#!/usr/bin/env bash
action() {
export SCRAM_ARCH="slc7_amd64_gcc820"
export CMSSW_VERSION="CMSSW_11_0_0_pre9"
if [ ! -d "$CMSSW_VERSION" ]; then
scramv1 project CMSSW "$CMSSW_VERSION"
cd "$CMSSW_VERSION/src"
eval `scramv1 runtime -sh`
git cms-init
git cms-addpkg PhysicsTools/TensorFlow
rm -f PhysicsTools/TensorFlow/{src,interface}/{NTSession.*,TBBSession.*}
else
cd "$CMSSW_VERSION/src"
eval `scramv1 runtime -sh`
fi
scram b
}
action "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment