Replace hipcc option --amdgpu-target with --offload-arch (#1027)
Solves #1026.
This commit is contained in:
parent
40ef37a5da
commit
a09d776fd2
@ -2644,7 +2644,7 @@ AS_IF([test x"$hypre_using_hip" == x"yes"],
|
|||||||
|
|
||||||
if test "x${HYPRE_CUDA_SM}" != "x"
|
if test "x${HYPRE_CUDA_SM}" != "x"
|
||||||
then
|
then
|
||||||
HYPRE_CUDA_GENCODE="--amdgpu-target="
|
HYPRE_CUDA_GENCODE="--offload-arch="
|
||||||
for sm in ${HYPRE_CUDA_SM}; do
|
for sm in ${HYPRE_CUDA_SM}; do
|
||||||
HYPRE_CUDA_GENCODE="${HYPRE_CUDA_GENCODE}${sm},"
|
HYPRE_CUDA_GENCODE="${HYPRE_CUDA_GENCODE}${sm},"
|
||||||
done
|
done
|
||||||
|
|||||||
2
src/configure
vendored
2
src/configure
vendored
@ -10857,7 +10857,7 @@ printf "%s\n" "#define HYPRE_USING_HIP 1" >>confdefs.h
|
|||||||
|
|
||||||
if test "x${HYPRE_CUDA_SM}" != "x"
|
if test "x${HYPRE_CUDA_SM}" != "x"
|
||||||
then
|
then
|
||||||
HYPRE_CUDA_GENCODE="--amdgpu-target="
|
HYPRE_CUDA_GENCODE="--offload-arch="
|
||||||
for sm in ${HYPRE_CUDA_SM}; do
|
for sm in ${HYPRE_CUDA_SM}; do
|
||||||
HYPRE_CUDA_GENCODE="${HYPRE_CUDA_GENCODE}${sm},"
|
HYPRE_CUDA_GENCODE="${HYPRE_CUDA_GENCODE}${sm},"
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user