cuda: make sure we don't use cuda in proto detect

pull/2168/head
Victor Julien 9 years ago
parent 4111331ab0
commit 3c59d60049

@ -1530,6 +1530,12 @@ int AppLayerProtoDetectSetup(void)
uint16_t spm_matcher = SinglePatternMatchDefaultMatcher();
uint16_t mpm_matcher = PatternMatchDefaultMatcher();
#ifdef __SC_CUDA_SUPPORT__
/* CUDA won't work here, so fall back to AC */
if (mpm_matcher == MPM_AC_CUDA)
mpm_matcher = DEFAULT_MPM;
#endif
alpd_ctx.spm_global_thread_ctx = SpmInitGlobalThreadCtx(spm_matcher);
if (alpd_ctx.spm_global_thread_ctx == NULL) {
SCLogError(SC_ERR_FATAL, "Unable to alloc SpmGlobalThreadCtx.");

Loading…
Cancel
Save