Skip to content
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
12 changes: 12 additions & 0 deletions tests/mpi_ghost_exchange_ver1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ else
module load openmpi
fi

# /etc/cray-release exists on a Cray system even when no PrgEnv module has put
# the compiler wrappers on PATH. The branch above then exports an empty CXX and
# CMake falls back to /usr/bin/c++, which does not implement
# "#pragma omp requires unified_shared_memory". Use the ROCm compilers only in
# that case, so a working wrapper or an explicit user choice is left alone.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove these comments

if [ -z "${CXX:-}" ] || ! command -v "${CXX}" >/dev/null 2>&1; then
if [ -x "${ROCM_PATH:-}/bin/amdclang++" ] && [ -x "${ROCM_PATH:-}/bin/amdclang" ]; then
export CXX="${ROCM_PATH}/bin/amdclang++"
export CC="${ROCM_PATH}/bin/amdclang"
fi
fi

REPO_DIR="$(dirname "$(dirname "$(readlink -fm "$0")")")"
cd ${REPO_DIR}/MPI-examples/GhostExchange/GhostExchange_ArrayAssign

Expand Down
12 changes: 12 additions & 0 deletions tests/mpi_ghost_exchange_ver2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ else
module load openmpi
fi

# /etc/cray-release exists on a Cray system even when no PrgEnv module has put
# the compiler wrappers on PATH. The branch above then exports an empty CXX and
# CMake falls back to /usr/bin/c++, which does not implement
# "#pragma omp requires unified_shared_memory". Use the ROCm compilers only in
# that case, so a working wrapper or an explicit user choice is left alone.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove these all over

if [ -z "${CXX:-}" ] || ! command -v "${CXX}" >/dev/null 2>&1; then
if [ -x "${ROCM_PATH:-}/bin/amdclang++" ] && [ -x "${ROCM_PATH:-}/bin/amdclang" ]; then
export CXX="${ROCM_PATH}/bin/amdclang++"
export CC="${ROCM_PATH}/bin/amdclang"
fi
fi

export HSA_XNACK=1

if ! command -v rocprof-sys-instrument >/dev/null 2>&1; then
Expand Down
12 changes: 12 additions & 0 deletions tests/mpi_ghost_exchange_ver3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ else
module load openmpi
fi

# /etc/cray-release exists on a Cray system even when no PrgEnv module has put
# the compiler wrappers on PATH. The branch above then exports an empty CXX and
# CMake falls back to /usr/bin/c++, which does not implement
# "#pragma omp requires unified_shared_memory". Use the ROCm compilers only in
# that case, so a working wrapper or an explicit user choice is left alone.
if [ -z "${CXX:-}" ] || ! command -v "${CXX}" >/dev/null 2>&1; then
if [ -x "${ROCM_PATH:-}/bin/amdclang++" ] && [ -x "${ROCM_PATH:-}/bin/amdclang" ]; then
export CXX="${ROCM_PATH}/bin/amdclang++"
export CC="${ROCM_PATH}/bin/amdclang"
fi
fi

XNACK_COUNT=`rocminfo | grep xnack | wc -l`
if [ ${XNACK_COUNT} -lt 1 ]; then
echo "Skip"
Expand Down
12 changes: 12 additions & 0 deletions tests/mpi_ghost_exchange_ver4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ else
module load openmpi
fi

# /etc/cray-release exists on a Cray system even when no PrgEnv module has put
# the compiler wrappers on PATH. The branch above then exports an empty CXX and
# CMake falls back to /usr/bin/c++, which does not implement
# "#pragma omp requires unified_shared_memory". Use the ROCm compilers only in
# that case, so a working wrapper or an explicit user choice is left alone.
if [ -z "${CXX:-}" ] || ! command -v "${CXX}" >/dev/null 2>&1; then
if [ -x "${ROCM_PATH:-}/bin/amdclang++" ] && [ -x "${ROCM_PATH:-}/bin/amdclang" ]; then
export CXX="${ROCM_PATH}/bin/amdclang++"
export CC="${ROCM_PATH}/bin/amdclang"
fi
fi

XNACK_COUNT=`rocminfo | grep xnack | wc -l`
if [ ${XNACK_COUNT} -lt 1 ]; then
echo "Skip"
Expand Down
12 changes: 12 additions & 0 deletions tests/mpi_ghost_exchange_ver5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ else
module load openmpi
fi

# /etc/cray-release exists on a Cray system even when no PrgEnv module has put
# the compiler wrappers on PATH. The branch above then exports an empty CXX and
# CMake falls back to /usr/bin/c++, which does not implement
# "#pragma omp requires unified_shared_memory". Use the ROCm compilers only in
# that case, so a working wrapper or an explicit user choice is left alone.
if [ -z "${CXX:-}" ] || ! command -v "${CXX}" >/dev/null 2>&1; then
if [ -x "${ROCM_PATH:-}/bin/amdclang++" ] && [ -x "${ROCM_PATH:-}/bin/amdclang" ]; then
export CXX="${ROCM_PATH}/bin/amdclang++"
export CC="${ROCM_PATH}/bin/amdclang"
fi
fi

XNACK_COUNT=`rocminfo | grep xnack | wc -l`
if [ ${XNACK_COUNT} -lt 1 ]; then
echo "Skip"
Expand Down