Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration updates for various systems #5

Open
wants to merge 3 commits into
base: branch-22.10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -49,10 +61,26 @@ 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
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
Expand Down Expand Up @@ -93,6 +121,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 {
Expand Down