Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TAPIOCA
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Francois Tessier
TAPIOCA
Commits
8b8b2478
Commit
8b8b2478
authored
Sep 28, 2017
by
Francois Tessier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of the network abstraction for Cooley (CLOS network, haswell-based compute nodes)
parent
440bd29f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
129 additions
and
0 deletions
+129
-0
architectures/linux-rhel_6-x86_64/tp_network.cpp
architectures/linux-rhel_6-x86_64/tp_network.cpp
+84
-0
architectures/linux-rhel_6-x86_64/tp_network.hpp
architectures/linux-rhel_6-x86_64/tp_network.hpp
+45
-0
No files found.
architectures/linux-rhel_6-x86_64/tp_network.cpp
0 → 100644
View file @
8b8b2478
#include "tp_network.hpp"
#define MAX_IONODES 1
/**********************/
/* |-- Nodes */
/**********************/
int
Topology
::
IONodeId
()
{
return
0
;
}
int
Topology
::
BridgeNodeId
()
{
return
0
;
}
int
Topology
::
ComputeNodeId
()
{
return
0
;
}
int
Topology
::
ProcessPerNode
()
{
return
12
;
}
int
Topology
::
IONodesPerFile
(
char
*
filename
,
int
*
nodesList
)
{
return
1
;
}
/**********************/
/* |-- Network */
/**********************/
int
Topology
::
NetworkDimensions
()
{
return
1
;
}
/* |---- Coordinates */
void
Topology
::
RankToCoordinates
(
int
rank
,
int
*
coord
)
{
int
size
,
node
,
core
;
node
=
rank
/
this
->
ProcessPerNode
();
core
=
sched_getcpu
();
coord
[
0
]
=
node
;
coord
[
1
]
=
core
;
return
;
}
void
Topology
::
IONodeCoordinates
(
int
*
coord
)
{
return
;
}
/* |---- Distance */
int
Topology
::
DistanceToIONode
(
int
srcRank
)
{
return
1
;
}
int
Topology
::
DistanceBetweenRanks
(
int
srcRank
,
int
destRank
)
{
return
1
;
}
/* |---- Routes */
int
Topology
::
RouteToIONode
(
int
srcRank
,
int
*
path
)
{
return
0
;
}
int
Topology
::
RouteBetweenRanks
(
int
srcRank
,
int
destRank
,
int
*
path
)
{
return
0
;
}
/* |---- Links */
void
Topology
::
LinksList
(
int
*
linksList
)
{
return
;
}
architectures/linux-rhel_6-x86_64/tp_network.hpp
0 → 100644
View file @
8b8b2478
#ifndef TP_NETWORK_H
#define TP_NETWORK_H
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <sched.h>
#include <mpi.h>
#include "tp_network_interface.hpp"
#define MAX_IONODES 1
class
Topology
:
public
iTopology
{
public:
/**********************/
/* |-- Nodes */
/**********************/
int
IONodeId
();
int
BridgeNodeId
();
int
ComputeNodeId
();
int
ProcessPerNode
();
int
IONodesPerFile
(
char
*
filename
,
int
*
nodesList
);
/**********************/
/* |-- Network */
/**********************/
int
NetworkDimensions
();
/* |---- Coordinates */
void
RankToCoordinates
(
int
rank
,
int
*
coord
);
void
IONodeCoordinates
(
int
*
coord
);
/* |---- Distance */
int
DistanceToIONode
(
int
srcRank
);
int
DistanceBetweenRanks
(
int
srcRank
,
int
destRank
);
/* |---- Routes */
int
RouteToIONode
(
int
srcRank
,
int
*
path
);
int
RouteBetweenRanks
(
int
srcRank
,
int
destRank
,
int
*
path
);
/* |---- Links */
void
LinksList
(
int
*
linksList
);
};
#endif // TP_NETWORK_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment