From e39ac46df165317e6f79287528e52afe26505f1a Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Mon, 13 May 2019 15:21:55 +0200 Subject: [PATCH] Disable vectorization with CUDA --- include/deal.II/base/config.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 346a759ce6..44e174ef1e 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -118,7 +118,7 @@ // We need to disable SIMD vectorization for CUDA device code. // Otherwise, nvcc compilers from version 9 on will emit an error message like: // "[...] contains a vector, which is not supported in device code" -#ifdef __CUDA_ARCH__ +#ifdef DEAL_II_WITH_CUDA # define DEAL_II_COMPILER_VECTORIZATION_LEVEL 0 #else # define DEAL_II_COMPILER_VECTORIZATION_LEVEL @DEAL_II_COMPILER_VECTORIZATION_LEVEL@ -- 2.39.5