/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deSpinBarrier.cpp | 34 SpinBarrier::SpinBarrier (deInt32 numThreads) in SpinBarrier() argument 36 , m_numThreads (numThreads) in SpinBarrier() 41 DE_ASSERT(numThreads > 0); in SpinBarrier() 49 void SpinBarrier::reset (deUint32 numThreads) in reset() argument 53 DE_ASSERT(numThreads > 0); in reset() 54 m_numThreads = numThreads; in reset() 60 inline SpinBarrier::WaitMode getWaitMode (SpinBarrier::WaitMode requested, deUint32 numCores, deInt32 numThreads) in getWaitMode() argument 63 return ((deUint32)numThreads <= numCores) ? SpinBarrier::WAIT_MODE_BUSY : SpinBarrier::WAIT_MODE_YIELD; in getWaitMode() 175 TestThread (SpinBarrier& barrier, volatile deInt32* sharedVar, int numThreads, int threadNdx) in TestThread() argument 178 , m_numThreads (numThreads) in TestThread() 234 multiThreadTest(int numThreads) multiThreadTest() argument 276 TestExitThread(SpinBarrier& barrier, int numThreads, int threadNdx, SpinBarrier::WaitMode waitMode) TestExitThread() argument 309 multiThreadRemoveTest(int numThreads, SpinBarrier::WaitMode waitMode) multiThreadRemoveTest() argument [all...] |
H A D | deAppendList.cpp | 62 SharedState (deUint32 numThreads, deUint32 numElements_, deUint32 numElementsHint) in SharedState() 64 , barrier (numThreads) in SharedState() 97 void runAppendListTest (deUint32 numThreads, deUint32 numElements, deUint32 numElementsHint) in runAppendListTest() argument 99 SharedState sharedState (numThreads, numElements, numElementsHint); in runAppendListTest() 100 vector<TestThreadSp> threads (numThreads); in runAppendListTest() 102 for (deUint32 threadNdx = 0; threadNdx < numThreads; ++threadNdx) in runAppendListTest() 108 for (deUint32 threadNdx = 0; threadNdx < numThreads; ++threadNdx) in runAppendListTest() 111 DE_TEST_ASSERT(sharedState.testList.size() == (size_t)numElements*(size_t)numThreads); in runAppendListTest() 114 vector<deUint32> countByThread (numThreads); in runAppendListTest() 124 DE_TEST_ASSERT(de::inBounds(elem.threadNdx, 0u, numThreads)); in runAppendListTest() [all...] |
H A D | deSpinBarrier.hpp | 57 SpinBarrier (deInt32 numThreads); 62 void reset (deUint32 numThreads);
|
/third_party/lzma/CPP/7zip/Common/ |
H A D | MethodProps.h | 15 // UInt64 GetMemoryUsage_LZMA(UInt32 dict, bool isBt, UInt32 numThreads);
37 /* input: (numThreads = the_number_of_processors) */
38 HRESULT ParseMtProp2(const UString &name, const PROPVARIANT &prop, UInt32 &numThreads, bool &force);
40 inline HRESULT ParseMtProp(const UString &name, const PROPVARIANT &prop, UInt32 numCPUs, UInt32 &numThreads)
in ParseMtProp() argument 43 numThreads = numCPUs;
in ParseMtProp() 44 return ParseMtProp2(name, prop, numThreads, forced);
in ParseMtProp() 188 int numThreads = Get_NumThreads();
in Get_Lzma_NumThreads() local 189 if (numThreads >= 0)
in Get_Lzma_NumThreads() 190 return numThreads < 2 ? 1 : 2;
in Get_Lzma_NumThreads() 196 /* returns -1, if numThreads i 200 int numThreads = Get_NumThreads(); Get_Xz_NumThreads() local 249 int numThreads = Get_NumThreads(); Get_BZip2_NumThreads() local 302 AddProp_NumThreads(UInt32 numThreads) AddProp_NumThreads() argument [all...] |
H A D | MethodProps.cpp | 109 HRESULT ParseMtProp2(const UString &name, const PROPVARIANT &prop, UInt32 &numThreads, bool &force)
in ParseMtProp2() argument 117 numThreads = prop.ulVal;
in ParseMtProp2() 127 numThreads = 1;
in ParseMtProp2() 131 // "(VT_BOOL = VARIANT_TRUE)" set "force = false" and doesn't change numThreads
in ParseMtProp2() 149 UInt32 v = numThreads;
in ParseMtProp2() 182 v = numThreads * v / 100;
in ParseMtProp2() 186 numThreads = v;
in ParseMtProp2() 657 static UInt64 GetMemoryUsage_LZMA(UInt32 dict, bool isBt, UInt32 numThreads)
in GetMemoryUsage_LZMA() argument 678 if (numThreads > 1 && isBt)
in GetMemoryUsage_LZMA() 690 const UInt32 numThreads in Get_Lzma_MemUsage() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | non_marl_bench.cpp | 59 auto const numThreads = Schedule::numThreads(state); in SingleQueueTaskExecutor() local 99 for (int i = 0; i < numThreads; i++) { in SingleQueueTaskExecutor() 106 if (numThreads > 0) { in SingleQueueTaskExecutor() 127 auto const numThreads = Schedule::numThreads(state); in MultiQueueTaskExecutor() local 128 auto const numQueues = std::max(numThreads, 1); in MultiQueueTaskExecutor() 137 if (numThreads > 0) { in MultiQueueTaskExecutor() 143 for (int i = 0; i < numThreads; i++) { in MultiQueueTaskExecutor()
|
H A D | marl_bench.h | 40 cfg.setWorkerThreadCount(numThreads(state)); in run() 82 // numThreads() return the number of threads in the benchmark run from the 84 static int numThreads(const ::benchmark::State& state) { in numThreads() function in Schedule
|
/third_party/lzma/CPP/7zip/Compress/ |
H A D | Lzma2Decoder.cpp | 107 props.numThreads = 1;
in Code() 108 UInt32 numThreads = _numThreads;
in Code() local 110 if (_tryMt && numThreads >= 1)
in Code() 123 if (numThreads > okThreads)
in Code() 124 numThreads = (UInt32)okThreads;
in Code() 125 if (numThreads == 0)
in Code() 126 numThreads = 1;
in Code() 127 props.numThreads = numThreads;
in Code() 166 /* we reset _tryMt, only if p->props.numThreads wa in Code() 198 SetNumberOfThreads(UInt32 numThreads) SetNumberOfThreads() argument [all...] |
H A D | XzDecoder.cpp | 55 props.numThreads = 1;
in Decode() 56 const UInt32 numThreads = _numThreads;
in Decode() local 58 if (_tryMt && numThreads > 1)
in Decode() 64 isMT = (numThreads > 1);
in Decode() 67 props.numThreads = numThreads;
in Decode() 136 Z7_COM7F_IMF(CComDecoder::SetNumberOfThreads(UInt32 numThreads))
in SetNumberOfThreads() argument 138 _numThreads = numThreads;
in SetNumberOfThreads()
|
/third_party/lzma/CPP/7zip/UI/Common/ |
H A D | Bench.cpp | 1777 UInt32 numThreads,
1806 numEncoderThreads = numThreads;
1811 if (numThreads == 1 && method.Get_NumThreads() < 0)
1814 if (numThreads > 1 && numLzmaThreads > 1)
1816 numEncoderThreads = (numThreads + 1) / 2; // 20.03
2193 UInt64 GetBenchMemoryUsage(UInt32 numThreads, int level, UInt64 dictionary, bool totalBench)
2202 UInt32 numBigThreads = numThreads;
2203 bool lzmaMt = (totalBench || (numThreads > 1 && btMode));
2213 static UInt64 GetBenchMemoryUsage_Hash(UInt32 numThreads, UInt64 dictionary)
2216 return (UInt64)(dictionary + (1 << 15)) * numThreads [all...] |
H A D | Bench.h | 76 UInt64 GetBenchMemoryUsage(UInt32 numThreads, int level, UInt64 dictionary, bool totalBench);
95 virtual HRESULT AddCpuFreq(unsigned numThreads, UInt64 freq, UInt64 usage) = 0;
in DECLARE_INTERFACE() 96 virtual HRESULT FreqsFinished(unsigned numThreads) = 0;
in DECLARE_INTERFACE()
|
/third_party/lzma/C/ |
H A D | LzmaLib.c | 19 int numThreads /* 1 or 2, default = 2 */
in LzmaCompress() 30 props.numThreads = numThreads;
in LzmaCompress()
|
H A D | MtCoder.h | 18 #define MTCODER_GET_NUM_BLOCKS_FROM_THREADS(numThreads) ((numThreads) + (numThreads) / 8 + 1)
|
H A D | MtCoder.c | 427 unsigned numThreads = p->numThreadsMax;
in MtCoder_Code() local 432 if (numThreads > MTCODER_THREADS_MAX)
in MtCoder_Code() 433 numThreads = MTCODER_THREADS_MAX;
in MtCoder_Code() 434 numBlocksMax = MTCODER_GET_NUM_BLOCKS_FROM_THREADS(numThreads);
in MtCoder_Code() 493 p->numStartedThreadsLimit = numThreads;
in MtCoder_Code() 496 // for (i = 0; i < numThreads; i++)
in MtCoder_Code()
|
/third_party/vk-gl-cts/modules/egl/ |
H A D | teglColorClearCase.cpp | 353 int numThreads = (int)contexts.size(); in executeForContexts() local 354 int numPackets = numThreads * numPacketsPerThread; in executeForContexts() 357 vector<vector<ClearPacket> > packets (numThreads); in executeForContexts() 358 vector<ColorClearThreadSp> threads (numThreads); in executeForContexts() 365 for (int threadNdx = 0; threadNdx < numThreads; threadNdx++) in executeForContexts() 374 packet.wait = semaphores[packetNdx*numThreads + threadNdx]; in executeForContexts() 375 packet.signal = semaphores[packetNdx*numThreads + threadNdx + 1]; in executeForContexts() 389 for (int threadNdx = 0; threadNdx < numThreads; threadNdx++) in executeForContexts() 414 for (int threadNdx = 0; threadNdx < numThreads; threadNdx++) in executeForContexts() 420 for (int threadNdx = 0; threadNdx < numThreads; threadNd in executeForContexts() [all...] |
H A D | teglRenderTests.cpp | 944 const int numThreads = numContexts; in executeForContexts() local 945 const int numPackets = numThreads * packetsPerThread; in executeForContexts() 964 vector<vector<DrawOpPacket> > packets (numThreads); in executeForContexts() 965 vector<RenderTestThreadSp> threads (numThreads); in executeForContexts() 985 for (int threadNdx = 0; threadNdx < numThreads; threadNdx++) in executeForContexts() 994 packet.wait = semaphores[packetNdx*numThreads + threadNdx]; in executeForContexts() 995 packet.signal = semaphores[packetNdx*numThreads + threadNdx + 1]; in executeForContexts() 997 packet.drawOps = &drawOps[(packetNdx*numThreads + threadNdx)*opsPerPacket]; in executeForContexts() 1031 for (int threadNdx = 0; threadNdx < numThreads; threadNdx++) in executeForContexts() 1057 for (int threadNdx = 0; threadNdx < numThreads; threadNd in executeForContexts() [all...] |
/third_party/vk-gl-cts/framework/delibs/dethread/ |
H A D | deThreadTest.c | 627 static void runSingletonThreadedTest (int numThreads, int initTimeMs) in runSingletonThreadedTest() argument 635 for (threadNdx = 0; threadNdx < numThreads; threadNdx++) in runSingletonThreadedTest() 647 for (threadNdx = 0; threadNdx < numThreads; threadNdx++) in runSingletonThreadedTest() 665 int numThreads; in deSingleton_selfTest() member 683 int numThreads = cases[caseNdx].numThreads; in deSingleton_selfTest() local 689 runSingletonThreadedTest(numThreads, initTimeMs); in deSingleton_selfTest()
|
/third_party/lzma/CPP/7zip/Archive/Common/ |
H A D | HandlerOut.cpp | 144 void CMultiMethodProps::SetMethodThreadsTo_IfNotFinded(CMethodProps &oneMethodInfo, UInt32 numThreads)
in SetMethodThreadsTo_IfNotFinded() argument 146 SetMethodProp32(oneMethodInfo, NCoderPropID::kNumThreads, numThreads);
in SetMethodThreadsTo_IfNotFinded() 149 void CMultiMethodProps::SetMethodThreadsTo_Replace(CMethodProps &oneMethodInfo, UInt32 numThreads)
in SetMethodThreadsTo_Replace() argument 151 SetMethodProp32_Replace(oneMethodInfo, NCoderPropID::kNumThreads, numThreads);
in SetMethodThreadsTo_Replace()
|
H A D | HandlerOut.h | 84 static void SetMethodThreadsTo_IfNotFinded(CMethodProps &props, UInt32 numThreads);
85 static void SetMethodThreadsTo_Replace(CMethodProps &props, UInt32 numThreads);
|
/third_party/glslang/ |
H A D | osinclude.cpp | 94 void OS_WaitForAllThreads (void* threads, int numThreads) in OS_WaitForAllThreads() argument 96 for (int ndx = 0; ndx < numThreads; ndx++) in OS_WaitForAllThreads()
|
/third_party/vk-gl-cts/external/glslang/ |
H A D | osinclude.cpp | 94 void OS_WaitForAllThreads (void* threads, int numThreads) in OS_WaitForAllThreads() argument 96 for (int ndx = 0; ndx < numThreads; ndx++) in OS_WaitForAllThreads()
|
/third_party/mesa3d/src/nouveau/codegen/ |
H A D | nv50_ir_target.h | 180 threads = info->prop.cp.numThreads[0] * in parseDriverInfo() 181 info->prop.cp.numThreads[1] * in parseDriverInfo() 182 info->prop.cp.numThreads[2]; in parseDriverInfo()
|
/third_party/lzma/CPP/7zip/Bundles/LzmaCon/ |
H A D | LzmaAlone.cpp | 413 UInt32 numThreads = (UInt32)(Int32)-1;
421 numThreads = NWindows::NSystem::GetNumberOfProcessors();
423 numThreads = GetNumber(s);
461 if (numThreads == (UInt32)(Int32)-1)
462 numThreads = 1;
697 props[8].ulVal = (UInt32)numThreads;
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
H A D | VersionInfoTest.java | 372 final int numThreads = 20; in TestMultiThread() 373 GetInstanceWorker[] workers = new GetInstanceWorker[numThreads]; in TestMultiThread() 374 VersionInfo[][] results = new VersionInfo[numThreads][255]; in TestMultiThread()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
H A D | VersionInfoTest.java | 381 final int numThreads = 20; in TestMultiThread() 382 GetInstanceWorker[] workers = new GetInstanceWorker[numThreads]; in TestMultiThread() 383 VersionInfo[][] results = new VersionInfo[numThreads][255]; in TestMultiThread()
|