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
2ed8b59d
Commit
2ed8b59d
authored
Mar 01, 2018
by
Misbah Mubarak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding number of ranks in shared context
parent
6c640216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/workload/methods/codes-online-comm-wrkld.C
src/workload/methods/codes-online-comm-wrkld.C
+2
-2
No files found.
src/workload/methods/codes-online-comm-wrkld.C
View file @
2ed8b59d
...
...
@@ -31,6 +31,7 @@ ABT_thread global_prod_thread = NULL;
struct
shared_context
{
int
my_rank
;
int
num_ranks
;
char
workload_name
[
MAX_NAME_LENGTH_WKLD
];
void
*
swm_obj
;
ABT_thread
producer
;
...
...
@@ -484,6 +485,7 @@ static int comm_online_workload_load(const char * params, int app_id, int rank)
my_ctx
=
(
rank_mpi_context
*
)
calloc
(
1
,
sizeof
(
rank_mpi_context
));
assert
(
my_ctx
);
my_ctx
->
sctx
.
my_rank
=
rank
;
my_ctx
->
sctx
.
num_ranks
=
nprocs
;
my_ctx
->
app_id
=
app_id
;
void
**
generic_ptrs
;
...
...
@@ -554,7 +556,6 @@ static int comm_online_workload_load(const char * params, int app_id, int rank)
qhash_add
(
rank_tbl
,
&
cmp
,
&
(
my_ctx
->
hash_link
));
rank_tbl_pop
++
;
printf
(
"
\n
workload created %d %d, table popped "
,
app_id
,
rank
);
return
0
;
}
...
...
@@ -581,7 +582,6 @@ static void comm_online_workload_get_next(int app_id, int rank, struct codes_wor
assert
(
temp_data
);
while
(
temp_data
->
sctx
.
fifo
.
empty
())
{
printf
(
"
\n
Yielding to producer! "
);
ABT_thread_yield_to
(
temp_data
->
sctx
.
producer
);
}
struct
codes_workload_op
*
front_op
=
temp_data
->
sctx
.
fifo
.
front
();
...
...
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