瀏覽代碼

Drop detecting cudaMemcpyPeer

it seems CUDA 9.0 changed the symbol appearance, just assume it is there by default
Samuel Thibault 7 年之前
父節點
當前提交
d1dd61f61d
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      configure.ac

+ 1 - 8
configure.ac

@@ -1377,14 +1377,7 @@ fi
 # Peer transfers are only supported since CUDA 4.0
 # Peer transfers are only supported since CUDA 4.0
 # Disable them if user explicity wants to disable them
 # Disable them if user explicity wants to disable them
 AC_ARG_ENABLE(cuda_memcpy_peer, [AS_HELP_STRING([--disable-cuda-memcpy-peer], [do not allow peer transfers when using CUDA 4.0])],, [enable_cuda_memcpy_peer=yes])
 AC_ARG_ENABLE(cuda_memcpy_peer, [AS_HELP_STRING([--disable-cuda-memcpy-peer], [do not allow peer transfers when using CUDA 4.0])],, [enable_cuda_memcpy_peer=yes])
-have_cuda_memcpy_peer=no
-if test x$enable_cuda_memcpy_peer = xyes -a x$enable_cuda = xyes ; then
-    SAVED_LDFLAGS="${LDFLAGS}"
-    LDFLAGS="${LDFLAGS} ${STARPU_CUDA_LDFLAGS}"
-    AC_CHECK_FUNC([cudaMemcpyPeer], have_cuda_memcpy_peer=yes, have_cuda_memcpy_peer=no)
-    LDFLAGS="${SAVED_LDFLAGS}"
-fi
-if test x$have_cuda_memcpy_peer = xyes; then
+if test x$enable_cuda_memcpy_peer = xyes; then
     AC_DEFINE(STARPU_HAVE_CUDA_MEMCPY_PEER,[1],[Peer transfers are supported in CUDA])
     AC_DEFINE(STARPU_HAVE_CUDA_MEMCPY_PEER,[1],[Peer transfers are supported in CUDA])
 fi
 fi