[ --with-cuda-nvcc=DIR cuda nvcc compiler directory],
[with_cuda_nvcc="$withval"],[with_cuda_nvcc=no])
- AC_DEFINE([SC_CUDA_SUPPORT__],[1],(CUDA support enabled))
+ AC_DEFINE([__SC_CUDA_SUPPORT__],[1],(CUDA support enabled))
if test "$with_cuda_includes" != "no"; then
CPPFLAGS="${CPPFLAGS} -I${with_cuda_includes}"
fi
])
AM_CONDITIONAL([BUILD_CUDA], [test "x$enable_cuda" = "xyes"])
+ AM_CONDITIONAL([__SC_CUDA_SUPPORT__], [test "x$enable_cuda" = "xyes"])
# Check for libcap-ng
* to be reallocated to other writers.
*/
-#ifdef __SC_CUDA_SUPPORT__
#include "suricata-common.h"
+#ifdef __SC_CUDA_SUPPORT__
#include "suricata.h"
#include "util-atomic.h"
/* compile in, only if we have a CUDA enabled device on the machine, with the
* toolkit and the driver installed */
-#ifdef __SC_CUDA_SUPPORT__
#include "suricata-common.h"
+#ifdef __SC_CUDA_SUPPORT__
+
#include "util-error.h"
#include "util-debug.h"
#include "conf.h"
* \author Anoop Saldanha <anoopsaldanha@gmail.com>
*/
+#include "suricata-common.h"
#ifdef __SC_CUDA_SUPPORT__
-
#include "suricata.h"
#include "util-mpm.h"
#include "util-cuda-handlers.h"
/* compile in, only if we have a CUDA enabled device on the machine, with the
* toolkit and the driver installed */
+
+#include "suricata-common.h"
#ifdef __SC_CUDA_SUPPORT__
#include <cuda.h>
#include "util-cuda.h"
-#include "suricata-common.h"
-
#include "util-error.h"
#include "util-debug.h"
#include "util-unittest.h"