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

V0.1.x: CORE: change SCORE separator #154

Merged
merged 1 commit into from
Apr 12, 2021
Merged
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 src/coll_score/ucc_coll_score.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ ucc_status_t ucc_coll_score_alloc_from_str(const char *str,
if (UCC_OK != status) {
return status;
}
tokens = ucc_str_split(str, ";");
tokens = ucc_str_split(str, "#");
if (!tokens) {
status = UCC_ERR_INVALID_PARAM;
goto error;
Expand Down
4 changes: 2 additions & 2 deletions src/components/base/ucc_base_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ucc_config_field_t ucc_base_config_table[] = {
"poll.",
ucc_offsetof(ucc_base_config_t, log_component), UCC_CONFIG_TYPE_LOG_COMP},

{"COLL_SCORE", "", "Collective score modifier for a CL/TL component\n"
"format: \";\"-separated list of score values with optional qualifiers:\n"
{"SCORE", "", "Collective score modifier for a CL/TL component\n"
"format: \"#\"-separated list of score values with optional qualifiers:\n"
" <coll_type_1,..,coll_type_n>:<mem_type_1,..,mem_type_n>:"
"<msg_range_1,..,msg_range_n>:score\n"
" msg_range has the format: start-end, where start,end - integers"
Expand Down
4 changes: 2 additions & 2 deletions test/gtest/coll_score/test_score_str.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ UCC_TEST_F(test_score_str, check_valid)
EXPECT_EQ(UCC_SCORE_MAX, SCORE(score, GATHERV, HOST));
ucc_coll_score_free(score);

str = "alltoall,bCAst:hOst:10;scatter:inf;reduce:1";
str = "alltoall,bCAst:hOst:10#scatter:inf#reduce:1";
EXPECT_EQ(UCC_OK, ucc_coll_score_alloc_from_str(str.c_str(), &score, 0));
EXPECT_EQ(10, SCORE(score, BCAST, HOST));
EXPECT_EQ(UCC_SCORE_MAX, SCORE(score, SCATTER, HOST));
Expand Down Expand Up @@ -91,7 +91,7 @@ UCC_TEST_F(test_score_str, check_range_multiple)
RLIST({RANGE(64, 256, 10), RANGE(1024,2048,10), RANGE(4096,5000,10)})));
ucc_coll_score_free(score);

str = "alltoall,barrier:1k-4K,64-256:cuda:10;20:99-12M:bcast";
str = "alltoall,barrier:1k-4K,64-256:cuda:10#20:99-12M:bcast";
EXPECT_EQ(UCC_OK, ucc_coll_score_alloc_from_str(str.c_str(), &score, 0));
EXPECT_EQ(UCC_OK,
check_range(score, UCC_COLL_TYPE_ALLTOALL, UCC_MEMORY_TYPE_CUDA,
Expand Down