cuda: fix compilation

pull/1883/head
Victor Julien 9 years ago
parent c12044c6c5
commit fde7a2f656

@ -1233,7 +1233,7 @@
[ --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}"
@ -1290,6 +1290,7 @@
fi
])
AM_CONDITIONAL([BUILD_CUDA], [test "x$enable_cuda" = "xyes"])
AM_CONDITIONAL([__SC_CUDA_SUPPORT__], [test "x$enable_cuda" = "xyes"])
# Check for libcap-ng

@ -45,9 +45,9 @@
* 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"

@ -23,10 +23,11 @@
/* 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"

@ -21,8 +21,8 @@
* \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"

@ -25,12 +25,12 @@
/* 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"

Loading…
Cancel
Save