<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,<br><br>I'm having trouble compiling suricata-2.0rc3 with Nvidia K20 as I get 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 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 different size<br>./util-mpm-ac-cuda-kernel.cu(54): Warning: Cannot tell what pointer points to, assuming global memory space<br>./util-mpm-ac-cuda-kernel.cu(87): Warning: Cannot tell what pointer points to, assuming global memory space<br>/usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_11 -arch=sm_11 -ptx 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 different size<br>./util-mpm-ac-cuda-kernel.cu(54): Warning: Cannot tell what pointer points to, assuming global memory space<br>./util-mpm-ac-cuda-kernel.cu(87): Warning: Cannot tell what pointer points to, assuming global memory space<br>/usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_12 -arch=sm_12 -ptx 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 different size<br>./util-mpm-ac-cuda-kernel.cu(54): Warning: Cannot tell what pointer points to, assuming global memory space<br>./util-mpm-ac-cuda-kernel.cu(87): Warning: Cannot tell what pointer points to, assuming global memory space<br>/usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_13 -arch=sm_13 -ptx 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 different size<br>./util-mpm-ac-cuda-kernel.cu(54): Warning: Cannot tell what pointer points to, assuming global memory space<br>./util-mpm-ac-cuda-kernel.cu(87): Warning: Cannot tell what pointer points to, assuming global memory space<br>/usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_20 -arch=sm_20 -ptx util-mpm-ac-cuda-kernel.cu<br>/usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_21 -arch=sm_21 -ptx util-mpm-ac-cuda-kernel.cu<br>/usr/bin/nvcc -O2 -o util-mpm-ac-cuda-kernel.ptx_sm_30 -arch=sm_30 -ptx util-mpm-ac-cuda-kernel.cu<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>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 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 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 Compute  |<br>|            |                      | Processors |    (MHz)   | Capability    |<br>|-----------------------------------------------------------------------------|<br>| 0          | Tesla K20Xm          | 14         | 732        | 3.5           |<br>|-----------------------------------------------------------------------------|<br><br><br>I'm using Debian wheezy gcc4.7 with cuda toolkit 4.2.9-2 and nvidia-kernel-amd64 304.88.<br><br>Any help is appreciated :)<br><br>Shant K.<br><br><br>                                        </div></body>
</html>