Skip to content

Commit

Permalink
Merge pull request SPECFEM#1637 from gargrahul/fix_hip_pltfrm_hcc_nvcc
Browse files Browse the repository at this point in the history
Fix HIP_PLATFORM macros
  • Loading branch information
danielpeter authored Oct 27, 2023
2 parents d2105bb + 7e0db64 commit b9c9ab4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -9540,8 +9540,8 @@ then :

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: HIP PLATFORM NVIDIA detected." >&5
printf "%s\n" "$as_me: HIP PLATFORM NVIDIA detected." >&6;}
HIP_PLATFORM=nvcc
FLAG_PLATFORM="${FC_DEFINE}__HIP_PLATFORM_NVCC__"
HIP_PLATFORM=nvidia
FLAG_PLATFORM="${FC_DEFINE}__HIP_PLATFORM_NVIDIA__"

fi

Expand All @@ -9550,8 +9550,8 @@ then :

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: HIP PLATFORM AMD detected." >&5
printf "%s\n" "$as_me: HIP PLATFORM AMD detected." >&6;}
HIP_PLATFORM=hcc
FLAG_PLATFORM="${FC_DEFINE}__HIP_PLATFORM_HCC__"
HIP_PLATFORM=amd
FLAG_PLATFORM="${FC_DEFINE}__HIP_PLATFORM_AMD__"

fi
# compiler might require a platform selection flag
Expand Down
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -577,14 +577,14 @@ AS_IF([test x"$want_hip" != xno], [
GPU_PLATFORM=`$HIPCONFIG_PROG --platform`
AS_IF([test x"$GPU_PLATFORM" = xnvidia], [
AC_MSG_NOTICE([HIP PLATFORM NVIDIA detected.])
HIP_PLATFORM=nvcc
FLAG_PLATFORM="${FC_DEFINE}__HIP_PLATFORM_NVCC__"
HIP_PLATFORM=nvidia
FLAG_PLATFORM="${FC_DEFINE}__HIP_PLATFORM_NVIDIA__"
])
AS_IF([test x"$GPU_PLATFORM" = xamd], [
AC_MSG_NOTICE([HIP PLATFORM AMD detected.])
HIP_PLATFORM=hcc
FLAG_PLATFORM="${FC_DEFINE}__HIP_PLATFORM_HCC__"
HIP_PLATFORM=amd
FLAG_PLATFORM="${FC_DEFINE}__HIP_PLATFORM_AMD__"
])
# compiler might require a platform selection flag
case "${HIP_FLAGS}" in
Expand Down

0 comments on commit b9c9ab4

Please sign in to comment.