Avoid common.h inclusion in CUDA code
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 28 Oct 2014 04:21:59 +0000 (06:21 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Tue, 28 Oct 2014 04:26:40 +0000 (06:26 +0200)
This is solved nicer in master with I943f90f, but there is little value
in backporting that compared to the effort, since more or less all
changes from there would conflict.  This may fix compilation problems
with some nvcc/boost combinations.

Change-Id: I82a26c60d366bfe5fdbcfd8a17bffdb1139ce017

src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu

index 9200773cb8e349d68f069a76af3d6833517ac3be..23ccf848a295c9ab877c1a54f321c4128203575d 100644 (file)
 #include "pmalloc_cuda.h"
 #include "gpu_utils.h"
 
-#include "gromacs/utility/common.h"
+// Hack for release-5-0 only to avoid a common.h dependency in CUDA code,
+// which causes issues with some nvcc/boost combinations.
+// Solved with a larger-scale header refactoring in master.
+#ifndef GMX_UNUSED_VALUE
+#define GMX_UNUSED_VALUE(value) (void)value
+#endif
 
 static bool bUseCudaEventBlockingSync = false; /* makes the CPU thread block */