From b59c5329bd7fa97b965a680a9506ff94f6a06463 Mon Sep 17 00:00:00 2001 From: Szilard Pall Date: Thu, 24 Jan 2013 02:27:09 +0100 Subject: [PATCH] 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 --- src/mdlib/nbnxn_cuda/nbnxn_cuda.cu | 2 ++ src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu | 2 ++ 2 files changed, 4 insertions(+) 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" -- 2.22.0