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
db682155
Commit
db682155
authored
Jul 30, 2013
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to build in codes-net repo
parent
899615a0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
7 deletions
+48
-7
codes/model-net.h
codes/model-net.h
+1
-1
src/models/networks/model-net/model-net-method.h
src/models/networks/model-net/model-net-method.h
+41
-0
src/models/networks/model-net/model-net.c
src/models/networks/model-net/model-net.c
+1
-1
src/models/networks/model-net/simplenet-upd.c
src/models/networks/model-net/simplenet-upd.c
+5
-5
No files found.
codes/model-net.h
View file @
db682155
...
...
@@ -8,7 +8,7 @@
#define MODELNET_H
#include "ross.h"
#include "lp-type-lookup.h"
#include "
codes/
lp-type-lookup.h"
typedef
struct
simplenet_param
simplenet_param
;
typedef
struct
dragonfly_param
dragonfly_param
;
...
...
src/models/networks/model-net/model-net-method.h
0 → 100644
View file @
db682155
/*
* Copyright (C) 2013, University of Chicago
*
* See COPYRIGHT notice in top-level directory.
*/
#ifndef MODELNET_METHOD_H
#define MODELNET_METHOD_H
#include <ross.h>
struct
model_net_method
{
char
*
method_name
;
/* example: "dragonfly" */
int
packet_size
;
/* packet size */
void
(
*
mn_setup
)(
const
void
*
net_params
);
/* For initializing the network */
void
(
*
model_net_method_packet_event
)(
char
*
category
,
tw_lpid
final_dest_lp
,
int
packet_size
,
int
remote_event_size
,
/* 0 means don't deliver remote event */
const
void
*
remote_event
,
int
self_event_size
,
/* 0 means don't deliver self event */
const
void
*
self_event
,
tw_lp
*
sender
,
int
is_last_pckt
);
void
(
*
model_net_method_packet_event_rc
)(
tw_lp
*
sender
);
const
tw_lptype
*
(
*
mn_get_lp_type
)();
int
(
*
mn_get_msg_sz
)();
};
#endif
/* MODELNET_METHOD_H */
/*
* Local variables:
* c-indent-level: 4
* c-basic-offset: 4
* End:
*
* vim: ft=c ts=8 sts=4 sw=4 expandtab
*/
src/models/networks/model-net/model-net.c
View file @
db682155
...
...
@@ -6,7 +6,7 @@
#include <string.h>
#include <assert.h>
#include "model-net.h"
#include "
codes/
model-net.h"
#include "model-net-method.h"
#define STR_SIZE 16
...
...
src/models/networks/model-net/simplenet-upd.c
View file @
db682155
...
...
@@ -8,12 +8,12 @@
#include <assert.h>
#include <ross.h>
#include "lp-io.h"
#include "jenkins-hash.h"
#include "
codes/
lp-io.h"
#include "
codes/
jenkins-hash.h"
#include "model-net-method.h"
#include "model-net.h"
#include "codes_mapping.h"
#include "codes.h"
#include "
codes/
model-net.h"
#include "codes
/codes
_mapping.h"
#include "codes
/codes
.h"
#define CATEGORY_NAME_MAX 16
#define CATEGORY_MAX 12
...
...
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