fixed recent bug with CUDA texture objects
authorBerk Hess <hess@kth.se>
Tue, 22 Oct 2013 20:01:32 +0000 (22:01 +0200)
committerBerk Hess <hess@kth.se>
Tue, 22 Oct 2013 20:01:32 +0000 (22:01 +0200)
On GPUs with CUDA architecture 3.0, mdrun would exit with an error.
This bug was introduced very recently in 43b41cb8
Fixes #1361

Change-Id: I0c46867b987cbf3c0da3aa9384d985fef1e4aa73

src/mdlib/nbnxn_cuda/nbnxn_cuda.cu

index e65c6ed603460b66dd1f77911e1104a5bc0690a5..f82fd3a9905b31a4ab91f1b72c3dfff404420794 100644 (file)
@@ -61,7 +61,7 @@
 #include "nbnxn_cuda.h"
 #include "nbnxn_cuda_data_mgmt.h"
 
-#if defined TEXOBJ_SUPPORTED && __CUDA_ARCH__ > 300
+#if defined TEXOBJ_SUPPORTED && __CUDA_ARCH__ >= 300
 #define USE_TEXOBJ
 #endif