Skip to content

Understanding Communication using GASNET. #9

Description

@vishweshjatala

Hi,

The Lux code uses BSP style of synchronization. I understood that it uses GASNET to perform inter node communication.

However, I can not clear understand from the code where the actual synchronization call is taking place for communication values among the different nodes/hosts/machines after every round of computation in a single machine.

For example: in components.cc file

if (iter >= SLIDING_WINDOW) {
fm = fms[iter % SLIDING_WINDOW];
(STEP-1) fm.wait_all_results();
bool halt = true;
for (PointInRectIterator<1> it(task_rect); it(); it++) {
(STEP-2) V_ID numNodes = fm.get_result (V_ID)(*it);
if (numNodes > 0) halt = false;
}
if (halt) break;
}

Is it the STEP-1 or STEP-2 from the above snippet where the communication taking place? If not please inform me accordingly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions