Fixes and updates to BlueGene/Q support
[alexxy/gromacs.git] / src / gromacs / gmxlib / network.c
index ac2026214b2d4448ab05d06a41bfaca373e6bd52..ba89f439494890053892c695373a44ad82a16ccf 100644 (file)
@@ -201,6 +201,17 @@ static int mpi_hostname_hash(void)
 }
 
 #if defined GMX_LIB_MPI && defined GMX_TARGET_BGQ
+
+#ifdef __clang__
+/* IBM's declaration of this function in
+ * /bgsys/drivers/V1R2M2/ppc64/spi/include/kernel/process.h
+ * erroneously fails to specify __INLINE__, despite
+ * /bgsys/drivers/V1R2M2/ppc64/spi/include/kernel/cnk/process_impl.h
+ * specifiying __INLINE__, so bgclang thinks they are different enough
+ * to complain about. */
+static uint64_t Kernel_GetJobID();
+#endif
+
 #include <spi/include/kernel/location.h>
 
 static int bgq_nodenum(void)