Skip to content

Commit

Permalink
Fix errors during rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Feb 21, 2025
1 parent 359c19a commit 7671099
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cpp/include/kvikio/defaults.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ CompatMode getenv_or(std::string_view env_var_name, CompatMode default_val);
*/
class defaults {
private:
BS::thread_pool _thread_pool{get_num_threads_from_env()};
BS_thread_pool _thread_pool{get_num_threads_from_env()};
CompatMode _compat_mode;
std::size_t _task_size;
std::size_t _gds_threshold;
Expand Down Expand Up @@ -155,7 +155,7 @@ class defaults {
*
* @return The the default thread pool instance.
*/
[[nodiscard]] static BS::thread_pool& thread_pool();
[[nodiscard]] static BS_thread_pool& thread_pool();

/**
* @brief Get the number of threads in the default thread pool.
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/kvikio/parallel_operation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ template <typename F>
std::future<std::size_t> submit_move_only_task(
F op_move_only,
std::uint64_t nvtx_payload = 0ull,
nvtx_color_type nvtx_color = nvtx_manager::default_color())
nvtx_color_type nvtx_color = NvtxManager::default_color())
{
static_assert(std::is_invocable_r_v<std::size_t, F>);
auto op_copyable = make_copyable_lambda(std::move(op_move_only));
Expand Down
1 change: 0 additions & 1 deletion cpp/include/kvikio/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
#pragma once

#include <cassert>
#include <chrono>
#include <cstring>
#include <future>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/defaults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ bool defaults::is_compat_mode_preferred(CompatMode compat_mode) noexcept

bool defaults::is_compat_mode_preferred() { return is_compat_mode_preferred(compat_mode()); }

BS::thread_pool& defaults::thread_pool() { return instance()->_thread_pool; }
BS_thread_pool& defaults::thread_pool() { return instance()->_thread_pool; }

unsigned int defaults::thread_pool_nthreads() { return thread_pool().get_thread_count(); }

Expand Down

0 comments on commit 7671099

Please sign in to comment.