Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Oct 26, 2023
1 parent 0975671 commit b875be7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/src/Threads/Kokkos_Threads_Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,13 @@ std::pair<unsigned, unsigned>

int s_thread_pool_size[3] = {0, 0, 0};

unsigned s_current_reduce_size = 0;
unsigned s_current_shared_size = 0;

void (*volatile s_current_function)(ThreadsInternal &, const void *);
const void *volatile s_current_function_arg = nullptr;

struct Sentinel {
~Sentinel() {
if (s_thread_pool_size[0] || s_thread_pool_size[1] ||
s_thread_pool_size[2] || s_current_reduce_size ||
s_current_shared_size || s_current_function || s_current_function_arg ||
s_thread_pool_size[2] || s_current_function || s_current_function_arg ||
s_threads_exec[0]) {
std::cerr << "ERROR : Process exiting while Kokkos::Threads is still "
"initialized"
Expand Down Expand Up @@ -511,8 +507,6 @@ void ThreadsInternal::print_configuration(std::ostream &s, const bool detail) {
if (nullptr == s_threads_process.m_pool_base) {
s << " Asynchronous";
}
s << " ReduceScratch[" << s_current_reduce_size << "]"
<< " SharedScratch[" << s_current_shared_size << "]";
s << std::endl;

if (detail) {
Expand Down

0 comments on commit b875be7

Please sign in to comment.