Searched refs:numThreads (Results 1 - 25 of 60) sorted by relevance

123

/external/deqp/framework/delibs/decpp/
H A DdeSpinBarrier.hpp57 SpinBarrier (deInt32 numThreads);
62 void reset (deUint32 numThreads);
H A DdeSpinBarrier.cpp34 SpinBarrier::SpinBarrier (deInt32 numThreads) argument
36 , m_numThreads (numThreads)
41 DE_ASSERT(numThreads > 0);
49 void SpinBarrier::reset (deUint32 numThreads) argument
53 DE_ASSERT(numThreads > 0);
54 m_numThreads = numThreads;
60 inline SpinBarrier::WaitMode getWaitMode (SpinBarrier::WaitMode requested, deUint32 numCores, deInt32 numThreads) argument
63 return ((deUint32)numThreads <= numCores) ? SpinBarrier::WAIT_MODE_BUSY : SpinBarrier::WAIT_MODE_YIELD;
175 TestThread (SpinBarrier& barrier, volatile deInt32* sharedVar, int numThreads, int threadNdx) argument
178 , m_numThreads (numThreads)
234 multiThreadTest(int numThreads) argument
276 TestExitThread(SpinBarrier& barrier, int numThreads, int threadNdx, SpinBarrier::WaitMode waitMode) argument
309 multiThreadRemoveTest(int numThreads, SpinBarrier::WaitMode waitMode) argument
[all...]
H A DdeAppendList.cpp62 SharedState (deUint32 numThreads, deUint32 numElements_, deUint32 numElementsHint) argument
64 , barrier (numThreads)
97 void runAppendListTest (deUint32 numThreads, deUint32 numElements, deUint32 numElementsHint) argument
99 SharedState sharedState (numThreads, numElements, numElementsHint);
100 vector<TestThreadSp> threads (numThreads);
102 for (deUint32 threadNdx = 0; threadNdx < numThreads; ++threadNdx)
108 for (deUint32 threadNdx = 0; threadNdx < numThreads; ++threadNdx)
111 DE_TEST_ASSERT(sharedState.testList.size() == (size_t)numElements*(size_t)numThreads);
114 vector<deUint32> countByThread (numThreads);
124 DE_TEST_ASSERT(de::inBounds(elem.threadNdx, 0u, numThreads));
[all...]
/external/lzma/CPP/7zip/Common/
H A DMethodProps.h17 HRESULT ParseMtProp(const UString &name, const PROPVARIANT &prop, UInt32 defaultNumThreads, UInt32 &numThreads);
106 int numThreads = Get_NumThreads(); local
107 if (numThreads >= 0)
110 return numThreads < 2 ? 1 : 2;
118 int numThreads = Get_NumThreads(); local
119 if (numThreads >= 0)
122 if (numThreads < 1) return 1;
123 if (numThreads > 64) return 64;
124 return numThreads;
161 void AddNumThreadsProp(UInt32 numThreads) argument
[all...]
/external/deqp/external/glslang/
H A Dosinclude.cpp94 void OS_WaitForAllThreads (void* threads, int numThreads) argument
96 for (int ndx = 0; ndx < numThreads; ndx++)
/external/lzma/C/
H A DLzmaLib.h37 -1 for any from: level, loc, lp, pb, fb, numThreads
83 numThreads - The number of thereads. 1 or 2. The default value is 2.
104 int numThreads /* 1 or 2, default = 2 */
H A DLzmaLib.c23 int numThreads /* 1 or 2, default = 2 */
34 props.numThreads = numThreads;
H A DLzmaEnc.h30 int numThreads; /* 1 or 2, default = 2 */ member in struct:_CLzmaEncProps
H A DMtCoder.c187 #define GET_NEXT_THREAD(p) &p->mtCoder->threads[p->index == p->mtCoder->numThreads - 1 ? 0 : p->index + 1]
276 unsigned i, numThreads = p->numThreads; local
282 for (i = 0; i < numThreads; i++)
287 for (i = 0; i < numThreads; i++)
308 for (i = 0; i < numThreads; i++)
326 for (i = 0; i < numThreads; i++)
/external/dagger2/core/src/test/java/dagger/internal/
H A DDoubleCheckLazyTest.java42 int numThreads = 10;
43 ExecutorService executor = Executors.newFixedThreadPool(numThreads);
45 final CountDownLatch latch = new CountDownLatch(numThreads);
49 List<Callable<Object>> tasks = Lists.newArrayListWithCapacity(numThreads);
50 for (int i = 0; i < numThreads; i++) {
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
H A DTensorDeviceThreadPool.h133 EIGEN_STRONG_INLINE int numThreads() const { function in struct:Eigen::ThreadPoolDevice
186 if (n <= 1 || numThreads() == 1 ||
187 CostModel::numThreads(n, cost, static_cast<int>(numThreads())) == 1) {
212 (divup<int>(block_count, numThreads()) * numThreads());
233 (divup<int>(coarser_block_count, numThreads()) * numThreads());
H A DTensorDeviceDefault.h37 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE size_t numThreads() const { function in struct:Eigen::DefaultDevice
/external/jemalloc/msvc/projects/vc2015/test_threads/
H A Dtest_threads.cpp32 static const int numThreads = narenas + 1, numAllocsMax = 25, numIter1 = 50, numIter2 = 50; local
39 printf("Starting %d threads x %d x %d iterations...\n", numThreads, numIter1, numIter2);
40 for (int i = 0; i < numThreads; i++) {
/external/aac/libAACdec/src/
H A Daacdec_drc_types.h158 USHORT numThreads; /* The number of DRC data threads extracted from the found payload elements */ member in struct:__anon186
H A Daacdec_drc.cpp132 self->numThreads = 0;
687 self->numThreads = 0;
690 for (i = 0; i < self->numPayloads && self->numThreads < MAX_DRC_THREADS; i++) {
695 FDKmemclear(&threadBs[self->numThreads], sizeof(CDrcPayload));
696 threadBs[self->numThreads].channelData.bandTop[0] = (1024 >> 2) - 1;
700 &threadBs[self->numThreads],
703 self->numThreads++;
708 if (self->dvbAncDataAvailable && self->numThreads < MAX_DRC_THREADS)
714 FDKmemclear(&threadBs[self->numThreads], sizeof(CDrcPayload));
715 threadBs[self->numThreads]
[all...]
/external/lzma/CPP/7zip/Archive/7z/
H A D7zDecode.h58 , bool mtMode, UInt32 numThreads
/external/lzma/CPP/7zip/Archive/Common/
H A DHandlerOut.h26 , UInt32 numThreads
H A DHandlerOut.cpp25 , UInt32 numThreads
33 SetMethodProp32(oneMethodInfo, NCoderPropID::kNumThreads, numThreads);
/external/lzma/CPP/7zip/UI/Common/
H A DBench.cpp1025 UInt32 numThreads,
1047 numEncoderThreads = numThreads;
1053 if (!fixedNumber && numThreads == 1)
1055 if (numThreads > 1 && numLzmaThreads > 1)
1057 numEncoderThreads = numThreads / 2;
1269 UInt64 GetBenchMemoryUsage(UInt32 numThreads, UInt32 dictionary)
1273 UInt32 numSubThreads = (numThreads > 1) ? 2 : 1;
1274 UInt32 numBigThreads = numThreads / numSubThreads;
1276 GetLZMAUsage((numThreads > 1), dictionary) + (2 << 20)) * numBigThreads;
1651 static void PrintRequirements(IBenchPrintCallback &f, const char *sizeString, UInt64 size, const char *threadsString, UInt32 numThreads)
[all...]
H A DBench.h37 UInt64 GetBenchMemoryUsage(UInt32 numThreads, UInt32 dictionary);
/external/guava/guava-tests/test/com/google/common/base/
H A DSuppliersTest.java268 final int numThreads = 3;
269 final Thread[] threads = new Thread[numThreads];
299 while (waitingThreads() != numThreads - 1) {
315 for (int i = 0; i < numThreads; i++) {
350 final int numThreads = 10;
352 Thread[] threads = new Thread[numThreads];
353 for (int i = 0; i < numThreads; i++) {
369 assertEquals(numThreads * iterations + 1, (int) nonThreadSafe.get());
/external/icu/icu4c/source/test/intltest/
H A Dsimplethread.h48 ThreadPoolBase(IntlTest *test, int32_t numThreads);
/external/deqp/modules/egl/
H A DteglColorClearCase.cpp352 int numThreads = (int)contexts.size(); local
353 int numPackets = numThreads * numPacketsPerThread;
356 vector<vector<ClearPacket> > packets (numThreads);
357 vector<ColorClearThreadSp> threads (numThreads);
364 for (int threadNdx = 0; threadNdx < numThreads; threadNdx++)
373 packet.wait = semaphores[packetNdx*numThreads + threadNdx];
374 packet.signal = semaphores[packetNdx*numThreads + threadNdx + 1];
388 for (int threadNdx = 0; threadNdx < numThreads; threadNdx++)
413 for (int threadNdx = 0; threadNdx < numThreads; threadNdx++)
419 for (int threadNdx = 0; threadNdx < numThreads; threadNd
[all...]
/external/swiftshader/third_party/LLVM/utils/lit/lit/
H A Dmain.py300 def runTests(numThreads, litConfig, provider, display):
303 if numThreads == 1:
310 for i in range(numThreads)]
373 parser.add_option("-j", "--threads", dest="numThreads", metavar="N",
459 if opts.numThreads is None:
460 # Python <2.5 has a race condition causing lit to always fail with numThreads>1
465 opts.numThreads = Util.detectCPUs()
467 opts.numThreads = 1
554 opts.numThreads)
574 opts.numThreads
[all...]
/external/lzma/CPP/7zip/Bundles/LzmaCon/
H A DLzmaAlone.cpp230 UInt32 numThreads = (UInt32)(Int32)-1; local
238 numThreads = numCPUs;
240 if (!GetNumber(s, numThreads))
281 if (numThreads == (UInt32)(Int32)-1)
282 numThreads = 1;
473 props[8].ulVal = (UInt32)numThreads;

Completed in 585 milliseconds

123