Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOOLS: Add perftest msg size multiplication factor flag #955

Open
wants to merge 1 commit into
base: v1.3.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/perf/ucc_pt_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ucc_status_t ucc_pt_benchmark::run_bench() noexcept
double time;

print_header();
for (size_t cnt = min_count; cnt <= max_count; cnt *= 2) {
for (size_t cnt = min_count; cnt <= max_count; cnt *= config.mult_factor) {
size_t coll_size = cnt * ucc_dt_size(config.dt);
int iter = config.n_iter_small;
int warmup = config.n_warmup_small;
Expand Down
5 changes: 5 additions & 0 deletions tools/perf/ucc_pt_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ucc_pt_config::ucc_pt_config() {
bench.n_bufs = UCC_PT_DEFAULT_N_BUFS;
bench.root = 0;
bench.root_shift = 0;
bench.mult_factor = 2;
comm.mt = bench.mt;
}

Expand Down Expand Up @@ -153,6 +154,9 @@ ucc_status_t ucc_pt_config::process_args(int argc, char *argv[])
std::stringstream(optarg) >> bench.n_warmup_small;
bench.n_warmup_large = bench.n_warmup_small;
break;
case 'f':
std::stringstream(optarg) >> bench.mult_factor;
break;
case 'N':
std::stringstream(optarg) >> bench.n_bufs;
break;
Expand Down Expand Up @@ -191,6 +195,7 @@ void ucc_pt_config::print_help()
std::cout << " -m <mtype name>: memory type"<<std::endl;
std::cout << " -n <number>: number of iterations"<<std::endl;
std::cout << " -w <number>: number of warmup iterations"<<std::endl;
std::cout << " -f <number>: multiplication factor between sizes. Default : 2."<<std::endl;
std::cout << " -N <number>: number of buffers"<<std::endl;
std::cout << " -T: triggered collective"<<std::endl;
std::cout << " -F: enable full print"<<std::endl;
Expand Down
1 change: 1 addition & 0 deletions tools/perf/ucc_pt_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ struct ucc_pt_benchmark_config {
bool full_print;
int root;
int root_shift;
int mult_factor;
};

struct ucc_pt_config {
Expand Down
Loading