@@ -870,7 +870,6 @@ void _createGroup(CkGroupID groupID, envelope *env)
870
870
_CHECK_USED (env );
871
871
_SET_USED (env , 1 );
872
872
int epIdx = env -> getEpIdx ();
873
- int gIdx = _entryTable [epIdx ]-> chareIdx ;
874
873
env -> setGroupNum (groupID );
875
874
env -> setSrcPe (CkMyPe ());
876
875
env -> setGroupEpoch (CkpvAccess (_charmEpoch ));
@@ -1175,10 +1174,6 @@ IrrGroup *lookupGroupAndBufferIfNotThere(CkCoreState *ck,envelope *env,const CkG
1175
1174
1176
1175
static inline void _deliverForBocMsg (CkCoreState * ck ,int epIdx ,envelope * env ,IrrGroup * obj )
1177
1176
{
1178
- #if CMK_SMP
1179
- unsigned short int msgType = CMI_ZC_MSGTYPE (env ); // store msgType as msg could be freed
1180
- #endif
1181
-
1182
1177
_invokeEntry (epIdx ,env ,obj );
1183
1178
1184
1179
_STATS_RECORD_PROCESS_BRANCH_1 ();
@@ -1188,7 +1183,6 @@ static inline void _processForBocMsg(CkCoreState *ck,envelope *env)
1188
1183
{
1189
1184
if (isGroupDepUnsatisfied (ck , env ))
1190
1185
return ;
1191
- CkGroupID groupID = env -> getGroupNum ();
1192
1186
IrrGroup * obj = _lookupGroupAndBufferIfNotThere (ck ,env ,env -> getGroupNum ());
1193
1187
if (obj ) {
1194
1188
ck -> process (); // ck->process() updates mProcessed count used in QD
@@ -1279,7 +1273,6 @@ static void _processArrayEltMsg(CkCoreState *ck,envelope *env) {
1279
1273
// First see if we already have a direct pointer to the object
1280
1274
_SET_USED (env , 0 );
1281
1275
ck -> process (); // ck->process() updates mProcessed count used in QD
1282
- int opts = 0 ;
1283
1276
if (msg -> array_hops ()> 1 ) {
1284
1277
CProxy_ArrayBase (env -> getArrayMgr ()).ckLocMgr ()-> multiHop (msg );
1285
1278
}
@@ -1813,7 +1806,7 @@ static inline envelope *_prepareImmediateMsgBranch(int eIdx,void *msg,CkGroupID
1813
1806
static inline void _sendMsgBranch (int eIdx , void * msg , CkGroupID gID ,
1814
1807
int pe = CLD_BROADCAST_ALL , int opts = 0 )
1815
1808
{
1816
- int numPes ;
1809
+ int numPes = 1 ;
1817
1810
envelope * env ;
1818
1811
if (opts & CK_MSG_IMMEDIATE ) {
1819
1812
env = _prepareImmediateMsgBranch (eIdx ,msg ,gID ,ForBocMsg );
@@ -1879,7 +1872,7 @@ void CkSendMsgBranchImmediate(int eIdx, void *msg, int destPE, CkGroupID gID)
1879
1872
}
1880
1873
//Can't inline-- send the usual way
1881
1874
envelope * env = UsrToEnv (msg );
1882
- int numPes ;
1875
+ int numPes = 1 ;
1883
1876
_TRACE_ONLY (numPes = (destPE == CLD_BROADCAST_ALL ?CkNumPes ():1 ));
1884
1877
env = _prepareImmediateMsgBranch (eIdx ,msg ,gID ,ForBocMsg );
1885
1878
_TRACE_CREATION_N (env , numPes );
@@ -2034,7 +2027,7 @@ void CkSendMsgNodeBranchImmediate(int eIdx, void *msg, int node, CkGroupID gID)
2034
2027
}
2035
2028
//Can't inline-- send the usual way
2036
2029
envelope * env = UsrToEnv (msg );
2037
- int numPes ;
2030
+ int numPes = 1 ;
2038
2031
_TRACE_ONLY (numPes = (node == CLD_BROADCAST_ALL ?CkNumNodes ():1 ));
2039
2032
env = _prepareImmediateMsgBranch (eIdx ,msg ,gID ,ForNodeBocMsg );
2040
2033
_TRACE_CREATION_N (env , numPes );
@@ -2164,10 +2157,8 @@ void CkArrayManagerDeliver(int pe,void *msg, int opts) {
2164
2157
}
2165
2158
2166
2159
class ElementDestroyer : public CkLocIterator {
2167
- private :
2168
- CkLocMgr * locMgr ;
2169
2160
public :
2170
- ElementDestroyer (CkLocMgr * mgr_ ): locMgr ( mgr_ ){};
2161
+ ElementDestroyer (CkLocMgr * mgr_ ){}
2171
2162
void addLocation (CkLocation & loc ) {
2172
2163
loc .destroyAll ();
2173
2164
}
0 commit comments