OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
thread_count.h File Reference
#include <algorithm>
#include <thread>
+ Include dependency graph for thread_count.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 import_export
 

Functions

int cpu_threads ()
 
size_t import_export::num_import_threads (const int32_t copy_params_threads)
 

Variables

unsigned g_cpu_threads_override
 
size_t g_max_import_threads
 

Function Documentation

int cpu_threads ( )
inline

Definition at line 25 of file thread_count.h.

References g_cpu_threads_override.

Referenced by anonymous_namespace{TableArchiver.cpp}::adjust_altered_table_files(), RangeJoinHashTable::approximateTupleCount(), OverlapsJoinHashTable::approximateTupleCount(), BaselineJoinHashTable::approximateTupleCount(), Fragmenter_Namespace::InsertOrderFragmenter::compactRows(), anonymous_namespace{OverlapsJoinHashTable.cpp}::compute_bucket_sizes(), StringDictionary::copyStrings(), CodeGenerator::createInValuesBitmap(), Executor::executeWorkUnitImpl(), anonymous_namespace{RelAlgTranslator.cpp}::get_in_values_expr(), ArrowResultSetConverter::getArrowBatch(), StringDictionary::getEquals(), RelAlgTranslator::getInIntegerSetExpr(), StringDictionary::getLike(), StringDictionary::getRegexpLike(), Fragmenter_Namespace::InsertOrderFragmenter::getVacuumOffsets(), BaselineJoinHashTableBuilder::initHashTableOnCpu(), PerfectJoinHashTableBuilder::initOneToManyHashTableOnCpu(), PerfectJoinHashTableBuilder::initOneToOneHashTableOnCpu(), Executor::launchKernels(), ColumnFetcher::linearizeVarLenArrayColFrags(), ColumnarResults::materializeAllColumnsGroupBy(), ColumnarResults::materializeAllColumnsThroughIteration(), ColumnarResults::materializeAllLazyColumns(), ResultSet::ResultSetComparator< BUFFER_ITERATOR_TYPE >::materializeApproxQuantileColumn(), ResultSet::ResultSetComparator< BUFFER_ITERATOR_TYPE >::materializeCountDistinctColumn(), ResultSetStorage::moveEntriesToBuffer(), StorageIOFacility::normalized_cpu_threads(), threading_serial::parallel_for(), threading_std::parallel_for(), threading_serial::parallel_reduce(), threading_std::parallel_reduce(), ResultSet::parallelTop(), RelAlgExecutor::prepareLeafExecution(), ResultSetStorage::reduce(), Executor::setupCaching(), startHeavyDBServer(), synthesize_metadata(), Fragmenter_Namespace::InsertOrderFragmenter::updateColumn(), and Fragmenter_Namespace::InsertOrderFragmenter::updateColumns().

25  {
26  auto ov = g_cpu_threads_override;
27  return (ov <= 0) ? std::max(2 * std::thread::hardware_concurrency(), 1U) : ov;
28 }
unsigned g_cpu_threads_override

+ Here is the caller graph for this function:

Variable Documentation

unsigned g_cpu_threads_override

Definition at line 19 of file thread_count.cpp.

size_t g_max_import_threads

Definition at line 106 of file Importer.cpp.