NamdHybridLB.C File Reference

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

Go to the source code of this file.

Classes

class  SplitComputesMsg

Defines

#define IF_NEW_NODE

Functions

int isPmeProcessor (int)
void CreateNamdHybridLB ()

Variables

double * cpuloads


Define Documentation

#define IF_NEW_NODE

Value:

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


Function Documentation

void CreateNamdHybridLB (  ) 

Creates the chare array for the hybrid load balancer.

Definition at line 49 of file NamdHybridLB.C.

References cpuloads.

Referenced by LdbCoordinator::createLoadBalancer().

00049                           {
00050         CProxy_NamdHybridLB::ckNew();
00051 
00052         // creating an array to store the loads of all processors
00053         // to be used with proxy spanning tree
00054         if (CkMyPe() == 0 && cpuloads == NULL) {
00055                 cpuloads = new double[CkNumPes()];
00056                 CmiAssert(cpuloads != NULL);
00057                 for (int i=0; i<CkNumPes(); i++) cpuloads[i] = 0.0;
00058         }
00059 }

int isPmeProcessor ( int   ) 

Definition at line 589 of file ComputePme.C.

References Node::Object(), pencilPMEProcessors, Node::simParameters, and simParams.

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

Definition at line 24 of file NamdCentLB.C.


Generated on Tue Sep 19 01:17:15 2017 for NAMD by  doxygen 1.4.7