config/update.sh (#671)

Minor changes to `configure`.
This commit is contained in:
Ruipeng Li 2022-07-08 16:33:48 -07:00 committed by GitHub
parent 6c4803b90d
commit ad50e4e123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 18 deletions

View File

@ -169,12 +169,12 @@
/* Define to 1 if using cuRAND */
#undef HYPRE_USING_CURAND
/* Define to 1 if using cuSolver */
#undef HYPRE_USING_CUSOLVER
/* Define to 1 if using cuSPARSE */
#undef HYPRE_USING_CUSPARSE
/* Define to 1 if using cuSOLVER */
#undef HYPRE_USING_CUSOLVER
/* Define to 1 if using device async malloc */
#undef HYPRE_USING_DEVICE_MALLOC_ASYNC

View File

@ -435,7 +435,7 @@ AS_HELP_STRING([--enable-cusparse],
AC_ARG_ENABLE(cusolver,
AS_HELP_STRING([--enable-cusolver],
[Use cusolver (default is NO).]),
[Use cuSOLVER (default is NO).]),
[case "${enableval}" in
yes) hypre_using_cusolver=yes ;;
no) hypre_using_cusolver=no ;;

28
src/configure vendored
View File

@ -3145,19 +3145,6 @@ else
fi
# Check whether --enable-device-memory-pool was given.
if test "${enable_device_memory_pool+set}" = set; then :
enableval=$enable_device_memory_pool; case "${enableval}" in
yes) hypre_using_device_pool=yes ;;
no) hypre_using_device_pool=no ;;
*) hypre_using_device_pool=no ;;
esac
else
hypre_using_device_pool=no
fi
# Check whether --enable-cusolver was given.
if test "${enable_cusolver+set}" = set; then :
enableval=$enable_cusolver; case "${enableval}" in
@ -3171,6 +3158,19 @@ else
fi
# Check whether --enable-device-memory-pool was given.
if test "${enable_device_memory_pool+set}" = set; then :
enableval=$enable_device_memory_pool; case "${enableval}" in
yes) hypre_using_device_pool=yes ;;
no) hypre_using_device_pool=no ;;
*) hypre_using_device_pool=no ;;
esac
else
hypre_using_device_pool=no
fi
# Check whether --enable-device-malloc-async was given.
if test "${enable_device_malloc_async+set}" = set; then :
enableval=$enable_device_malloc_async; case "${enableval}" in
@ -9216,7 +9216,7 @@ $as_echo "#define HYPRE_USING_CURAND 1" >>confdefs.h
$as_echo "#define HYPRE_USING_CUSOLVER 1" >>confdefs.h
HYPRE_CUDA_LIBS+=" -lcusolver"
HYPRE_CUDA_LIBS+=" -lcusolver"
fi
if test "$hypre_using_device_pool" = "yes"