<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello Victor,<br><br>As suggested, I installed nvidia-cuda-toolkit  5.0.35-8~bpo70+1 from wheezy-backports.<br><br>Now compiler complains at the following, any clue? :(<br><br>/usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_35 -arch=sm_35 -ptx util-mpm-ac-cuda-kernel.cu<br>/usr/bin/python ptxdump.py cuda-ptxdump util-mpm-ac-cuda-kernel.ptx_sm_10 util-mpm-ac-cuda-kernel.ptx_sm_11 util-mpm-ac-cuda-kernel.ptx_sm_12 util-mpm-ac-cuda-kernel.ptx_sm_13 util-mpm-ac-cuda-kernel.ptx_sm_20 util-mpm-ac-cuda-kernel.ptx_sm_21 util-mpm-ac-cuda-kernel.ptx_sm_30 util-mpm-ac-cuda-kernel.ptx_sm_35<br>ptxdump.py: CUmodule util_mpm_ac_cuda_kernel_sm_10 packed successfully<br>ptxdump.py: CUmodule util_mpm_ac_cuda_kernel_sm_11 packed successfully<br>ptxdump.py: CUmodule util_mpm_ac_cuda_kernel_sm_12 packed successfully<br>ptxdump.py: CUmodule util_mpm_ac_cuda_kernel_sm_13 packed successfully<br>ptxdump.py: CUmodule util_mpm_ac_cuda_kernel_sm_20 packed successfully<br>ptxdump.py: CUmodule util_mpm_ac_cuda_kernel_sm_21 packed successfully<br>ptxdump.py: CUmodule util_mpm_ac_cuda_kernel_sm_30 packed successfully<br>ptxdump.py: CUmodule util_mpm_ac_cuda_kernel_sm_35 packed successfully<br>ptxdump.py: cuda-ptxdump.h written successfully<br>make  all-am<br>make[3]: Entering directory `/suricata-2.0/src'<br>gcc -DHAVE_CONFIG_H -I. -I..   -I./../libhtp/  -I/usr/local/pfring/include -I/usr/local/pfring/include -I/usr/local/cuda/include -DLOCAL_STATE_DIR=\"/usr/local/pfring/var\" -g -O2 -Wextra -Werror-implicit-function-declaration -fno-tree-pre -Wall -Wno-unused-parameter -std=gnu99  -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -march=native -DPROFILING -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DHAVE_PFRING  -I/usr/include -DLIBPCAP_VERSION_MAJOR=1 -DHAVE_PCAP_SET_BUFF -D__SC_CUDA_SUPPORT__ -DHAVE_LIBCAP_NG -MT alert-debuglog.o -MD -MP -MF .deps/alert-debuglog.Tpo -c -o alert-debuglog.o alert-debuglog.c<br>In file included from util-cuda-handlers.h:28:0,<br>                 from decode.h:617,<br>                 from detect-engine-alert.h:28,<br>                 from suricata-common.h:321,<br>                 from alert-debuglog.c:24:<br>util-cuda.h:150:29: error: unknown type name 'CUipcEventHandle'<br>util-cuda.h:151:27: error: unknown type name 'CUipcMemHandle'<br>util-cuda.h:152:49: error: unknown type name 'CUipcEventHandle'<br>util-cuda.h:153:48: error: unknown type name 'CUipcMemHandle'<br>make[3]: *** [alert-debuglog.o] Error 1<br>make[3]: Leaving directory `/suricata-2.0/src'<br>make[2]: *** [all] Error 2<br>make[2]: Leaving directory `/suricata-2.0/src'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/suricata-2.0'<br>make: *** [all] Error 2<br><br>Regards,<br>Shant K.<br><br><div>> Date: Tue, 25 Mar 2014 16:53:46 +0100<br>> From: lists@inliniac.net<br>> To: oisf-users@lists.openinfosecfoundation.org<br>> Subject: Re: [Oisf-users] suricata-2.0rc3 'make' error with Nvidia K20/Tesla<br>> <br>> On 03/24/2014 07:17 PM, Shant Kassardjian wrote:<br>> > Hello,<br>> > <br>> > I'm having trouble compiling suricata-2.0rc3 with Nvidia K20 as I get<br>> > the following 'make' error while compiling:<br>> > <br>> > usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_10 -arch=sm_10 -ptx<br>> > util-mpm-ac-cuda-kernel.cu<br>> > util-mpm-ac-cuda-kernel.cu: In function `SCACCudaSearch32':<br>> > util-mpm-ac-cuda-kernel.cu:79: warning: cast to pointer from integer of<br>> > different size<br>> > ./util-mpm-ac-cuda-kernel.cu(54): Warning: Cannot tell what pointer<br>> > points to, assuming global memory space<br>> > ./util-mpm-ac-cuda-kernel.cu(87): Warning: Cannot tell what pointer<br>> > points to, assuming global memory space<br>> > /usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_11 -arch=sm_11 -ptx<br>> > util-mpm-ac-cuda-kernel.cu<br>> > util-mpm-ac-cuda-kernel.cu: In function `SCACCudaSearch32':<br>> > util-mpm-ac-cuda-kernel.cu:79: warning: cast to pointer from integer of<br>> > different size<br>> > ./util-mpm-ac-cuda-kernel.cu(54): Warning: Cannot tell what pointer<br>> > points to, assuming global memory space<br>> > ./util-mpm-ac-cuda-kernel.cu(87): Warning: Cannot tell what pointer<br>> > points to, assuming global memory space<br>> > /usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_12 -arch=sm_12 -ptx<br>> > util-mpm-ac-cuda-kernel.cu<br>> > util-mpm-ac-cuda-kernel.cu: In function `SCACCudaSearch32':<br>> > util-mpm-ac-cuda-kernel.cu:79: warning: cast to pointer from integer of<br>> > different size<br>> > ./util-mpm-ac-cuda-kernel.cu(54): Warning: Cannot tell what pointer<br>> > points to, assuming global memory space<br>> > ./util-mpm-ac-cuda-kernel.cu(87): Warning: Cannot tell what pointer<br>> > points to, assuming global memory space<br>> > /usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_13 -arch=sm_13 -ptx<br>> > util-mpm-ac-cuda-kernel.cu<br>> > util-mpm-ac-cuda-kernel.cu: In function `SCACCudaSearch32':<br>> > util-mpm-ac-cuda-kernel.cu:79: warning: cast to pointer from integer of<br>> > different size<br>> > ./util-mpm-ac-cuda-kernel.cu(54): Warning: Cannot tell what pointer<br>> > points to, assuming global memory space<br>> > ./util-mpm-ac-cuda-kernel.cu(87): Warning: Cannot tell what pointer<br>> > points to, assuming global memory space<br>> > /usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_20 -arch=sm_20 -ptx<br>> > util-mpm-ac-cuda-kernel.cu<br>> > /usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_21 -arch=sm_21 -ptx<br>> > util-mpm-ac-cuda-kernel.cu<br>> > /usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_30 -arch=sm_30 -ptx<br>> > util-mpm-ac-cuda-kernel.cu<br>> > /usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_35 -arch=sm_35 -ptx<br>> > util-mpm-ac-cuda-kernel.cu<br>> > nvcc fatal   : Value 'sm_35' is not defined for option 'gpu-architecture'<br>> > make[2]: *** [util-mpm-ac-cuda-kernel.ptx_sm_35] Error 255<br>> > make[2]: Leaving directory `/home/skassardjian/suricata-2.0rc3/src'<br>> > make[1]: *** [all-recursive] Error 1<br>> > make[1]: Leaving directory `/home/skassardjian/suricata-2.0rc3'<br>> > make: *** [all] Error 2<br>> > <br>> > nvcc --version<br>> > nvcc: NVIDIA (R) Cuda compiler driver<br>> > Copyright (c) 2005-2012 NVIDIA Corporation<br>> > Built on Thu_Apr__5_00:24:31_PDT_2012<br>> > Cuda compilation tools, release 4.2, V0.2.1221<br>> > <br>> > If I use suricata 1.4.7, I can compile cuda properly with no error<br>> > however I'm missing ac-cuda algo.<br>> > <br>> > 24/3/2014 -- 18:10:36 - <Info> - This is Suricata version 1.4.7 RELEASE<br>> > 24/3/2014 -- 18:10:36 - <Info> - CPUs/cores online: 40<br>> > 24/3/2014 -- 18:10:38 - <Info> - GPU Device 1: Tesla K20Xm, 14<br>> > Multiprocessors, 732MHz, CUDA Compute Capability 3.5<br>> > CUDA Cards recognized by the suricata CUDA module -<br>> > |-----------------------------------------------------------------------------|<br>> > | Device Id  |     Device Name      |   Multi-   | Clock Rate | Cuda<br>> > Compute  |<br>> > |            |                      | Processors |    (MHz)   |<br>> > Capability    |<br>> > |-----------------------------------------------------------------------------|<br>> > | 0          | Tesla K20Xm          | 14         | 732        |<br>> > 3.5           |<br>> > |-----------------------------------------------------------------------------|<br>> > <br>> > <br>> > I'm using Debian wheezy gcc4.7 with cuda toolkit 4.2.9-2 and<br>> > nvidia-kernel-amd64 304.88.<br>> > <br>> > Any help is appreciated :)<br>> <br>> I think you'll have better luck with CUDA 5.x.<br>> <br>> -- <br>> ---------------------------------------------<br>> Victor Julien<br>> http://www.inliniac.net/<br>> PGP: http://www.inliniac.net/victorjulien.asc<br>> ---------------------------------------------<br>> <br>> _______________________________________________<br>> Suricata IDS Users mailing list: oisf-users@openinfosecfoundation.org<br>> Site: http://suricata-ids.org | Support: http://suricata-ids.org/support/<br>> List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users<br>> OISF: http://www.openinfosecfoundation.org/<br></div>                                     </div></body>
</html>