This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/cuda/configure.in

55 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-11-03 14:13:08 +00:00
AC_ARG_WITH(cuda,
2014-10-25 16:46:13 +01:00
[ --with-cuda use minisat interface],
2013-11-03 14:13:08 +00:00
if test "$withval" = yes; then
2014-10-25 16:46:13 +01:00
yap_cv_cuda=/usr/local/cuda
2013-11-03 14:13:08 +00:00
elif test "$withval" = no; then
yap_cv_cuda=no
else
yap_cv_cuda="$withval"
fi,
[yap_cv_cuda=no])
CUDA_LDFLAGS=""
CUDA_CPPFLAGS=""
if test "$yap_cv_cuda" = no
then
2014-02-10 23:30:21 +00:00
PKG_CUDA=""
2013-11-03 14:13:08 +00:00
else
AC_PATH_PROG(NVCC, [nvcc], [no], [$yap_cv_cuda/bin])
if test "$yap_cv_cuda" = no
then
2014-02-10 23:30:21 +00:00
PKG_CUDA=""
2013-11-03 14:13:08 +00:00
else
2014-02-10 23:30:21 +00:00
PKG_CUDA="packages/cuda"
2013-11-03 14:13:08 +00:00
case "$target_os" in
*darwin*)
2015-02-03 02:37:25 +00:00
CUDA_LDFLAGS="$LDFLAGS $LIBS"
2013-11-03 14:13:08 +00:00
CUDA_CPPFLAGS="-arch=sm_20 -Xcompiler -fPIC -O3 "
CUDA_SHLIB_LD="$NVCC --shared -L../.. -lYap "
2014-10-08 16:50:33 +01:00
;;
*linux*)
CUDA_LDFLAGS="$LDFLAGS"
CUDA_CPPFLAGS="-arch=sm_20 -Xcompiler -fPIC -O3 "
CUDA_SHLIB_LD="$NVCC --shared -L../.. -lYap "
2013-11-03 14:13:08 +00:00
;;
**)
CUDA_LDFLAGS="$LDFLAGS $LIBS"
CUDA_CPPFLAGS=" -arch=sm_20 -Xcompiler -fPIC -O3 "
CUDA_SHLIB_LD="$NVCC -Xcompiler -export-dynamic"
;;
esac
fi
fi
2014-02-10 23:30:21 +00:00
AC_SUBST(PKG_CUDA)
2013-11-03 14:13:08 +00:00
AC_SUBST(NVCC)
AC_SUBST(CUDA_SHLIB_LD)
AC_SUBST(CUDA_CPPFLAGS)
AC_SUBST(CUDA_LDFLAGS)
AC_CONFIG_FILES([packages/cuda/Makefile])
2014-02-10 23:30:21 +00:00
mkdir -p packages/cuda