From: Berk Hess Date: Tue, 22 Oct 2013 20:01:32 +0000 (+0200) Subject: fixed recent bug with CUDA texture objects X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=ebec39fd60d27c9ebdedf8655fb519a9a899d52b;p=alexxy%2Fgromacs.git fixed recent bug with CUDA texture objects 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 --- diff --git a/src/mdlib/nbnxn_cuda/nbnxn_cuda.cu b/src/mdlib/nbnxn_cuda/nbnxn_cuda.cu index e65c6ed603..f82fd3a990 100644 --- a/src/mdlib/nbnxn_cuda/nbnxn_cuda.cu +++ b/src/mdlib/nbnxn_cuda/nbnxn_cuda.cu @@ -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