Skip to content

Commit b9ec5a6

Browse files
committed
doc string
1 parent 59e15c8 commit b9ec5a6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

include/mscclpp/proxy_channel.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class ProxyService : public BaseProxyService {
4141
/// @return The ID of the semaphore.
4242
SemaphoreId addSemaphore(std::shared_ptr<Connection> connection);
4343

44+
/// Add a pitch pair to the proxy service.
45+
/// @param id The ID of the semaphore.
46+
/// @param pitch The pitch pair.
4447
void addPitch(SemaphoreId id, std::pair<uint64_t, uint64_t> pitch);
4548

4649
/// Register a memory region with the proxy service.

src/proxy_channel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ProxyHandlerResult ProxyService::handleTrigger(ProxyTrigger triggerRaw) {
6767
RegisteredMemory& dst = memories_[trigger->fields.dstMemoryId];
6868
RegisteredMemory& src = memories_[trigger->fields.srcMemoryId];
6969
if (trigger->fields2D.multiDimensionFlag) {
70-
std::pair<uint64_t, uint64_t>& pitch = pitches_[trigger->fields.chanId];
70+
std::pair<uint64_t, uint64_t>& pitch = pitches_.at(trigger->fields.chanId);
7171
semaphore->connection()->write2D(dst, trigger->fields.dstOffset, pitch.first, src, trigger->fields.srcOffset,
7272
pitch.second, trigger->fields2D.width, trigger->fields2D.height);
7373
} else {

0 commit comments

Comments
 (0)