forked from hexutils/HexUtils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
55 lines (46 loc) · 1.99 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# USER INPUTS
CMSSW_release=CMSSW_14_0_0
CMSSW_release_name=HexUtils #Leave this blank if you don't know what it is. It's just a marker in case you have multiple identical directories. No need for the underscore.
SCRAM_ARCH_name="amd64_gcc12" # Leave slc6/7 out
SCRAM_ARCH_name="el9_${SCRAM_ARCH_name}"
export SCRAM_ARCH=${SCRAM_ARCH_name}
if [ "${1,,}" = "lgc" ]
then
echo "Loading LGC computing environment v103 with CUDA support"
# Loading LHC Computing Grid software stack release 103cuda. More stable/applicable than CMSSW. https://lcginfo.cern.ch/
source /cvmfs/sft.cern.ch/lcg/views/LCG_103cuda/x86_64-centos7-gcc11-opt/setup.sh
else
echo "Loading CMSSW computing environment $CMSSW_release"
if [[ -z ${CMSSW_release_name+x} ]]; then
CMSSW_release_name="${CMSSW_release}"
else
CMSSW_release_name="${CMSSW_release}_${CMSSW_release_name}"
fi
#--Here there be dragons----
export CMS_PATH=/cvmfs/cms.cern.ch
source /cvmfs/cms.cern.ch/cmsset_default.sh
scramv1 p -n ${CMSSW_release_name} CMSSW $CMSSW_release
cd ${CMSSW_release_name}/src
eval $(scramv1 runtime -sh)
# new upstream-only ignores user's cmssw, but makes cms-init much, much faster
git cms-init --upstream-only
fi
#######################################
# No CMSSW packages beyond this point #
#######################################
# Loading LHC Computing Grid software stack release 103cuda. More stable/applicable than CMSSW. https://lcginfo.cern.ch/
#source /cvmfs/sft.cern.ch/lcg/views/LCG_103cuda/x86_64-centos7-gcc11-opt/setup.sh
# HexUtils
git clone --recursive https://github.com/lk11235/HexUtils.git
./HexUtils/JHUGenMELA/MELA/setup.sh
eval $(./HexUtils/JHUGenMELA/MELA/setup.sh env standalone)
# MELA Analytics
#git clone [email protected]:MELALabs/MelaAnalytics.git
scram b -j 16
if ! [ "${1,,}" = "lgc" ]
then
echo "Removing .poisonededmplugincache"
# see comment in patchesToSource.sh
rm $CMSSW_BASE/lib/$SCRAM_ARCH/.poisonededmplugincache
fi