From 0429cefe38379a617bf450f8923374f7468d65df Mon Sep 17 00:00:00 2001 From: Rohan Yadav Date: Fri, 30 Sep 2022 11:37:33 -0700 Subject: [PATCH 1/3] *: updates for installation on Lassen Signed-off-by: Rohan Yadav --- build.sh | 2 ++ common.sh | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/build.sh b/build.sh index e906099..7f370db 100755 --- a/build.sh +++ b/build.sh @@ -57,11 +57,13 @@ if [[ -d "legate/core" ]]; then --verbose \ --editable \ --legion-src-dir "$LEGION_DIR" \ + $MARCH_ARG \ "$@" elif [[ -d "cunumeric" ]]; then run_build ./install.py \ --verbose \ --editable \ + $MARCH_ARG \ "$@" else echo "Error: Unsupported library" 1>&2 diff --git a/common.sh b/common.sh index 08ac4f0..b051e20 100644 --- a/common.sh +++ b/common.sh @@ -53,6 +53,18 @@ function set_build_vars { export CONDUIT="${CONDUIT:-ibv}" export NUM_NICS=4 export GPU_ARCH=volta + # Compiling TBLIS, a dependency of cuNumeric on PowerPC requires + # these defines to be set. + export CXXFLAGS="-DNO_WARN_X86_INTRINSICS" + export CCFLAGS="-DNO_WARN_X86_INTRINSICS" + # CC and CXX need to be set to the MPI compilers, as the builds + # can't figure this out to configure appropriately. + export CC=mpicc + export CXX=mpicxx + # Compilers on Lassen don't support the `--march` parameter. If we + # we don't pass this to the installation script, it doesn't understand + # to not use `--march` in compiler invocations. + MARCH_ARG='--march ""' else if [[ -f /proc/self/cgroup ]] && grep -q docker /proc/self/cgroup; then echo "Error: Detected a docker build for an unknown target platform" 1>&2 @@ -93,6 +105,7 @@ function set_build_vars { export USE_CUDA="${USE_CUDA:-1}" export USE_OPENMP="${USE_OPENMP:-1}" export NETWORK="${NETWORK:-gasnet1}" + export MARCH_ARG="${MARCH_ARG:-'--march native'}" } function set_mofed_vars { From 02618be04fd12e71cac17dc564373d9d00f1363f Mon Sep 17 00:00:00 2001 From: Rohan Yadav Date: Fri, 30 Sep 2022 17:10:01 -0400 Subject: [PATCH 2/3] common.sh: configuration setup for summit Signed-off-by: Rohan Yadav --- common.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common.sh b/common.sh index b051e20..5abbbc3 100644 --- a/common.sh +++ b/common.sh @@ -37,6 +37,18 @@ function set_build_vars { export CONDUIT="${CONDUIT:-ibv}" export NUM_NICS=4 export GPU_ARCH=volta + # Compiling TBLIS, a dependency of cuNumeric on PowerPC requires + # these defines to be set. + export CXXFLAGS="-DNO_WARN_X86_INTRINSICS" + export CCFLAGS="-DNO_WARN_X86_INTRINSICS" + # CC and CXX need to be set to the MPI compilers, as the builds + # can't figure this out to configure appropriately. + export CC=mpicc + export CXX=mpicxx + # Compilers on Summit don't support the `--march` parameter. If we + # we don't pass this to the installation script, it doesn't understand + # to not use `--march` in compiler invocations. + MARCH_ARG='--march ""' elif [[ "$PLATFORM" == cori ]]; then export CONDUIT="${CONDUIT:-ibv}" export NUM_NICS=4 From e9d9ac8054a741aed01a9ab21da46ed4364eddfe Mon Sep 17 00:00:00 2001 From: Rohan Yadav Date: Wed, 5 Oct 2022 16:54:21 -0700 Subject: [PATCH 3/3] common.sh: updates for sapling Signed-off-by: Rohan Yadav --- common.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.sh b/common.sh index 5abbbc3..39a81d2 100644 --- a/common.sh +++ b/common.sh @@ -61,6 +61,10 @@ function set_build_vars { export CONDUIT="${CONDUIT:-ibv}" export NUM_NICS=1 export GPU_ARCH=pascal + # CC and CXX need to be set to the MPI compilers, as the builds + # can't figure this out to configure appropriately. + export CC=mpicc + export CXX=mpicxx elif [[ "$PLATFORM" == lassen ]]; then export CONDUIT="${CONDUIT:-ibv}" export NUM_NICS=4