]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable vectorization with CUDA 8128/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 13 May 2019 13:21:55 +0000 (15:21 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 13 May 2019 13:21:55 +0000 (15:21 +0200)
include/deal.II/base/config.h.in

index 346a759ce61d551c4868f9456a817c29b62e2f30..44e174ef1ef67d76b17ea765c2151367ab228d96 100644 (file)
 // 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@

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.