Skip to content

Commit

Permalink
#2249: Disable global timer for send_cost tests and adjust payload sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed May 29, 2024
1 parent 4563c33 commit 33955ec
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions tests/perf/send_cost.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,17 @@
using namespace vt;
using namespace vt::tests::perf::common;

static constexpr std::array<size_t, 8> const payloadSizes = {
1, 64, 128, 2048, 16384, 524288, 2097152, 268435456};
static constexpr std::array<size_t, 9> const payloadSizes = {
1, 64, 128, 2048, 16384, 32768, 524288, 1048576, 2097152};

bool obj_send_done = false;
bool col_send_done = false;

struct SendTest : PerfTestHarness { };
struct SendTest : PerfTestHarness {
SendTest() {
DisableGlobalTimer();
}
};

////////////////////////////////////////
//////////////// RAW MPI ///////////////
Expand Down Expand Up @@ -159,10 +163,6 @@ VT_PERF_TEST(SendTest, test_objgroup_send) {
vt::theObjGroup()->makeCollective<NodeObj>("test_objgroup_send", this);
grp_proxy[my_node_].invoke<&NodeObj::initialize>();

if (theContext()->getNode() == 0) {
theTerm()->disableTD();
}

auto const thisNode = vt::theContext()->getNode();
auto const lastNode = theContext()->getNumNodes() - 1;

Expand All @@ -182,10 +182,6 @@ VT_PERF_TEST(SendTest, test_objgroup_send) {

delete payload;
}

if (vt::theContext()->getNode() == 0) {
vt::theTerm()->enableTD();
}
}

////////////////////////////////////////
Expand Down Expand Up @@ -239,7 +235,7 @@ struct Hello : vt::Collection<Hello, vt::Index1D> {

VT_PERF_TEST(SendTest, test_collection_send) {
auto range = vt::Index1D(int32_t{num_nodes_});
auto proxy = vt::makeCollection<Hello>("send_cost_collection")
auto proxy = vt::makeCollection<Hello>("test_collection_send")
.bounds(range)
.bulkInsert()
.wait();
Expand Down

0 comments on commit 33955ec

Please sign in to comment.