biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix malformed CUDA version macro check
[alexxy/gromacs.git]
/
src
/
mdlib
/
nbnxn_cuda
/
nbnxn_cuda_data_mgmt.cu
diff --git
a/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu
b/src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu
index 087b76092747044f93e51519f8a35f0068b710ea..a35bfedb818b393dc12c769ccf722fc62eef66be 100644
(file)
--- a/
src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu
+++ b/
src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu
@@
-458,7
+458,7
@@
static int pick_nbnxn_kernel_version(FILE *fplog,
}
bCUDA32 = bCUDA40 = false;
}
bCUDA32 = bCUDA40 = false;
-#if CUDA_VERSION == 3
20
0
+#if CUDA_VERSION == 3
02
0
bCUDA32 = true;
sprintf(sbuf, "3.2");
#elif CUDA_VERSION == 4000
bCUDA32 = true;
sprintf(sbuf, "3.2");
#elif CUDA_VERSION == 4000
@@
-556,7
+556,7
@@
void nbnxn_cuda_init(FILE *fplog,
* priorities, because we are querying the priority range which in this
* case will be a single value.
*/
* priorities, because we are querying the priority range which in this
* case will be a single value.
*/
-#if CUDA_VERSION >= 5
50
0
+#if CUDA_VERSION >= 5
05
0
{
int highest_priority;
stat = cudaDeviceGetStreamPriorityRange(NULL, &highest_priority);
{
int highest_priority;
stat = cudaDeviceGetStreamPriorityRange(NULL, &highest_priority);