| /third_party/vk-gl-cts/framework/delibs/decpp/ |
| 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 …rier::WaitMode getWaitMode (SpinBarrier::WaitMode requested, deUint32 numCores, deInt32 numThreads) in getWaitMode() argument 63 …return ((deUint32)numThreads <= numCores) ? SpinBarrier::WAIT_MODE_BUSY : SpinBarrier::WAIT_MODE_Y… in getWaitMode() 175 TestThread (SpinBarrier& barrier, volatile deInt32* sharedVar, int numThreads, int threadNdx) in TestThread() argument 178 , m_numThreads (numThreads) in TestThread() [all …]
|
| 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 …]
|
| D | deSpinBarrier.hpp | 57 SpinBarrier (deInt32 numThreads); 62 void reset (deUint32 numThreads);
|
| /third_party/lzma/CPP/7zip/Common/ |
| D | MethodProps.h | 38 HRESULT ParseMtProp2(const UString &name, const PROPVARIANT &prop, UInt32 &numThreads, bool &force); 40 …ESULT 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() 200 int numThreads = Get_NumThreads(); in Get_Xz_NumThreads() local 201 if (numThreads >= 0 && numThreads <= 1) in Get_Xz_NumThreads() 205 return numThreads; in Get_Xz_NumThreads() [all …]
|
| 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() 149 UInt32 v = numThreads; in ParseMtProp2() 182 v = numThreads * v / 100; in ParseMtProp2() 186 numThreads = v; in ParseMtProp2() 606 static UInt64 GetMemoryUsage_LZMA(UInt32 dict, bool isBt, UInt32 numThreads) in GetMemoryUsage_LZMA() argument 627 if (numThreads > 1 && isBt) in GetMemoryUsage_LZMA() 639 const UInt32 numThreads = Get_Lzma_NumThreads(); in Get_Lzma_MemUsage() local 640 UInt64 size = GetMemoryUsage_LZMA(dict32, isBt, numThreads); in Get_Lzma_MemUsage() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
| 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()
|
| D | marl_bench.h | 40 cfg.setWorkerThreadCount(numThreads(state)); in run() 84 static int numThreads(const ::benchmark::State& state) { in numThreads() function
|
| /third_party/lzma/CPP/7zip/Compress/ |
| 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() 167 if (props.numThreads > 1) in Code() 198 STDMETHODIMP CDecoder::SetNumberOfThreads(UInt32 numThreads) in SetNumberOfThreads() argument [all …]
|
| D | XzDecoder.cpp | 55 props.numThreads = 1; in Decode() 56 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 STDMETHODIMP CComDecoder::SetNumberOfThreads(UInt32 numThreads) in SetNumberOfThreads() argument 138 _numThreads = numThreads; in SetNumberOfThreads()
|
| /third_party/lzma/CPP/7zip/UI/Common/ |
| D | Bench.cpp | 1719 UInt32 numThreads, in MethodBench() argument 1747 numEncoderThreads = numThreads; in MethodBench() 1752 if (numThreads == 1 && method.Get_NumThreads() < 0) in MethodBench() 1755 if (numThreads > 1 && numLzmaThreads > 1) in MethodBench() 1757 numEncoderThreads = (numThreads + 1) / 2; // 20.03 in MethodBench() 2116 UInt64 GetBenchMemoryUsage(UInt32 numThreads, int level, UInt64 dictionary, bool totalBench) in GetBenchMemoryUsage() argument 2125 UInt32 numBigThreads = numThreads; in GetBenchMemoryUsage() 2126 bool lzmaMt = (totalBench || (numThreads > 1 && btMode)); in GetBenchMemoryUsage() 2136 static UInt64 GetBenchMemoryUsage_Hash(UInt32 numThreads, UInt64 dictionary) in GetBenchMemoryUsage_Hash() argument 2139 return (UInt64)(dictionary + (1 << 15)) * numThreads + (2 << 20); in GetBenchMemoryUsage_Hash() [all …]
|
| D | Bench.h | 86 UInt64 GetBenchMemoryUsage(UInt32 numThreads, int level, UInt64 dictionary, bool totalBench); 97 virtual HRESULT AddCpuFreq(unsigned numThreads, UInt64 freq, UInt64 usage) = 0; 98 virtual HRESULT FreqsFinished(unsigned numThreads) = 0;
|
| /third_party/lzma/C/ |
| D | LzmaLib.c | 17 int numThreads /* 1 or 2, default = 2 */ in LzmaCompress() argument 28 props.numThreads = numThreads; in LzmaCompress()
|
| D | MtCoder.h | 18 #define MTCODER__GET_NUM_BLOCKS_FROM_THREADS(numThreads) ((numThreads) + (numThreads) / 8 + 1) argument
|
| D | MtCoder.c | 453 unsigned numThreads = p->numThreadsMax; in MtCoder_Code() local 458 if (numThreads > MTCODER__THREADS_MAX) in MtCoder_Code() 459 numThreads = MTCODER__THREADS_MAX; in MtCoder_Code() 460 numBlocksMax = MTCODER__GET_NUM_BLOCKS_FROM_THREADS(numThreads); in MtCoder_Code() 519 p->numStartedThreadsLimit = numThreads; in MtCoder_Code()
|
| /third_party/vk-gl-cts/modules/egl/ |
| 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; threadNdx++) in executeForContexts()
|
| 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; threadNdx++) in executeForContexts()
|
| /third_party/vk-gl-cts/framework/delibs/dethread/ |
| 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/ |
| D | HandlerOut.cpp | 144 …d 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()
|
| D | HandlerOut.h | 84 static void SetMethodThreadsTo_IfNotFinded(CMethodProps &props, UInt32 numThreads); 85 static void SetMethodThreadsTo_Replace(CMethodProps &props, UInt32 numThreads);
|
| /third_party/vk-gl-cts/external/glslang/ |
| 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/lzma/CPP/7zip/Bundles/LzmaCon/ |
| D | LzmaAlone.cpp | 415 UInt32 numThreads = (UInt32)(Int32)-1; in main2() local 423 numThreads = NWindows::NSystem::GetNumberOfProcessors(); in main2() 425 numThreads = GetNumber(s); in main2() 463 if (numThreads == (UInt32)(Int32)-1) in main2() 464 numThreads = 1; in main2() 699 props[8].ulVal = (UInt32)numThreads; in main2()
|
| /third_party/mesa3d/src/nouveau/codegen/ |
| 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
| D | VersionInfoTest.java | 381 final int numThreads = 20; in TestMultiThread() local 382 GetInstanceWorker[] workers = new GetInstanceWorker[numThreads]; in TestMultiThread() 383 VersionInfo[][] results = new VersionInfo[numThreads][255]; in TestMultiThread()
|
| /third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
| D | VersionInfoTest.java | 372 final int numThreads = 20; in TestMultiThread() local 373 GetInstanceWorker[] workers = new GetInstanceWorker[numThreads]; in TestMultiThread() 374 VersionInfo[][] results = new VersionInfo[numThreads][255]; in TestMultiThread()
|
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ |
| D | vktBuildPrograms.cpp | 97 TaskExecutor (deUint32 numThreads); 110 TaskExecutor::TaskExecutor (deUint32 numThreads) in TaskExecutor() argument 111 : m_threads (numThreads) in TaskExecutor() 400 const deUint32 numThreads = deGetNumAvailableLogicalCores(); in buildPrograms() local 402 TaskExecutor executor (numThreads); in buildPrograms()
|