Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Jan 9, 2025
1 parent 76830b9 commit 421c46d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cpp/include/kvikio/defaults.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025, NVIDIA CORPORATION.
* Copyright (c) 2022-2025, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/kvikio/remote_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class RemoteHandle {
*
* @return The number of bytes.
*/
std::size_t nbytes() const noexcept;
[[nodiscard]] std::size_t nbytes() const noexcept;

/**
* @brief Get a const reference to the underlying remote endpoint.
Expand Down
1 change: 0 additions & 1 deletion cpp/include/kvikio/shim/cuda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
#pragma once

#include <kvikio/shim/cuda.hpp>
#include <kvikio/shim/cuda_h_wrapper.hpp>
#include <kvikio/shim/utils.hpp>

Expand Down
2 changes: 1 addition & 1 deletion cpp/include/kvikio/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ std::tuple<void*, std::size_t, std::size_t> get_alloc_info(const void* devPtr,
CUcontext* ctx = nullptr);

template <typename T>
inline bool is_future_done(const T& future)
bool is_future_done(const T& future)
{
return future.wait_for(std::chrono::seconds(0)) != std::future_status::timeout;
}
Expand Down

0 comments on commit 421c46d

Please sign in to comment.