From: Martin Kronbichler Date: Mon, 13 May 2019 13:21:55 +0000 (+0200) Subject: Disable vectorization with CUDA X-Git-Tag: v9.1.0-rc1~25^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8128%2Fhead;p=dealii.git Disable vectorization with CUDA --- 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@