Skip to content

Commit

Permalink
adjusting some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caiomcbr committed Apr 15, 2024
1 parent db263e7 commit 249ad84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions test/mp_unit/communicator_tests.cu
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void CommunicatorTest::SetUp() {

ASSERT_EQ((deviceBufferSize / sizeof(int)) % gEnv->worldSize, 0);

connectMesh(false, false, true);
connectMesh(true, true, false);

devicePtr.resize(numBuffers);
localMemory.resize(numBuffers);
Expand All @@ -116,10 +116,10 @@ void CommunicatorTest::SetUp() {

for (size_t n = 0; n < numBuffers; n++) {
devicePtr[n] = mscclpp::allocSharedCuda<int>(deviceBufferSize / sizeof(int));
//registerMemoryPairs(devicePtr[n].get(), deviceBufferSize, mscclpp::Transport::CudaIpc | ibTransport, 0, remoteRanks,
// localMemory[n], remoteMemory[n]);
registerMemoryPairs(devicePtr[n].get(), deviceBufferSize, mscclpp::Transport::Ethernet, 0, remoteRanks,
localMemory[n], remoteMemory[n]);
registerMemoryPairs(devicePtr[n].get(), deviceBufferSize, mscclpp::Transport::CudaIpc | ibTransport, 0, remoteRanks,
localMemory[n], remoteMemory[n]);
//registerMemoryPairs(devicePtr[n].get(), deviceBufferSize, mscclpp::Transport::Ethernet, 0, remoteRanks,
// localMemory[n], remoteMemory[n]);
}
}

Expand Down Expand Up @@ -289,7 +289,7 @@ TEST_F(CommunicatorTest, WriteWithHostSemaphores) {
communicator->bootstrap()->barrier();
}

TEST_F(CommunicatorTest, TestEthernetConnection) {
/*TEST_F(CommunicatorTest, TestEthernetConnection) {
if (gEnv->rank >= numRanksToUse) return;
deviceBufferInit();
Expand All @@ -309,4 +309,4 @@ TEST_F(CommunicatorTest, TestEthernetConnection) {
}
} while (!ready);
communicator->bootstrap()->barrier();
}
}*/
2 changes: 1 addition & 1 deletion test/mp_unit/proxy_channel_tests.cu
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void ProxyChannelOneToOneTest::testPingPongPerf(bool useIPC, bool useIB, bool us

auto* testInfo = ::testing::UnitTest::GetInstance()->current_test_info();
const std::string testName = std::string(testInfo->test_suite_name()) + "." + std::string(testInfo->name());
const int nTries = 1000000;
const int nTries = 1000;

// Warm-up
kernelProxyPingPong<<<1, 1024>>>(buff.get(), gEnv->rank, 1, waitWithPoll, nTries, ret.get());
Expand Down

0 comments on commit 249ad84

Please sign in to comment.