Searched refs:kMaxThreadNum (Results 1 – 8 of 8) sorted by relevance
29 const size_t kMaxThreadNum = 23; variable44 if (max_thread_num_ > kMaxThreadNum) { in ThreadPool()45 max_thread_num_ = kMaxThreadNum; in ThreadPool()
26 static const uint32_t kMaxThreadNum = 16; variable40 uint32_t thread_num = std::max(kMaxThreadNum, kCPUCoreNum); in UpdateStandardDeviation()71 uint32_t thread_num = std::max(kMaxThreadNum, kCPUCoreNum); in InitRandomNormal()
28 const size_t kMaxThreadNum = 23; in ComputeThreadNums() local40 if (*max_thread_num > kMaxThreadNum) { in ComputeThreadNums()41 *max_thread_num = kMaxThreadNum; in ComputeThreadNums()
31 const int kMaxThreadNum = 8; variable50 CHECK_LESS_RETURN(MAX_MALLOC_SIZE, kMaxThreadNum * sizeof(float)); in MallocTmpBuffer()51 tmp_sum_ = reinterpret_cast<float *>(malloc(kMaxThreadNum * sizeof(float))); in MallocTmpBuffer()
468 thread_num = thread_num > kMaxThreadNum ? kMaxThreadNum : thread_num; in CheckCacheHitOrOutRange()469 std::thread threads[kMaxThreadNum]; in CheckCacheHitOrOutRange()470 size_t hash_hit_count[kMaxThreadNum] = {0}; in CheckCacheHitOrOutRange()720 thread_num = thread_num > kMaxThreadNum ? kMaxThreadNum : thread_num; in LookUpHostHashTable()721 std::thread threads[kMaxThreadNum]; in LookUpHostHashTable()751 thread_num = thread_num > kMaxThreadNum ? kMaxThreadNum : thread_num; in InsertHostHashTable()752 std::thread threads[kMaxThreadNum]; in InsertHostHashTable()
42 constexpr size_t kMaxThreadNum = 16; variable
153 const size_t kMaxThreadNum = 23; in GetActorMgrInnerThreadPool() local162 max_thread_num = max_thread_num < kMaxThreadNum ? max_thread_num : kMaxThreadNum; in GetActorMgrInnerThreadPool()
23 static const uint32_t kMaxThreadNum = 16; variable176 size_t thread_num = std::max(kMaxThreadNum, kCPUCoreNum); in InitAccumParallel()