From: Szilard Pall Date: Thu, 24 Jan 2013 01:27:09 +0000 (+0100) Subject: added back cuda.h includes to fix missing CUDA_VERSION X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=b59c5329bd7fa97b965a680a9506ff94f6a06463;p=alexxy%2Fgromacs.git added back cuda.h includes to fix missing CUDA_VERSION nvcc doesn't define its version identity macro, CUDA_VERSION, by default, but this needs to be pulled in through cuda.h. Quite weird and non-standard behavior, but as swithing to legacy kernels and certain kernel optimizations are broken now, to fix these we need to include cuda.h. Change-Id: I4836335e97a287e18e595c160819db2e46a8d798 --- diff --git a/src/mdlib/nbnxn_cuda/nbnxn_cuda.cu b/src/mdlib/nbnxn_cuda/nbnxn_cuda.cu index f36104a618..6d27e77486 100644 --- a/src/mdlib/nbnxn_cuda/nbnxn_cuda.cu +++ b/src/mdlib/nbnxn_cuda/nbnxn_cuda.cu @@ -43,6 +43,8 @@ #include #endif +#include + #include "types/simple.h" #include "types/nbnxn_pairlist.h" #include "types/nb_verlet.h" diff --git a/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu b/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu index f9f9bfa2c3..d5074d2f38 100644 --- a/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu +++ b/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu @@ -43,6 +43,8 @@ #include #include +#include + #include "gmx_fatal.h" #include "smalloc.h" #include "tables.h"