Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
8f1f93ce
Commit
8f1f93ce
authored
Nov 24, 2015
by
Misbah Mubarak
Browse files
Merging updated dumpi trace workload with codes-base
parents
641eb480
8f5452bd
Changes
2
Show whitespace changes
Inline
Side-by-side
codes/codes.h
View file @
8f1f93ce
...
@@ -11,9 +11,16 @@
...
@@ -11,9 +11,16 @@
#include <ross.h>
#include <ross.h>
#include <assert.h>
#include <assert.h>
#if 0
// simple deprecation attribute hacking
#define codes_event_new tw_event_new
#if !defined(DEPRECATED)
#else
# if defined(__GNUC__) || defined(__GNUG__) || defined(__clang__)
# define DEPRECATED __attribute__((deprecated))
# else
# define DEPRECATED
# endif
#endif
DEPRECATED
static
inline
tw_event
*
codes_event_new
(
static
inline
tw_event
*
codes_event_new
(
tw_lpid
dest_gid
,
tw_lpid
dest_gid
,
tw_stime
offset_ts
,
tw_stime
offset_ts
,
...
@@ -24,7 +31,24 @@ static inline tw_event * codes_event_new(
...
@@ -24,7 +31,24 @@ static inline tw_event * codes_event_new(
//printf("codes_event_new() abs_ts: %.9f\n", abs_ts);
//printf("codes_event_new() abs_ts: %.9f\n", abs_ts);
return
(
tw_event_new
(
dest_gid
,
offset_ts
,
sender
));
return
(
tw_event_new
(
dest_gid
,
offset_ts
,
sender
));
}
}
#endif
static
inline
tw_event
*
tw_event_new_bounded
(
tw_lpid
dest_gid
,
tw_stime
offset_ts
,
tw_lp
*
sender
)
{
tw_stime
ts
=
offset_ts
+
tw_now
(
sender
);
if
(
ts
>=
g_tw_ts_end
)
{
tw_error
(
TW_LOC
,
"LP %lu tried to schedule a message for time %0.5e, "
"%0.5e past the end time
\n
"
,
sender
->
gid
,
ts
,
g_tw_ts_end
-
ts
);
return
NULL
;
}
else
return
tw_event_new
(
dest_gid
,
offset_ts
,
sender
);
}
/* TODO: validate what value we should use here */
/* TODO: validate what value we should use here */
/* Modeled latency for communication between local software components and
/* Modeled latency for communication between local software components and
...
...
src/workload/methods/codes-dumpi-trace-nw-wrkld.c
View file @
8f1f93ce
...
@@ -356,8 +356,6 @@ int handleDUMPIIRecv(const dumpi_irecv *prm, uint16_t thread, const dumpi_time *
...
@@ -356,8 +356,6 @@ int handleDUMPIIRecv(const dumpi_irecv *prm, uint16_t thread, const dumpi_time *
wrkld_per_rank
.
u
.
recv
.
tag
=
prm
->
tag
;
wrkld_per_rank
.
u
.
recv
.
tag
=
prm
->
tag
;
wrkld_per_rank
.
u
.
recv
.
num_bytes
=
prm
->
count
*
get_num_bytes
(
prm
->
datatype
);
wrkld_per_rank
.
u
.
recv
.
num_bytes
=
prm
->
count
*
get_num_bytes
(
prm
->
datatype
);
if
(
!
wrkld_per_rank
.
u
.
recv
.
num_bytes
)
printf
(
"
\n
count %d data type %ld "
,
prm
->
count
,
prm
->
datatype
);
//assert(wrkld_per_rank.u.recv.num_bytes > 0);
//assert(wrkld_per_rank.u.recv.num_bytes > 0);
wrkld_per_rank
.
u
.
recv
.
source_rank
=
prm
->
source
;
wrkld_per_rank
.
u
.
recv
.
source_rank
=
prm
->
source
;
wrkld_per_rank
.
u
.
recv
.
dest_rank
=
-
1
;
wrkld_per_rank
.
u
.
recv
.
dest_rank
=
-
1
;
...
...
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