Skip to content

Commit

Permalink
Use new constructor for execution configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mphoward committed Nov 25, 2024
1 parent 6afc9ca commit c0473a8
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions hoomd/mpcd/test/cell_list_mpi_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1435,8 +1435,7 @@ UP_TEST(mpcd_cell_list_dimensions_triclinic)
{
// mpi in 1d
{
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::CPU,
std::vector<int>());
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::CPU);
exec_conf->getMPIConfig()->splitPartitions(2);
celllist_dimension_test<mpcd::CellList>(exec_conf,
true,
Expand All @@ -1456,8 +1455,7 @@ UP_TEST(mpcd_cell_list_dimensions_triclinic)
}
// mpi in 2d
{
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::CPU,
std::vector<int>());
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::CPU);
exec_conf->getMPIConfig()->splitPartitions(4);
celllist_dimension_test<mpcd::CellList>(exec_conf,
true,
Expand All @@ -1477,8 +1475,7 @@ UP_TEST(mpcd_cell_list_dimensions_triclinic)
}
// mpi in 3d
{
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::CPU,
std::vector<int>());
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::CPU);
exec_conf->getMPIConfig()->splitPartitions(8);
celllist_dimension_test<mpcd::CellList>(exec_conf,
true,
Expand Down Expand Up @@ -1606,8 +1603,7 @@ UP_TEST(mpcd_cell_list_gpu_dimensions_triclinic)
{
// mpi in 1d
{
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::GPU,
std::vector<int>());
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::GPU);
exec_conf->getMPIConfig()->splitPartitions(2);
celllist_dimension_test<mpcd::CellListGPU>(exec_conf,
true,
Expand All @@ -1627,8 +1623,7 @@ UP_TEST(mpcd_cell_list_gpu_dimensions_triclinic)
}
// mpi in 2d
{
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::GPU,
std::vector<int>());
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::GPU);
exec_conf->getMPIConfig()->splitPartitions(4);
celllist_dimension_test<mpcd::CellListGPU>(exec_conf,
true,
Expand All @@ -1648,8 +1643,7 @@ UP_TEST(mpcd_cell_list_gpu_dimensions_triclinic)
}
// mpi in 3d
{
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::GPU,
std::vector<int>());
auto exec_conf = std::make_shared<ExecutionConfiguration>(ExecutionConfiguration::GPU);
exec_conf->getMPIConfig()->splitPartitions(8);
celllist_dimension_test<mpcd::CellListGPU>(exec_conf,
true,
Expand Down

0 comments on commit c0473a8

Please sign in to comment.