Add GPULDLIBS into Make.inc (and fix configry)

repack-precuda
sfilippone 1 year ago
parent d0d4e45877
commit 81e9121c91

@ -69,6 +69,7 @@ CBINDLIBNAME=libpsb_cbind.a
GPUD=@GPUD@ GPUD=@GPUD@
GPULD=@GPULD@ GPULD=@GPULD@
LGPU=@LGPU@
SPGPUDIR=@SPGPU_DIR@ SPGPUDIR=@SPGPU_DIR@
SPGPU_INCDIR=@SPGPU_INCDIR@ SPGPU_INCDIR=@SPGPU_INCDIR@
@ -92,3 +93,4 @@ CUDEFINES=@CUDEFINES@
@PSBLASRULES@ @PSBLASRULES@
PSBGPULDLIBS=$(LGPU) $(SPGPU_LIBS) $(CUDA_LIBS) $(LIBS)

3
configure vendored

@ -653,6 +653,7 @@ ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE am__EXEEXT_TRUE
LTLIBOBJS LTLIBOBJS
LIBOBJS LIBOBJS
LGPU
GPULD GPULD
GPUD GPUD
CUDEFINES CUDEFINES
@ -11020,6 +11021,7 @@ CPPFLAGS="$SAVE_CPPFLAGS"
if test "x$pac_cv_have_spgpu" == "xyes" ; then if test "x$pac_cv_have_spgpu" == "xyes" ; then
GPUD=gpud; GPUD=gpud;
GPULD=gpuld; GPULD=gpuld;
LGPU="-lpsb_gpu";
EXTRALDLIBS="-lstdc++"; EXTRALDLIBS="-lstdc++";
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: At this point GPUTARGET is $GPUD $GPULD" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: At this point GPUTARGET is $GPUD $GPULD" >&5
@ -11161,6 +11163,7 @@ FDEFINES=$(PSBFDEFINES)
############################################################################### ###############################################################################

@ -802,6 +802,7 @@ PAC_CHECK_SPGPU()
if test "x$pac_cv_have_spgpu" == "xyes" ; then if test "x$pac_cv_have_spgpu" == "xyes" ; then
GPUD=gpud; GPUD=gpud;
GPULD=gpuld; GPULD=gpuld;
LGPU="-lpsb_gpu";
EXTRALDLIBS="-lstdc++"; EXTRALDLIBS="-lstdc++";
fi fi
AC_MSG_NOTICE([At this point GPUTARGET is $GPUD $GPULD]) AC_MSG_NOTICE([At this point GPUTARGET is $GPUD $GPULD])
@ -933,6 +934,7 @@ AC_SUBST(CUDA_NVCC)
AC_SUBST(CUDEFINES) AC_SUBST(CUDEFINES)
AC_SUBST(GPUD) AC_SUBST(GPUD)
AC_SUBST(GPULD) AC_SUBST(GPULD)
AC_SUBST(LGPU)
############################################################################### ###############################################################################
# the following files will be created by Automake # the following files will be created by Automake

Loading…
Cancel
Save