added back cuda.h includes to fix missing CUDA_VERSION
authorSzilard Pall <pszilard@cbr.su.se>
Thu, 24 Jan 2013 01:27:09 +0000 (02:27 +0100)
committerSzilard Pall <pszilard@cbr.su.se>
Thu, 24 Jan 2013 18:49:11 +0000 (19:49 +0100)
commitb59c5329bd7fa97b965a680a9506ff94f6a06463
tree546c714a4430baafa2a97c60019baf326fd4299a
parenta3a100c27369906cd6485ecbc9830639707041cb
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
src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu