@@ -36,7 +36,7 @@ AC_DEFUN([OPAL_CHECK_ROCM],[
3636 [ with_rocm="/opt/rocm"] )
3737
3838 rocm_CPPFLAGS="-D__HIP_PLATFORM_AMD__"
39- rocm_LDFLAGS="-L${with_rocm}/lib/hip "
39+ rocm_LDFLAGS="-L${with_rocm}/lib/"
4040
4141 AS_IF ( [ test -n "$with_rocm" && test "$with_rocm" != "no" ] ,
4242 [ OPAL_APPEND([ CPPFLAGS] , [ $rocm_CPPFLAGS] )
@@ -52,15 +52,11 @@ AC_DEFUN([OPAL_CHECK_ROCM],[
5252
5353 LDFLAGS="$rocm_save_LDFLAGS"
5454 LIBS="$rocm_save_LIBS"
55- OPAL_APPEND([ CPPFLAGS] , [ ${$1 _CPPFLAGS}] )
56- OPAL_APPEND([ LDFLAGS] , [ ${$1 _LDFLAGS}] )
57- OPAL_APPEND([ LIBS] , [ ${$1 _LIBS}] )
58-
59- AS_IF ( [ test "$opal_check_rocm_happy" = "no" ] ,
60- [ CPPFLAGS="$rocm_save_CPPFLAGS"] )
55+ CPPFLAGS="$rocm_save_CPPFLAGS"
6156
6257 AS_IF ( [ test "$opal_check_rocm_happy" = "yes" ] ,
63- [ AC_DEFINE_UNQUOTED ( [ OPAL_ROCM_SUPPORT] , [ 1] , [ Enable ROCm support] )
58+ [ OPAL_APPEND([ $1 _CPPFLAGS] , [ $rocm_CPPFLAGS] )
59+ AC_DEFINE_UNQUOTED ( [ OPAL_ROCM_SUPPORT] , [ 1] , [ Enable ROCm support] )
6460 ROCM_SUPPORT=1 ] ,
6561 [ AC_DEFINE_UNQUOTED ( [ OPAL_ROCM_SUPPORT] , [ 0] , [ Disable ROCm support] )
6662 ROCM_SUPPORT=0 ] )
0 commit comments