Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
4b37f533
Commit
4b37f533
authored
Jul 27, 2017
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing dragonfly neighborhood functions
parent
75cdb76f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/networks/model-net/dragonfly-custom.C
src/networks/model-net/dragonfly-custom.C
+3
-2
No files found.
src/networks/model-net/dragonfly-custom.C
View file @
4b37f533
...
...
@@ -3502,8 +3502,9 @@ static void dragonfly_custom_get_router_neighbor_list(void* topo, router_id_t r,
const
dragonfly_param
*
params
=
&
all_params
[
num_params
-
1
];
int
gid
=
r
/
params
->
num_routers
;
int
src_row
=
r
/
params
->
num_router_cols
;
int
src_col
=
r
%
params
->
num_router_cols
;
int
local_rid
=
r
-
(
gid
*
params
->
num_routers
);
int
src_row
=
local_rid
/
params
->
num_router_cols
;
int
src_col
=
local_rid
%
params
->
num_router_cols
;
/* First the routers in the same row */
int
i
=
0
;
...
...
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