Project

General

Profile

Actions

Bug #1019

closed

CUDA build fails on 4.2 runtime

Added by Victor Julien over 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

After adding the 3.5 support here https://github.com/inliniac/suricata/pull/596, CUDA no longer builds on the 4.2 runtime

nvcc fatal   : Value 'sm_35' is not defined for option 'gpu-architecture'
make[2]: *** [util-mpm-ac-cuda-kernel.ptx_sm_35] Error 255

I guess my CUDA env is too old.

I would like it to work correctly with the one that came with my Ubuntu version though. Can we somehow detect the version supported by nvcc?

My env:

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2012 NVIDIA Corporation
Built on Thu_Apr__5_00:24:31_PDT_2012
Cuda compilation tools, release 4.2, V0.2.1221

Actions

Also available in: Atom PDF