Skip to content

Commit

Permalink
Fix and format
Browse files Browse the repository at this point in the history
  • Loading branch information
olsaarik committed Sep 1, 2023
1 parent 78c213b commit 2426e8e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/registered_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
namespace mscclpp {

RegisteredMemory::Impl::Impl(void* data, size_t size, TransportFlags transports, Context::Impl& contextImpl)
: data(data),
size(size),
maybeRemote(false),
hostHash(contextImpl.hostHash_),
transports(transports) {
: data(data), size(size), maybeRemote(false), hostHash(contextImpl.hostHash_), transports(transports) {
if (transports.has(Transport::CudaIpc)) {
TransportInfo transportInfo;
transportInfo.transport = Transport::CudaIpc;
Expand Down Expand Up @@ -61,7 +57,7 @@ MSCCLPP_API_CPP RegisteredMemory::RegisteredMemory(std::shared_ptr<Impl> pimpl)

MSCCLPP_API_CPP RegisteredMemory::~RegisteredMemory() = default;

MSCCLPP_API_CPP void* RegisteredMemory::data() const { return pimpl->data; }
MSCCLPP_API_CPP void* RegisteredMemory::data() const { return pimpl_->data; }

MSCCLPP_API_CPP size_t RegisteredMemory::size() { return pimpl_->size; }

Expand Down

0 comments on commit 2426e8e

Please sign in to comment.