Skip to content

Commit

Permalink
Fix comments and trailing include
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Cong <[email protected]>
  • Loading branch information
matthewdcong committed Jan 31, 2025
1 parent bc6d4f7 commit 6c6a7f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nanovdb/nanovdb/cuda/UnifiedBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ class UnifiedBuffer
/// @brief Resize the memory block managed by this buffer. If the current capacity is larger than the new size this method
/// simply redefines size. Otherwise a new page-table is defined, with the specified advice, and the old block is copied to the new block.
/// @param size size of the new memory block
/// @param dev
/// @param list
/// @param dev the device ID on which to apply each advice provided in list, cudaCpuDeviceId = -1, 0, 1, ...
/// @param list advices to be applied to the resized range
void resize(size_t size, int dev = cudaCpuDeviceId, std::initializer_list<cudaMemoryAdvise> list = {cudaMemAdviseSetPreferredLocation})
{
if (size <= mCapacity) {
Expand All @@ -197,8 +197,8 @@ class UnifiedBuffer
/// @brief Apply a single advise to a memory block
/// @param byteOffset offset in bytes marking the begenning of the memory block to be advised
/// @param size size in bytes of the memory block to be advised.
/// @param dev the device ID to prefetch to, cudaCpuDeviceId = -1, 0, 1, ...
/// @param adv cuda device
/// @param dev the device ID on which to apply the advice provided in adv, cudaCpuDeviceId = -1, 0, 1, ...
/// @param adv advice to be applied to the resized range
void advise(ptrdiff_t byteOffset, size_t size, int dev, cudaMemoryAdvise adv)
{
cudaCheck(cudaMemAdvise(util::PtrAdd(mPtr, byteOffset), size, adv, dev));
Expand Down
2 changes: 1 addition & 1 deletion nanovdb/nanovdb/examples/ex_make_mgpu_nanovdb/main.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright Contributors to the OpenVDB Project
// SPDX-License-Identifier: Apache-2.0#include <nanovdb/NanoVDB.h>
// SPDX-License-Identifier: Apache-2.0
#include <nanovdb/tools/CreatePrimitives.h>
#include <nanovdb/cuda/UnifiedBuffer.h>
#include <nanovdb/cuda/DeviceStreamMap.h>
Expand Down

0 comments on commit 6c6a7f1

Please sign in to comment.