namespace kernel {
namespace routing {
-AsClusterDragonfly::AsClusterDragonfly(As* father, const char* name) : AsCluster(father, name)
+DragonflyZone::DragonflyZone(NetZone* father, const char* name) : ClusterZone(father, name)
{
}
-AsClusterDragonfly::~AsClusterDragonfly()
+DragonflyZone::~DragonflyZone()
{
if (this->routers_ != nullptr) {
for (unsigned int i = 0; i < this->numGroups_ * this->numChassisPerGroup_ * this->numBladesPerChassis_; i++)
}
}
-unsigned int* AsClusterDragonfly::rankId_to_coords(int rankId)
+unsigned int* DragonflyZone::rankId_to_coords(int rankId)
{
// coords : group, chassis, blade, node
unsigned int* coords = (unsigned int*)malloc(4 * sizeof(unsigned int));
return coords;
}
-void AsClusterDragonfly::parse_specific_arguments(sg_platf_cluster_cbarg_t cluster)
+void DragonflyZone::parse_specific_arguments(sg_platf_cluster_cbarg_t cluster)
{
std::vector<std::string> parameters;
std::vector<std::string> tmp;
/*
* Generate the cluster once every node is created
*/
-void AsClusterDragonfly::seal()
+void DragonflyZone::seal()
{
if (this->numNodesPerBlade_ == 0) {
return;
xbt_free(blueLinks_);
}
-void AsClusterDragonfly::generateRouters()
+void DragonflyZone::generateRouters()
{
this->routers_ = static_cast<DragonflyRouter**>(xbt_malloc0(this->numGroups_ * this->numChassisPerGroup_ *
this->numBladesPerChassis_ * sizeof(DragonflyRouter*)));
}
}
-void AsClusterDragonfly::createLink(char* id, int numlinks, Link** linkup, Link** linkdown)
+void DragonflyZone::createLink(char* id, int numlinks, Link** linkup, Link** linkdown)
{
*linkup = nullptr;
*linkdown = nullptr;
free((void*)linkTemplate.id);
}
-void AsClusterDragonfly::generateLinks()
+void DragonflyZone::generateLinks()
{
static int uniqueId = 0;
}
}
-void AsClusterDragonfly::getLocalRoute(NetCard* src, NetCard* dst, sg_platf_route_cbarg_t route, double* latency)
+void DragonflyZone::getLocalRoute(NetCard* src, NetCard* dst, sg_platf_route_cbarg_t route, double* latency)
{
// Minimal routing version.
// TODO : non-minimal random one, and adaptive ?