Skip to content

Commit

Permalink
Add TBLIS compilation flags on PowerPC (from #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
manopapad committed Oct 24, 2022
1 parent aa870e5 commit 17fc446
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ function set_build_vars {
if [[ "$PLATFORM" == summit ]]; then
export CONDUIT="${CONDUIT:-ibv}"
export GPU_ARCH=volta
# Compiling TBLIS, a dependency of cuNumeric on PowerPC requires
# these defines to be set.
export CXXFLAGS="${CXXFLAGS:-} -DNO_WARN_X86_INTRINSICS"
export CCFLAGS="${CCFLAGS:-} -DNO_WARN_X86_INTRINSICS"
elif [[ "$PLATFORM" == cori ]]; then
export CONDUIT="${CONDUIT:-ibv}"
export GPU_ARCH=volta
Expand All @@ -48,6 +52,10 @@ function set_build_vars {
elif [[ "$PLATFORM" == lassen ]]; then
export CONDUIT="${CONDUIT:-ibv}"
export GPU_ARCH=volta
# Compiling TBLIS, a dependency of cuNumeric on PowerPC requires
# these defines to be set.
export CXXFLAGS="${CXXFLAGS:-} -DNO_WARN_X86_INTRINSICS"
export CCFLAGS="${CCFLAGS:-} -DNO_WARN_X86_INTRINSICS"
elif [[ "$PLATFORM" == generic-* ]]; then
export NETWORK="${NETWORK:-none}"
export CONDUIT="${CONDUIT:-none}"
Expand Down

0 comments on commit 17fc446

Please sign in to comment.