From 9b70eeaf1b182e6814ab9a0eb8b9c4addd888b1a Mon Sep 17 00:00:00 2001 From: Eric J Bohm Date: Fri, 12 Sep 2025 14:51:51 -0500 Subject: [PATCH] bugfix: WIN32 compatibility needs to include process.h also, msvc doesn't recognize "and" as an alias for && --- src/libs/ck-libs/allGather/allGather.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libs/ck-libs/allGather/allGather.C b/src/libs/ck-libs/allGather/allGather.C index 02b3fdd8bb..a90a465db6 100644 --- a/src/libs/ck-libs/allGather/allGather.C +++ b/src/libs/ck-libs/allGather/allGather.C @@ -1,4 +1,8 @@ #include "allGather.h" +#if defined(_WIN32) +//for getpid() +#include "process.h" +#endif int AllGather::gen_rand() { @@ -129,7 +133,7 @@ void AllGather::Flood(int sender, CkNcpyBuffer src) CK_BUFFER_REG); dst.get(src); for (int i = 0; i < n; i++) - if (graph[CkMyPe()][i] == 1 and i != sender) + if (graph[CkMyPe()][i] == 1 && i != sender) thisProxy[i].Flood(sender, src); }