Zcpy Bcast Send API: Guard ZC API macros for non-RDMA layers
[charm.git] / src / ck-core / envelope.h
index eea3b9f766b1962bb450d7e6263d6487fc905c21..b30ee28a344f8d969115617e11fefcfa969457eb 100644 (file)
@@ -353,7 +353,9 @@ public:
       env->setEpIdx(0);
       env->setIsVarSysMsg(0);
 
+#if CMK_ONESIDED_IMPL
       CMI_ZC_MSGTYPE(env) = CMK_REG_NO_ZC_MSG; // Set the default as CMK_REG_NO_ZC_MSG
+#endif
 
 #if USE_CRITICAL_PATH_HEADER_ARRAY
       env->pathHistory.reset();