Skip to content

Commit

Permalink
Fix PbTensor memory handle calculation
Browse files Browse the repository at this point in the history
Fix shm handle on loading PbTensor pb_memory
  • Loading branch information
pziecina-nv committed May 21, 2024
1 parent b3afcc9 commit be163e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pb_tensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ PbTensor::LoadFromSharedMemory(
if (tensor_shm_ptr->memory == 0) {
std::size_t pb_memory_offset = name_offset + name_shm->Size();
pb_memory = PbMemory::LoadFromSharedMemory(
shm_pool, pb_memory_offset, tensor_shm.data_.get() + pb_memory_offset,
shm_pool, tensor_handle + pb_memory_offset, tensor_shm.data_.get() + pb_memory_offset,
open_cuda_handle);
} else {
pb_memory = PbMemory::LoadFromSharedMemory(
Expand Down

0 comments on commit be163e6

Please sign in to comment.