Skip to content

Commit

Permalink
benchmarks: Use FI_THREAD_DOMAIN
Browse files Browse the repository at this point in the history
The benchmarks are single threaded and can make use of provider
optimizations if we specify the right threading model.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
  • Loading branch information
shefty committed Jul 23, 2018
1 parent 63292fd commit 7ab94ea
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/dgram_pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ int main(int argc, char **argv)
hints->caps = FI_MSG;
hints->mode |= FI_CONTEXT;
hints->domain_attr->mr_mode = FI_MR_LOCAL | OFI_MR_BASIC_MAP;
hints->domain_attr->threading = FI_THREAD_DOMAIN;

ret = run();

Expand Down
1 change: 1 addition & 0 deletions benchmarks/msg_bw.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ int main(int argc, char **argv)
hints->caps = FI_MSG;
hints->domain_attr->resource_mgmt = FI_RM_ENABLED;
hints->domain_attr->mr_mode = FI_MR_LOCAL | OFI_MR_BASIC_MAP;
hints->domain_attr->threading = FI_THREAD_DOMAIN;

ret = run();

Expand Down
1 change: 1 addition & 0 deletions benchmarks/msg_pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ int main(int argc, char **argv)
hints->ep_attr->type = FI_EP_MSG;
hints->caps = FI_MSG;
hints->domain_attr->mr_mode = FI_MR_LOCAL | OFI_MR_BASIC_MAP;
hints->domain_attr->threading = FI_THREAD_DOMAIN;

ret = run();

Expand Down
1 change: 1 addition & 0 deletions benchmarks/rdm_cntr_pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ int main(int argc, char **argv)
hints->ep_attr->type = FI_EP_RDM;
hints->caps = FI_MSG;
hints->domain_attr->mr_mode = FI_MR_LOCAL | OFI_MR_BASIC_MAP;
hints->domain_attr->threading = FI_THREAD_DOMAIN;

ret = run();

Expand Down
1 change: 1 addition & 0 deletions benchmarks/rdm_pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ int main(int argc, char **argv)
hints->caps = FI_MSG;
hints->mode = FI_CONTEXT;
hints->domain_attr->mr_mode = FI_MR_LOCAL | OFI_MR_BASIC_MAP;
hints->domain_attr->threading = FI_THREAD_DOMAIN;

ret = run();

Expand Down
1 change: 1 addition & 0 deletions benchmarks/rdm_tagged_bw.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ int main(int argc, char **argv)
hints->caps = FI_TAGGED;
hints->mode = FI_CONTEXT;
hints->domain_attr->mr_mode = FI_MR_LOCAL | OFI_MR_BASIC_MAP;
hints->domain_attr->threading = FI_THREAD_DOMAIN;

ret = run();

Expand Down
1 change: 1 addition & 0 deletions benchmarks/rdm_tagged_pingpong.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ int main(int argc, char **argv)
hints->caps = FI_TAGGED;
hints->mode = FI_CONTEXT;
hints->domain_attr->mr_mode = FI_MR_LOCAL | OFI_MR_BASIC_MAP;
hints->domain_attr->threading = FI_THREAD_DOMAIN;

ret = run();

Expand Down
1 change: 1 addition & 0 deletions benchmarks/rma_bw.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ int main(int argc, char **argv)
hints->domain_attr->resource_mgmt = FI_RM_ENABLED;
hints->mode = FI_CONTEXT;
hints->domain_attr->mr_mode = FI_MR_LOCAL | OFI_MR_BASIC_MAP;
hints->domain_attr->threading = FI_THREAD_DOMAIN;

while ((op = getopt(argc, argv, "ho:" CS_OPTS INFO_OPTS BENCHMARK_OPTS)) != -1) {
switch (op) {
Expand Down

0 comments on commit 7ab94ea

Please sign in to comment.