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 598 of file ComputePme.C.

598  {
600  if (simParams->usePMECUDA) {
601  return 0;
602  } else {
603  return pencilPMEProcessors[p];
604  }
605 }
static Node * Object()
Definition: Node.h:86
SimParameters * simParameters
Definition: Node.h:178
#define simParams
Definition: Output.C:127
char * pencilPMEProcessors
Definition: ComputePme.C:107

Variable Documentation

double* cpuloads = NULL