Created
October 21, 2019 16:24
-
-
Save riga/1fc3e823c083798ef40a855caedf89ff to your computer and use it in GitHub Desktop.
Test the TensorFlow 2.0 installation in CMSSW.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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