Skip to content

Commit

Permalink
Merge pull request #10 from cms-sw/gsl-openblas-fix
Browse files Browse the repository at this point in the history
fix gsl hook to use openblas libs
  • Loading branch information
smuzaffar authored Jan 23, 2024
2 parents 2bfaf3c + b7bb81a commit 79569d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/scramrc/SCRAM/hooks/runtime/99-gsl-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ GSL_tool="${LOCALTOP}/config/toolbox/${SCRAM_ARCH}/tools/selected/gsl.xml"
[ -z "${SCRAM}" ] && SCRAM=scram
GSL_BASE=$(${SCRAM} tool tag gsl GSL_BASE)
[ -e "${GSL_BASE}/bin/gsl-config" ] || exit 0
if [ $(grep gslcblas ${GSL_BASE}/bin/gsl-config | wc -l) -gt 0 ] ; then
echo "RUNTIME:variable:GSL_CBLAS_LIB=-L$(${SCRAM} tool tag openblas LIBDIR) -l$(${SCRAM} tool tag openblas LIB)"
fi
echo "RUNTIME:path:append:PATH=${GSL_BASE}/bin"

0 comments on commit 79569d4

Please sign in to comment.