mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
cross-compilation updates
This commit is contained in:
parent
874f69a5f7
commit
78102b1dba
1 changed files with 9 additions and 2 deletions
|
|
@ -223,6 +223,7 @@ MAKEJ=" "
|
|||
MYMAKE=gmake
|
||||
fi
|
||||
echo FC is $FC
|
||||
echo CC is $CC
|
||||
echo $MYMAKE FC=$FC $FORCETARGET LAPACK_FPFLAGS=$LAPACK_FPFLAGS_VAL INTERFACE64=$sixty4_int BINARY=$binary NUM_THREADS=$MYNTS NO_CBLAS=1 NO_LAPACKE=1 DEBUG=0 USE_THREAD=$THREADOPT libs netlib $MAKEJ
|
||||
echo
|
||||
echo OpenBLAS compilation in progress
|
||||
|
|
@ -231,7 +232,7 @@ echo
|
|||
if [[ ${_FC} == xlf ]]; then
|
||||
$MYMAKE FC="xlf -qextname" $FORCETARGET LAPACK_FPFLAGS="$LAPACK_FPFLAGS_VAL" INTERFACE64="$sixty4_int" BINARY="$binary" NUM_THREADS=$MYNTS NO_CBLAS=1 NO_LAPACKE=1 DEBUG=0 USE_THREAD="$THREADOPT" libs netlib $MAKEJ >& openblas.log
|
||||
else
|
||||
$MYMAKE FC=$FC $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 $MAKEJ >& openblas.log
|
||||
fi
|
||||
if [[ "$?" != "0" ]]; then
|
||||
tail -500 openblas.log
|
||||
|
|
@ -243,7 +244,13 @@ fi
|
|||
|
||||
mkdir -p ../../lib
|
||||
if [[ $(uname -s) == "Linux" ]]; then
|
||||
strip --strip-debug libopenblas*-*.a
|
||||
if [ -x "$(command -v xx-info)" ]; then
|
||||
MYSTRIP=$(xx-info)-strip
|
||||
else
|
||||
MYSTRIP=strip
|
||||
fi
|
||||
echo MYSTRIP is $MYSTRIP
|
||||
$MYSTRIP --strip-debug libopenblas*-*.a
|
||||
fi
|
||||
cp libopenblas.a ../../lib/libnwc_openblas.a
|
||||
#make PREFIX=. install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue