Skip to content

Commit

Permalink
correct OCCA_CXXFLAGS on powerpc
Browse files Browse the repository at this point in the history
  • Loading branch information
stgeke committed Mar 12, 2020
1 parent b4d1fd9 commit 7227a00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions makenrs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
: ${NEKRS_CC:="mpicc"}
: ${NEKRS_CXX:="mpic++"}
: ${NEKRS_FC:="mpif77"}
: ${NEKRS_CXXFLAGS:="-g -O2 -march=native -mtune=native"}
: ${NEKRS_CXXFLAGS:="-g -O2"}

: ${OCCA_CXX:="gcc"}
: ${OCCA_CXXFLAGS:="-O3 -march=native -mtune=native"}
Expand Down Expand Up @@ -40,7 +40,8 @@ fi
NEKRS_CXXFLAGS+=" -DUSE_OCCA_MEM_BYTE_ALIGN=64"

if uname -a | grep 'ppc64'; then
NEKRS_CXXFLAGS=$(echo "$NEKRS_CXXFLAGS" | sed -e "s/march/mcpu/g")
NEKRS_CXXFLAGS=$(echo "$NEKRS_CXXFLAGS" | sed -e "s/march/mcpu/g")
OCCA_CXXFLAGS=$(echo "$OCCA_CXXFLAGS" | sed -e "s/march/mcpu/g")
fi

NEKRS_CFLAGS="${NEKRS_CXXFLAGS}"
Expand Down

0 comments on commit 7227a00

Please sign in to comment.