From 7ab94ea00e711564036689a427c3e3ae666b8aab Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Mon, 23 Jul 2018 04:50:07 -0700 Subject: [PATCH] benchmarks: Use FI_THREAD_DOMAIN The benchmarks are single threaded and can make use of provider optimizations if we specify the right threading model. Signed-off-by: Sean Hefty --- benchmarks/dgram_pingpong.c | 1 + benchmarks/msg_bw.c | 1 + benchmarks/msg_pingpong.c | 1 + benchmarks/rdm_cntr_pingpong.c | 1 + benchmarks/rdm_pingpong.c | 1 + benchmarks/rdm_tagged_bw.c | 1 + benchmarks/rdm_tagged_pingpong.c | 1 + benchmarks/rma_bw.c | 1 + 8 files changed, 8 insertions(+) diff --git a/benchmarks/dgram_pingpong.c b/benchmarks/dgram_pingpong.c index f7c3e64f..b109cb26 100644 --- a/benchmarks/dgram_pingpong.c +++ b/benchmarks/dgram_pingpong.c @@ -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(); diff --git a/benchmarks/msg_bw.c b/benchmarks/msg_bw.c index 857b141f..c641acc5 100644 --- a/benchmarks/msg_bw.c +++ b/benchmarks/msg_bw.c @@ -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(); diff --git a/benchmarks/msg_pingpong.c b/benchmarks/msg_pingpong.c index d00b888d..0c98014a 100644 --- a/benchmarks/msg_pingpong.c +++ b/benchmarks/msg_pingpong.c @@ -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(); diff --git a/benchmarks/rdm_cntr_pingpong.c b/benchmarks/rdm_cntr_pingpong.c index 204e70c7..f2f04255 100644 --- a/benchmarks/rdm_cntr_pingpong.c +++ b/benchmarks/rdm_cntr_pingpong.c @@ -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(); diff --git a/benchmarks/rdm_pingpong.c b/benchmarks/rdm_pingpong.c index 5f30a7a2..836a263b 100644 --- a/benchmarks/rdm_pingpong.c +++ b/benchmarks/rdm_pingpong.c @@ -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(); diff --git a/benchmarks/rdm_tagged_bw.c b/benchmarks/rdm_tagged_bw.c index 3f76c0c3..9815a0df 100644 --- a/benchmarks/rdm_tagged_bw.c +++ b/benchmarks/rdm_tagged_bw.c @@ -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(); diff --git a/benchmarks/rdm_tagged_pingpong.c b/benchmarks/rdm_tagged_pingpong.c index 9e199ca8..56ca4e85 100644 --- a/benchmarks/rdm_tagged_pingpong.c +++ b/benchmarks/rdm_tagged_pingpong.c @@ -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(); diff --git a/benchmarks/rma_bw.c b/benchmarks/rma_bw.c index c6ccbc2f..bb1b2f18 100644 --- a/benchmarks/rma_bw.c +++ b/benchmarks/rma_bw.c @@ -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) {