Skip to content

Commit 4dcb02b

Browse files
config: Fix syntax errors in CUDA checks
Signed-off-by: Andreas Schwab <schwab@suse.de>
1 parent 97dda9f commit 4dcb02b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/opal_check_cuda.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ AS_IF([test "$opal_check_cuda_happy" = "yes"],
9090
9191
# If we have CUDA support, check to see if we have support for SYNC_MEMOPS
9292
# which was first introduced in CUDA 6.0.
93-
AS_IF([test "$opal_check_cuda_happy"="yes"],
93+
AS_IF([test "$opal_check_cuda_happy" = "yes"],
9494
[AC_CHECK_DECL([CU_POINTER_ATTRIBUTE_SYNC_MEMOPS], [CUDA_SYNC_MEMOPS=1], [CUDA_SYNC_MEMOPS=0],
9595
[#include <$opal_cuda_incdir/cuda.h>])],
9696
[])
@@ -108,9 +108,9 @@ AC_COMPILE_IFELSE(
108108
109109
# If we have CUDA support, check to see if we have support for cuPointerGetAttributes
110110
# which was first introduced in CUDA 7.0.
111-
AS_IF([test "$opal_check_cuda_happy"="yes"],
112-
AC_CHECK_DECL([cuPointerGetAttributes], [CUDA_GET_ATTRIBUTES=1], [CUDA_GET_ATTRIBUTES=0],
113-
[#include <$opal_cuda_incdir/cuda.h>]),
111+
AS_IF([test "$opal_check_cuda_happy" = "yes"],
112+
[AC_CHECK_DECL([cuPointerGetAttributes], [CUDA_GET_ATTRIBUTES=1], [CUDA_GET_ATTRIBUTES=0],
113+
[#include <$opal_cuda_incdir/cuda.h>])],
114114
[])
115115
116116
AC_MSG_CHECKING([if have cuda support])

0 commit comments

Comments
 (0)