-
Notifications
You must be signed in to change notification settings - Fork 245
/
cmsrep.sh
35 lines (33 loc) · 1 KB
/
cmsrep.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
CMSREP_SERVER=cmsrep.cern.ch
CMSREP_IB_SERVER=cmsrep.cern.ch
CMSBUILD_OPTS_FILE="etc/build_options.sh"
BUILD_OPTS=""
MULTIARCH_OPTS=""
umask 0002
export CMS_PYTHON_TO_USE="python"
if which python3 >/dev/null 2>&1 ; then export CMS_PYTHON_TO_USE="python3" ; fi
#called with $BUILD_OPTS $MULTIARCH_OPTS $ARCH
function cmsbuild_args()
{
arg=""
if [ "$1" != "" ] ; then
BLD_OPTS=""
for x in $(echo "$1" | tr ',' ' ') ; do
case $x in
upload_store ) echo "ignoring upload_store" ;;
* ) BLD_OPTS="${BLD_OPTS},$x" ;;
esac
done
[ "$BLD_OPTS" != "" ] && arg="${arg} --build-options $(echo ${BLD_OPTS} | sed 's|^,||')"
fi
[ "$2" != "" ] && arg="${arg} --vectorization $2"
[[ "$3" =~ "riscv64" ]] && arg="${arg} --use-system-tools=gcc,autotools --build-without=cuda,rocm,tensorflow,openloops,valgrind"
[ "${arg}" = "" ] || echo "${arg}"
}
function cmssw_default_target()
{
case $1 in
*SKYLAKE*|*SANDYBRIDGE*|*HASWELL*|*MULTIARCHS*) echo auto ;;
*) echo default ;;
esac
}