NamdCentLB.C File Reference

#include <unistd.h>
#include <fcntl.h>
#include "InfoStream.h"
#include "NamdCentLB.h"
#include "NamdCentLB.def.h"
#include "Node.h"
#include "PatchMap.h"
#include "ComputeMap.h"
#include "LdbCoordinator.h"

Go to the source code of this file.

Defines

#define IF_NEW_NODE

Functions

void CreateNamdCentLB ()
NamdCentLBAllocateNamdCentLB ()
int isPmeProcessor (int)

Variables

double * cpuloads = NULL


Define Documentation

#define IF_NEW_NODE

Value:

int j; \
    for ( j=0; j<nProxyNodes && neighborNodes[j] != proxyNode; ++j ); \
    if ( j == nProxyNodes )


Function Documentation

NamdCentLB* AllocateNamdCentLB (  ) 

Definition at line 37 of file NamdCentLB.C.

Referenced by NamdHybridLB::NamdHybridLB().

00037                                  {
00038   return new NamdCentLB((CkMigrateMessage*)NULL);
00039 }

void CreateNamdCentLB (  ) 

Definition at line 26 of file NamdCentLB.C.

References cpuloads.

Referenced by LdbCoordinator::createLoadBalancer(), LdbCoordinator::initialize(), and LdbCoordinator::LdbCoordinator().

00026                         {
00027   // CkPrintf("[%d] creating NamdCentLB %d\n",CkMyPe(),loadbalancer);
00028   loadbalancer = CProxy_NamdCentLB::ckNew();
00029   // CkPrintf("[%d] created NamdCentLB %d\n",CkMyPe(),loadbalancer);
00030   if (CkMyRank() == 0 && cpuloads == NULL) {    
00031     cpuloads = new double[CkNumPes()];
00032     CmiAssert(cpuloads != NULL);
00033     for (int i=0; i<CkNumPes(); i++) cpuloads[i] = 0.0;
00034   }
00035 }

int isPmeProcessor ( int   ) 

Definition at line 589 of file ComputePme.C.

00589                          { 
00590   SimParameters *simParams = Node::Object()->simParameters;
00591   if (simParams->usePMECUDA) {
00592     return 0;
00593   } else {
00594     return pencilPMEProcessors[p];
00595   }
00596 }


Variable Documentation

double* cpuloads = NULL

Definition at line 24 of file NamdCentLB.C.

Referenced by CreateNamdCentLB(), CreateNamdHybridLB(), NamdCentLB::Strategy(), and NamdHybridLB::UpdateLocalLBInfo().


Generated on Fri Sep 22 01:17:16 2017 for NAMD by  doxygen 1.4.7