Skip to content

Commit

Permalink
revert semaphore.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
chhwang committed Nov 19, 2023
1 parent e398ea4 commit 654271a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/semaphore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ static NonblockingFuture<RegisteredMemory> setupInboundSemaphoreId(Communicator&

MSCCLPP_API_CPP Host2DeviceSemaphore::Host2DeviceSemaphore(Communicator& communicator,
std::shared_ptr<Connection> connection)
: BaseSemaphore(allocExtUniqueCuda<uint64_t>(1024), allocExtUniqueCuda<uint64_t>(1024),
std::make_unique<uint64_t>()),
: BaseSemaphore(allocExtUniqueCuda<uint64_t>(), allocExtUniqueCuda<uint64_t>(), std::make_unique<uint64_t>()),
connection_(connection) {
INFO(MSCCLPP_INIT, "Creating a Host2Device semaphore for %s transport from %d to %d",
connection->getTransportName().c_str(), communicator.bootstrap()->getRank(),
Expand Down Expand Up @@ -86,8 +85,7 @@ MSCCLPP_API_CPP void Host2HostSemaphore::wait(int64_t maxSpinCount) {

MSCCLPP_API_CPP SmDevice2DeviceSemaphore::SmDevice2DeviceSemaphore(Communicator& communicator,
std::shared_ptr<Connection> connection)
: BaseSemaphore(allocExtUniqueCuda<uint64_t>(1024), allocExtUniqueCuda<uint64_t>(1024),
allocExtUniqueCuda<uint64_t>(1024)) {
: BaseSemaphore(allocExtUniqueCuda<uint64_t>(), allocExtUniqueCuda<uint64_t>(), allocExtUniqueCuda<uint64_t>()) {
INFO(MSCCLPP_INIT, "Creating a Device2Device semaphore for %s transport from %d to %d",
connection->getTransportName().c_str(), communicator.bootstrap()->getRank(),
communicator.remoteRankOf(*connection));
Expand Down

0 comments on commit 654271a

Please sign in to comment.