Fix sycl shared build (#995)

Fix shared sycl build, remove extra magma variables, rerun update.sh
This commit is contained in:
Wayne Mitchell 2023-10-31 14:19:28 -07:00 committed by GitHub
parent fd31ec8357
commit 93bc0a63f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 36 deletions

View File

@ -170,12 +170,6 @@ SUPERLU_LIBS = @SUPERLU_LIBS@
DSUPERLU_INCLUDE = @DSUPERLU_INCLUDE@
DSUPERLU_LIBS = @DSUPERLU_LIBS@
##################################################################
## MAGMA options
##################################################################
MAGMA_INCLUDE = @MAGMA_INCLUDE@
MAGMA_LIBS = @MAGMA_LIBS@
##################################################################
## FEI options
##################################################################

View File

@ -2759,6 +2759,13 @@ AS_IF([test x"$hypre_using_sycl" == x"yes"],
LDFLAGS+=" -Xsycl-target-backend ${HYPRE_SYCL_TARGET_BACKEND}"
fi
dnl Shared build needs the sycl compiler
if test "$hypre_using_shared" = "yes"
then
SYCLFLAGS="${SHARED_COMPILE_FLAG} ${SYCLFLAGS}"
BUILD_CC_SHARED="\${CUCC} ${SHARED_BUILD_FLAG}"
fi
dnl (Ab)Use CUFLAGS to capture SYCL compilation flags
if test "$hypre_user_chose_cuflags" = "no"
then

35
src/configure vendored
View File

@ -663,8 +663,6 @@ HYPRE_MAGMA_INCLUDE
HYPRE_MAGMA_LIB_DIR
CALIPER_LIBS
CALIPER_INCLUDE
MAGMA_LIBS
MAGMA_INCLUDE
HYPRE_SYCL_LIBS
HYPRE_SYCL_INCL
HYPRE_HIP_LIBS
@ -858,9 +856,6 @@ with_superlu_lib
with_dsuperlu
with_dsuperlu_include
with_dsuperlu_lib
with_magma
with_magma_include
with_magma_lib
with_fei_inc_dir
with_mli
with_MPI
@ -4582,30 +4577,6 @@ then :
fi
if test "x$with_magma" = "xyes"; then :
$as_echo "#define HYPRE_USING_MAGMA 1" >>confdefs.h
fi
# Check whether --with-magma-include was given.
if test "${with_magma_include+set}" = set; then :
withval=$with_magma_include; for dmagma_inc_dir in $withval; do
MAGMA_INCLUDE="-I$magma_inc_dir $MAGMA_INCLUDE"
done
fi
# Check whether --with-magma-lib was given.
if test "${with_magma_lib+set}" = set; then :
withval=$with_magma_lib; for magma_lib in $withval; do
MAGMA_LIBS="$MAGMA_LIBS $magma_lib"
done
fi
# Check whether --with-fei-inc-dir was given.
@ -11009,6 +10980,12 @@ printf "%s\n" "#define HYPRE_USING_SYCL 1" >>confdefs.h
LDFLAGS+=" -Xsycl-target-backend ${HYPRE_SYCL_TARGET_BACKEND}"
fi
if test "$hypre_using_shared" = "yes"
then
SYCLFLAGS="${SHARED_COMPILE_FLAG} ${SYCLFLAGS}"
BUILD_CC_SHARED="\${CUCC} ${SHARED_BUILD_FLAG}"
fi
if test "$hypre_user_chose_cuflags" = "no"
then
CUFLAGS="${SYCLFLAGS}"

View File

@ -70,7 +70,7 @@ $(STRUCTMVOBJFILES)\
$(UTILITIESOBJFILES)
SONAME = libHYPRE-${HYPRE_RELEASE_VERSION}${HYPRE_LIB_SUFFIX}
SOLIBS = ${DSUPERLU_LIBS} ${MAGMA_LIBS} ${MPILIBDIRS} ${MPILIBS} ${LAPACKLIBDIRS} ${LAPACKLIBS}\
SOLIBS = ${DSUPERLU_LIBS} ${HYPRE_MAGMA_LIB_DIR} ${HYPRE_MAGMA_LIB} ${MPILIBDIRS} ${MPILIBS} ${LAPACKLIBDIRS} ${LAPACKLIBS}\
${BLASLIBDIRS} ${BLASLIBS} ${LIBS} ${FLIBS}