Skip to content
Snippets Groups Projects
Commit c20dfc55 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'athena_fix_help' into 'master'

athena.py: Fix help message

See merge request atlas/athena!16161

Former-commit-id: f14f3617
parents 54403f3f 62e6feb6
No related branches found
No related tags found
No related merge requests found
......@@ -2,22 +2,18 @@
#
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
#
usage() {
cat <<EOF
Script to set \$LD_PRELOAD, steered by the following environment variables:
\$TCMALLOCDIR : tcmalloc directory (enables tcmalloc if set)
\$USETCMALLOC : use tcmalloc (instead of std malloc)
\$USETCMALLOCMINIMAL : use minimal version of tcmalloc
\$ATLASMKLLIBDIR_PRELOAD : location of Intel math library
\$USEIMF : use Intel math library
\$ATHENA_ADD_PRELOAD : preload user specific library
\$ATHENA_DROP_RELOAD : are we in drop/reload mode?
This script is used internally in athena.py. Other applications may use it e.g.:
USETCMALLOC=1 source athena_preload.sh && mycommand
EOF
}
# Script to set $LD_PRELOAD, steered by the following environment variables:
#
# $TCMALLOCDIR : tcmalloc directory (enables tcmalloc if set)
# $USETCMALLOC : use tcmalloc (instead of std malloc)
# $USETCMALLOCMINIMAL : use minimal version of tcmalloc
# $ATLASMKLLIBDIR_PRELOAD : location of Intel math library
# $USEIMF : use Intel math library
# $ATHENA_ADD_PRELOAD : preload user specific library
# $ATHENA_DROP_RELOAD : are we in drop/reload mode?
#
# This script is used internally in athena.py. Other applications may use it e.g.:
# USETCMALLOC=1 source athena_preload.sh && mycommand
# Helper to prepend to LD_LIBRARY
ld_preload()
......@@ -25,12 +21,6 @@ ld_preload()
export LD_PRELOAD="$1${LD_PRELOAD:+:$LD_PRELOAD}" # set or prepend
}
# Print help message
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
usage
exit 1
fi
# possibly, allow user to run with full tcmalloc by setting this variable
export USETCMALLOCMINIMAL
if [ -z "$USETCMALLOCMINIMAL" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment