Skip to content

Commit

Permalink
Merge pull request nwchemgit#948 from edoapra/flaccid-fraction
Browse files Browse the repository at this point in the history
tweak parallel compile for OpenBLAS
  • Loading branch information
nwchemgit authored Feb 3, 2024
2 parents 0ea95b4 + 6749dd2 commit d3bbacb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libext/openblas/build_openblas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ if [[ ! -z "${USE_OPENMP}" ]]; then
fi
GOTFREEBSD=$(uname -o 2>&1|awk ' /FreeBSD/ {print "1";exit}')
MYMAKE=make
MAKEJ=" -j3 "
MAKEJ="MAKE_NB_JOBS=2"
if [[ "${GOTFREEBSD}" == 1 ]]; then
MAKEJ=" "
MAKEJ="MAKE_NB_JOBS=1"
MYMAKE=gmake
fi
echo FC is $FC
Expand All @@ -268,7 +268,7 @@ elif [[ ${FLANG_NEW} == "true" ]]; then
echo $MYMAKE FC=$FC CC=$CC HOSTCC=gcc $FORCETARGET FCOMMON_OPT="$LAPACK_FPFLAGS_VAL" LAPACK_FPFLAGS="$LAPACK_FPFLAGS_VAL" INTERFACE64="$sixty4_int" BINARY="$binary" NUM_THREADS=128 NO_CBLAS=1 NO_LAPACKE=1 DEBUG=0 USE_THREAD ="$THREADOPT" libs netlib $MAKEJ
$MYMAKE FC=$FC CC=$CC HOSTCC=gcc $FORCETARGET FCOMMON_OPT="$LAPACK_FPFLAGS_VAL" LAPACK_FPFLAGS="$LAPACK_FPFLAGS_VAL" INTERFACE64="$sixty4_int" BINARY="$binary" NUM_THREADS=128 NO_CBLAS=1 NO_LAPACKE=1 DEBUG=0 USE_THREAD="$THREADOPT" libs netlib $MAKEJ >& openblas.log
else
$MYMAKE FC=$FC CC=$CC HOSTCC=gcc $FORCETARGET LAPACK_FPFLAGS="$LAPACK_FPFLAGS_VAL" INTERFACE64="$sixty4_int" BINARY="$binary" NUM_THREADS=128 NO_CBLAS=1 NO_LAPACKE=1 DEBUG=0 USE_THREAD="$THREADOPT" libs netlib $MAKEJ >& openblas.log
$MYMAKE FC=$FC CC=$CC HOSTCC=gcc $FORCETARGET LAPACK_FPFLAGS="$LAPACK_FPFLAGS_VAL" INTERFACE64="$sixty4_int" BINARY="$binary" NUM_THREADS=128 NO_CBLAS=1 NO_LAPACKE=1 DEBUG=0 USE_THREAD="$THREADOPT" libs netlib $MAKE >& openblas.log
fi
if [[ "$?" != "0" ]]; then
echo error code '$?'
Expand Down

0 comments on commit d3bbacb

Please sign in to comment.