Skip to content

Commit

Permalink
test: demonstrate how to use MPIR_thread_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhou committed May 26, 2021
1 parent a97808f commit 29c8dfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/mpid/ch4/netmod/ofi/ofi_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ MPL_STATIC_INLINE_PREFIX int MPIDI_OFI_recv_event(struct fi_cq_tagged_entry *wc,
count = wc->len;
MPIR_STATUS_SET_COUNT(rreq->status, count);

printf("OFI_recv_event: thread_id = %d, count = %ld bytes\n", MPIR_thread_id(), count);
#ifndef MPIDI_CH4_DIRECT_NETMOD
int is_cancelled;
MPIDI_anysrc_try_cancel_partner(rreq, &is_cancelled);
Expand Down
4 changes: 2 additions & 2 deletions test/mpi/threads/perf/mt_pt2pt_msgrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#define CACHELINE_SIZE 64

#define MESSAGE_SIZE 8
#define NUM_MESSAGES 64000
#define WINDOW_SIZE 64
#define NUM_MESSAGES 4
#define WINDOW_SIZE 1

#define ERROR_MARGIN 0.05 /* FIXME: a better margin? */

Expand Down

0 comments on commit 29c8dfc

Please sign in to comment.