From b272be183cfdd7c5bd8725898be7e3aa9dde5ad1 Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Tue, 19 Nov 2024 15:20:09 +0100 Subject: [PATCH] Remove unused concurrency member variables from cublas and cusolver handles holders --- .../pika/async_cuda/include/pika/async_cuda/cuda_pool.hpp | 2 -- libs/pika/async_cuda/src/cuda_pool.cpp | 8 ++------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/libs/pika/async_cuda/include/pika/async_cuda/cuda_pool.hpp b/libs/pika/async_cuda/include/pika/async_cuda/cuda_pool.hpp index 8dfcb5ec5..3d4f17178 100644 --- a/libs/pika/async_cuda/include/pika/async_cuda/cuda_pool.hpp +++ b/libs/pika/async_cuda/include/pika/async_cuda/cuda_pool.hpp @@ -84,7 +84,6 @@ namespace pika::cuda::experimental { struct cublas_handles_holder { - std::size_t const concurrency; std::atomic handle_index; std::vector handles; std::vector handle_mutexes; @@ -101,7 +100,6 @@ namespace pika::cuda::experimental { struct cusolver_handles_holder { - std::size_t const concurrency; std::atomic handle_index; std::vector handles; std::vector handle_mutexes; diff --git a/libs/pika/async_cuda/src/cuda_pool.cpp b/libs/pika/async_cuda/src/cuda_pool.cpp index 0168a5f87..68a20aac1 100644 --- a/libs/pika/async_cuda/src/cuda_pool.cpp +++ b/libs/pika/async_cuda/src/cuda_pool.cpp @@ -49,9 +49,7 @@ namespace pika::cuda::experimental { } cuda_pool::cublas_handles_holder::cublas_handles_holder(std::size_t num_handles) - : concurrency(pika::detail::get_runtime_ptr() ? pika::get_num_worker_threads() : - pika::threads::detail::hardware_concurrency()) - , handle_index{0} + : handle_index{0} , handles() , handle_mutexes(num_handles) { @@ -83,9 +81,7 @@ namespace pika::cuda::experimental { } cuda_pool::cusolver_handles_holder::cusolver_handles_holder(std::size_t num_handles) - : concurrency(pika::detail::get_runtime_ptr() ? pika::get_num_worker_threads() : - pika::threads::detail::hardware_concurrency()) - , handle_index{0} + : handle_index{0} , handles() , handle_mutexes(num_handles) {