The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
topology.c File Reference

Topology library. More...

#include <lib/topology/topology.h>
#include <core/intrinsics.h>
#include <lib/lib_internal.h>
#include <math.h>
#include <memory.h>
+ Include dependency graph for topology.c:

Go to the source code of this file.

Functions

 __attribute ((weak))
 this is used to store the common characteristics of the topology More...
 
void topology_global_init (void)
 
lp_id_t RegionsCount (void)
 
lp_id_t DirectionsCount (void)
 
lp_id_t GetReceiver (lp_id_t from, enum _direction_t direction)
 
lp_id_t FindReceiver (void)
 

Variables

 topology_global
 

Detailed Description

Topology library.

This library is allows models to setup and query different topologies.

Definition in file topology.c.

Function Documentation

◆ __attribute()

__attribute ( (weak)  )

this is used to store the common characteristics of the topology

< the number of LPs involved in the topology

< the pre-computed edge length (if it makes sense for the current topology geometry)

< the topology geometry (see ROOT-Sim.h)

Definition at line 19 of file topology.c.

◆ topology_global_init()

void topology_global_init ( void  )

Initialize the topology module for each LP hosted on the machine. This needs to be called right after LP basic initialization before starting to process events.

Definition at line 32 of file topology.c.