Replace hipcc option --amdgpu-target with --offload-arch (#1027)

Solves #1026.
This commit is contained in:
Victor A. P. Magri 2023-12-07 12:56:27 -05:00 committed by GitHub
parent 40ef37a5da
commit a09d776fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2644,7 +2644,7 @@ AS_IF([test x"$hypre_using_hip" == x"yes"],
if test "x${HYPRE_CUDA_SM}" != "x"
then
HYPRE_CUDA_GENCODE="--amdgpu-target="
HYPRE_CUDA_GENCODE="--offload-arch="
for sm in ${HYPRE_CUDA_SM}; do
HYPRE_CUDA_GENCODE="${HYPRE_CUDA_GENCODE}${sm},"
done

2
src/configure vendored
View File

@ -10857,7 +10857,7 @@ printf "%s\n" "#define HYPRE_USING_HIP 1" >>confdefs.h
if test "x${HYPRE_CUDA_SM}" != "x"
then
HYPRE_CUDA_GENCODE="--amdgpu-target="
HYPRE_CUDA_GENCODE="--offload-arch="
for sm in ${HYPRE_CUDA_SM}; do
HYPRE_CUDA_GENCODE="${HYPRE_CUDA_GENCODE}${sm},"
done