NAMD
Macros | Functions | Variables
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.

Macros

#define IF_NEW_NODE
 

Functions

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

Variables

double * cpuloads = NULL
 

Macro Definition Documentation

#define IF_NEW_NODE
Value:
int j; \
for ( j=0; j<nProxyNodes && neighborNodes[j] != proxyNode; ++j ); \
if ( j == nProxyNodes )
if(ComputeNonbondedUtil::goMethod==2)
for(int i=0;i< n1;++i)

Function Documentation

NamdCentLB* AllocateNamdCentLB ( )

Definition at line 38 of file NamdCentLB.C.

Referenced by NamdHybridLB::NamdHybridLB().

38  {
39  return new NamdCentLB((CkMigrateMessage*)NULL);
40 }
void CreateNamdCentLB ( )

Definition at line 26 of file NamdCentLB.C.

References cpuloads.

Referenced by LdbCoordinator::createLoadBalancer().

26  {
27  // CkPrintf("[%d] creating NamdCentLB %d\n",CkMyPe(),loadbalancer);
28  int seqno = LdbInfra::Object()->getLoadbalancerTicket();
29  loadbalancer = CProxy_NamdCentLB::ckNew(CkLBOptions(seqno));
30  // CkPrintf("[%d] created NamdCentLB %d\n",CkMyPe(),loadbalancer);
31  if (CkMyRank() == 0 && cpuloads == NULL) {
32  cpuloads = new double[CkNumPes()];
33  CmiAssert(cpuloads != NULL);
34  for (int i=0; i<CkNumPes(); i++) cpuloads[i] = 0.0;
35  }
36 }
double * cpuloads
Definition: NamdCentLB.C:24
int isPmeProcessor ( int  )

Definition at line 604 of file ComputePme.C.

604  {
606  if (simParams->usePMECUDA) {
607  return 0;
608  } else {
609  return pencilPMEProcessors[p];
610  }
611 }
static Node * Object()
Definition: Node.h:86
SimParameters * simParameters
Definition: Node.h:178
#define simParams
Definition: Output.C:127
char * pencilPMEProcessors
Definition: ComputePme.C:113

Variable Documentation

double* cpuloads = NULL