diff --git a/src/config/Makefile.config.in b/src/config/Makefile.config.in index d6e9f6009..1bb6b7e91 100644 --- a/src/config/Makefile.config.in +++ b/src/config/Makefile.config.in @@ -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 ################################################################## diff --git a/src/config/configure.in b/src/config/configure.in index 705a0e0fe..ee518795e 100644 --- a/src/config/configure.in +++ b/src/config/configure.in @@ -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 diff --git a/src/configure b/src/configure index 2281d6295..6293b1d92 100755 --- a/src/configure +++ b/src/configure @@ -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}" diff --git a/src/lib/Makefile b/src/lib/Makefile index f2ba96203..7ac431a49 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile @@ -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}