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 Sep 27, 2021
1 parent be282c1 commit cf7322d
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 @@ -67,6 +67,7 @@ MPL_STATIC_INLINE_PREFIX int MPIDI_OFI_recv_event(int vni, struct fi_cq_tagged_e
MPIR_T_PVAR_COUNTER_INC(MULTINIC, nic_recvd_bytes_count[MPIDI_OFI_REQUEST(rreq, nic_num)],
wc->len);
}
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 @@ -21,8 +21,8 @@
#define BUFFER_ALIGNMENT 4096

#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 cf7322d

Please sign in to comment.