Skip to content

Commit 17fc446

Browse files
committed
Add TBLIS compilation flags on PowerPC (from #5)
1 parent aa870e5 commit 17fc446

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

common.sh

+8
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ function set_build_vars {
3636
if [[ "$PLATFORM" == summit ]]; then
3737
export CONDUIT="${CONDUIT:-ibv}"
3838
export GPU_ARCH=volta
39+
# Compiling TBLIS, a dependency of cuNumeric on PowerPC requires
40+
# these defines to be set.
41+
export CXXFLAGS="${CXXFLAGS:-} -DNO_WARN_X86_INTRINSICS"
42+
export CCFLAGS="${CCFLAGS:-} -DNO_WARN_X86_INTRINSICS"
3943
elif [[ "$PLATFORM" == cori ]]; then
4044
export CONDUIT="${CONDUIT:-ibv}"
4145
export GPU_ARCH=volta
@@ -48,6 +52,10 @@ function set_build_vars {
4852
elif [[ "$PLATFORM" == lassen ]]; then
4953
export CONDUIT="${CONDUIT:-ibv}"
5054
export GPU_ARCH=volta
55+
# Compiling TBLIS, a dependency of cuNumeric on PowerPC requires
56+
# these defines to be set.
57+
export CXXFLAGS="${CXXFLAGS:-} -DNO_WARN_X86_INTRINSICS"
58+
export CCFLAGS="${CCFLAGS:-} -DNO_WARN_X86_INTRINSICS"
5159
elif [[ "$PLATFORM" == generic-* ]]; then
5260
export NETWORK="${NETWORK:-none}"
5361
export CONDUIT="${CONDUIT:-none}"

0 commit comments

Comments
 (0)