Skip to content

Commit

Permalink
TL/MLX5: add gtest for mcast
Browse files Browse the repository at this point in the history
  • Loading branch information
MamziB committed Sep 25, 2024
1 parent 8eccd57 commit 1b5a340
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions test/gtest/coll/test_bcast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,48 @@ UCC_TEST_P(test_bcast_alg,) {
}
}

ucc_job_env_t two_step_env = {{"UCC_CL_HIER_TUNE", "bcast:@2step:0-inf:inf"},
{"UCC_CLS", "all"}};
ucc_job_env_t dbt_env = {{"UCC_TL_UCP_TUNE", "bcast:@dbt:0-inf:inf"},
{"UCC_CLS", "basic"}};
ucc_job_env_t two_step_env = {{"UCC_CL_HIER_TUNE", "bcast:@2step:0-inf:inf"},
{"UCC_CLS", "all"}};
ucc_job_env_t dbt_env = {{"UCC_TL_UCP_TUNE", "bcast:@dbt:0-inf:inf"},
{"UCC_CLS", "basic"}};
ucc_job_env_t host_mcast_env = {{"UCC_TLS", "ucp,mlx5"},
{"UCC_TL_MLX5_TUNE", "inf"},
{"UCC_TL_MLX5_MCAST_ENABLE", "1"},
{"UCC_TL_MLX5_MCAST_NET_DEVICE", "mlx5_0"},
{"UCC_TL_MLX5_MCAST_CUDA_MEM_ENABLE", "0"},
{"UCC_TL_MLX5_MIN_TEAM_SIZE", "2"}};
ucc_job_env_t host_mcast_rel_env = {{"UCC_TLS", "ucp,mlx5"},
{"UCC_TL_MLX5_TUNE", "inf"},
{"UCC_TL_MLX5_MCAST_ENABLE", "1"},
{"UCC_TL_MLX5_MCAST_NET_DEVICE", "mlx5_0"},
{"UCC_TL_MLX5_MCAST_CUDA_MEM_ENABLE", "0"},
{"UCC_TL_MLX5_MCAST_TIMEOUT", "0"},
{"UCC_TL_MLX5_MIN_TEAM_SIZE", "2"}};
ucc_job_env_t cuda_mcast_env = {{"UCC_TLS", "ucp,mlx5"},
{"UCC_TL_MLX5_TUNE", "inf"},
{"UCC_TL_MLX5_MCAST_ENABLE", "1"},
{"UCC_TL_MLX5_MCAST_NET_DEVICE", "mlx5_0"},
{"UCC_TL_MLX5_MCAST_CUDA_MEM_ENABLE", "1"},
{"UCC_TL_MLX5_MIN_TEAM_SIZE", "2"}};
ucc_job_env_t cuda_mcast_rel_env = {{"UCC_TLS", "ucp,mlx5"},
{"UCC_TL_MLX5_TUNE", "inf"},
{"UCC_TL_MLX5_MCAST_ENABLE", "1"},
{"UCC_TL_MLX5_MCAST_NET_DEVICE", "mlx5_0"},
{"UCC_TL_MLX5_MCAST_CUDA_MEM_ENABLE", "1"},
{"UCC_TL_MLX5_MCAST_TIMEOUT", "0"},
{"UCC_TL_MLX5_MIN_TEAM_SIZE", "2"}};
INSTANTIATE_TEST_CASE_P(
, test_bcast_alg,
::testing::Combine(
#ifdef HAVE_CUDA
::testing::Values(UCC_MEMORY_TYPE_HOST, UCC_MEMORY_TYPE_CUDA,
UCC_MEMORY_TYPE_CUDA_MANAGED),
::testing::Values(two_step_env, dbt_env, host_mcast_env, host_mcast_rel_env,
cuda_mcast_env, cuda_mcast_rel_env), //env
#else
::testing::Values(UCC_MEMORY_TYPE_HOST),
::testing::Values(two_step_env, dbt_env, host_mcast_env, host_mcast_rel_env), //env
#endif
::testing::Values(two_step_env, dbt_env), //env

::testing::Values(8, 65536), // count
::testing::Values(15,16))); // n_procs

0 comments on commit 1b5a340

Please sign in to comment.