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

Commit

Permalink
adjust format
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-11 committed Sep 5, 2023
1 parent 7de7ce9 commit 2dd5d99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cpp/bench/wholememory_ops/gather_scatter_bench.cu
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,12 @@ void gather_scatter_benchmark(GatherScatterBenchParam& params)
wholememory_tensor_t embedding_tensor;
wholememory_tensor_description_t embedding_tensor_desc;
wholememory_copy_matrix_desc_to_tensor(&embedding_tensor_desc, &embedding_desc);
WHOLEMEMORY_CHECK_NOTHROW(wholememory_create_tensor(&embedding_tensor,
WHOLEMEMORY_CHECK_NOTHROW(wholememory_create_tensor(&embedding_tensor,
&embedding_tensor_desc,
wm_comm,
wm_comm,
params.get_memory_type(),
params.get_memory_location()) == WHOLEMEMORY_SUCCESS);
params.get_memory_location()) ==
WHOLEMEMORY_SUCCESS);

cudaStream_t stream;
WM_CUDA_CHECK_NO_THROW(cudaStreamCreate(&stream));
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/wholememory/env_func_ptrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class CachedAllocator {
host_chunked_mem_pool_ = std::make_unique<HostChunkedMemoryPool>();
}
~CachedAllocator() {}
CachedAllocator(const CachedAllocator& ca) = delete;
CachedAllocator(const CachedAllocator& ca) = delete;
const CachedAllocator& operator=(const CachedAllocator& ca) = delete;

static CachedAllocator ca_inst_;
Expand Down

0 comments on commit 2dd5d99

Please sign in to comment.