aboutsummaryrefslogtreecommitdiff
path: root/internal/multi_thread_gemm.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/multi_thread_gemm.h')
-rw-r--r--internal/multi_thread_gemm.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/internal/multi_thread_gemm.h b/internal/multi_thread_gemm.h
index df7387a..791402f 100644
--- a/internal/multi_thread_gemm.h
+++ b/internal/multi_thread_gemm.h
@@ -149,9 +149,7 @@ T WaitForVariableChange(volatile T* var, T initial_value, pthread_cond_t* cond,
// to have finished working.
class BlockingCounter {
public:
- BlockingCounter()
- : count_(0),
- initial_count_(0) {
+ BlockingCounter() : count_(0), initial_count_(0) {
pthread_cond_init(&cond_, nullptr);
pthread_mutex_init(&mutex_, nullptr);
}
@@ -548,11 +546,6 @@ class MultiThreadGemmContext : public MultiThreadGemmContextBase {
WorkersPool workers_pool_;
};
-// Needed by chrome native builds
-#ifndef _SC_NPROCESSORS_CONF
-#define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_ONLN
-#endif
-
// Determines how many threads should be used for a given Gemm
// operation.
template <int KernelRows>