Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
fix inferencesample option (#107)
Browse files Browse the repository at this point in the history
fix inferencesample option

Authors:
  - Chuang Zhu (https://github.com/chuangz0)

Approvers:
  - Brad Rees (https://github.com/BradReesWork)

URL: #107
  • Loading branch information
chuangz0 authored Jan 19, 2024
1 parent 0ddab62 commit 4a92d47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class nvshmem_device_reference {
: pointer_(static_cast<DataTypeT*>(nvshmem_ref.pointer)),
typed_stride_(nvshmem_ref.stride / sizeof(DataTypeT))
{
assert(gref.stride % sizeof(DataTypeT) == 0);
assert(nvshmem_ref.stride % sizeof(DataTypeT) == 0);
}

__device__ nvshmem_device_reference() = delete;
Expand Down
1 change: 1 addition & 0 deletions cpp/src/wholememory_ops/gather_op_impl_nvshmem.cu
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ wholememory_error_code_t wholememory_gather_nvshmem(
p_env_fns,
stream);
// ungistre
WM_CUDA_CHECK(cudaStreamSynchronize(stream));
if (nvshmemx_buffer_unregister(temp_output_ptr) != 0) {
WHOLEMEMORY_ERROR("nvshmemx_buffer_unregister error in wholememory_gather_nvshmem");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def add_common_sampler_options(argparser: ArgumentParser):
argparser.add_argument(
"-s",
"--inferencesample",
type=int,
type=str,
dest="inferencesample",
default="30",
help="inference sample count, -1 is all",
Expand Down

0 comments on commit 4a92d47

Please sign in to comment.