nb->nbparam->eeltype,
nb->nbparam->vdwtype);
- /* Here we pass macros and static const int variables defined in include
- * files outside the nbnxn_ocl as macros, to avoid including those files
- * in the JIT compilation that happens at runtime.
- */
-
+ /* Here we pass macros and static const int variables defined
+ * in include files outside the nbnxn_ocl as macros, to avoid
+ * including those files in the JIT compilation that happens
+ * at runtime. This is particularly a problem for headers that
+ * depend on config.h, such as nbnxn_pairlist.h. */
extraDefines += gmx::formatString(
" -DNBNXN_GPU_CLUSTER_SIZE=%d "
"%s",
c_nbnxnGpuClusterSize, /* Defined in nbnxn_pairlist.h */
(nb->bPrefetchLjParam) ? "-DIATYPE_SHMEM" : ""
);
-
try
{
/* TODO when we have a proper MPI-aware logging module,
the log output here should be written there */
program = gmx::ocl::compileProgram(stderr,
- "src/gromacs/mdlib/nbnxn_ocl",
+ "gromacs/mdlib/nbnxn_ocl",
"nbnxn_ocl_kernels.cl",
extraDefines,
nb->dev_rundata->context,