Home
last modified time | relevance | path

Searched refs:NumThreads (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project-15.0.7/openmp/libomptarget/DeviceRTL/src/
H A DParallelism.cpp52 uint32_t NumThreads = mapping::getBlockSize(); in determineNumberOfThreads() local
54 if (NThreadsICV != 0 && NThreadsICV < NumThreads) in determineNumberOfThreads()
55 NumThreads = NThreadsICV; in determineNumberOfThreads()
58 if (NumThreads < mapping::getWarpSize()) in determineNumberOfThreads()
59 NumThreads = 1; in determineNumberOfThreads()
61 NumThreads = (NumThreads & ~((uint32_t)mapping::getWarpSize() - 1)); in determineNumberOfThreads()
63 return NumThreads; in determineNumberOfThreads()
103 uint32_t NumThreads = determineNumberOfThreads(num_threads); in __kmpc_parallel_51() local
124 state::ParallelTeamSize.assert_eq(NumThreads, ident, in __kmpc_parallel_51()
129 if (TId < NumThreads) in __kmpc_parallel_51()
[all …]
H A DReduction.cpp77 uint32_t NumThreads = omp_get_num_threads(); in nvptx_parallel_reduce_nowait() local
78 if (NumThreads == 1) in nvptx_parallel_reduce_nowait()
93 (NumThreads + mapping::getWarpSize() - 1) / mapping::getWarpSize(); in nvptx_parallel_reduce_nowait()
112 if (NumThreads > mapping::getWarpSize()) { in nvptx_parallel_reduce_nowait()
141 if (NumThreads > mapping::getWarpSize()) { in nvptx_parallel_reduce_nowait()
203 uint32_t NumThreads = omp_get_num_threads(); in __kmpc_nvptx_teams_reduce_nowait_v2() local
267 NumThreads = roundToWarpsize(kmpcMin(NumThreads, NumRecs)); in __kmpc_nvptx_teams_reduce_nowait_v2()
268 if (ThreadId >= NumThreads) in __kmpc_nvptx_teams_reduce_nowait_v2()
273 for (uint32_t i = NumThreads + ThreadId; i < NumRecs; i += NumThreads) in __kmpc_nvptx_teams_reduce_nowait_v2()
277 if (NumThreads > 1) { in __kmpc_nvptx_teams_reduce_nowait_v2()
[all …]
H A DSynchronization.cpp114 uint32_t NumThreads = omp_get_num_threads(); in namedBarrier() local
118 uint32_t NumWaves = NumThreads / WarpSize; in namedBarrier()
236 uint32_t NumThreads = omp_get_num_threads(); in namedBarrier() local
237 ASSERT(NumThreads % 32 == 0); in namedBarrier()
244 : "r"(BarrierNo), "r"(NumThreads) in namedBarrier()
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/
H A Dthread_contention.cpp45 void runThreadContentionTest(unsigned NumThreads, unsigned NumIterations, in runThreadContentionTest() argument
50 if (std::thread::hardware_concurrency() < NumThreads) { in runThreadContentionTest()
51 NumThreads = std::thread::hardware_concurrency(); in runThreadContentionTest()
54 for (unsigned i = 0; i < NumThreads; ++i) { in runThreadContentionTest()
65 unsigned NumThreads = 4; in TEST_F() local
67 InitNumSlots(NumThreads); in TEST_F()
68 runThreadContentionTest(NumThreads, NumIterations, &GPA); in TEST_F()
H A Dmutex_test.cpp66 static void runSynchronisedTest(unsigned NumThreads, unsigned CounterMax) { in runSynchronisedTest() argument
69 ASSERT_TRUE(CounterMax % NumThreads == 0); in runSynchronisedTest()
75 for (unsigned i = 0; i < NumThreads; ++i) in runSynchronisedTest()
77 CounterMax / NumThreads); in runSynchronisedTest()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/
H A DThreadingTests.cpp68 const unsigned NumThreads = 5; in TEST_F() local
78 for (unsigned I = 0; I < NumThreads; ++I) in TEST_F()
90 EXPECT_LE(ComputeCount, NumThreads * NumKeys) in TEST_F()
/llvm-project-15.0.7/llvm/examples/SpeculativeJIT/
H A DSpeculativeJIT.cpp34 static cl::opt<unsigned> NumThreads("num-threads", cl::Optional, variable
139 ThreadPool CompileThreads{llvm::hardware_concurrency(NumThreads)};
163 if (NumThreads < 1) { in main()
/llvm-project-15.0.7/llvm/tools/llvm-dwarfutil/
H A Dllvm-dwarfutil.cpp102 if (opt::Arg *NumThreads = Args.getLastArg(OPT_threads)) in validateAndSetOptions() local
103 Options.NumThreads = atoi(NumThreads->getValue()); in validateAndSetOptions()
105 Options.NumThreads = 0; // Use all available hardware threads in validateAndSetOptions()
124 if (Options.NumThreads != 1 && Args.hasArg(OPT_threads)) in validateAndSetOptions()
127 Options.NumThreads = 1; in validateAndSetOptions()
H A DOptions.h35 int NumThreads = 0; member
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/GSYM/
H A DDwarfTransformer.h52 llvm::Error convert(uint32_t NumThreads);
/llvm-project-15.0.7/llvm/tools/llvm-gsymutil/
H A Dllvm-gsymutil.cpp103 NumThreads("num-threads", variable
257 NumThreads > 0 ? NumThreads : std::thread::hardware_concurrency(); in handleObjectFile()
/llvm-project-15.0.7/llvm/tools/llvm-cov/
H A DCoverageViewOptions.h51 unsigned NumThreads; member
H A DCoverageExporterJson.cpp233 ThreadPoolStrategy S = hardware_concurrency(Options.NumThreads); in renderFiles()
234 if (Options.NumThreads == 0) { in renderFiles()
H A DCodeCoverage.cpp742 cl::opt<unsigned> NumThreads( in run() local
746 cl::aliasopt(NumThreads)); in run()
907 ViewOpts.NumThreads = NumThreads; in run()
1130 ThreadPoolStrategy S = hardware_concurrency(ViewOpts.NumThreads); in doShow()
1131 if (ViewOpts.NumThreads == 0) { in doShow()
H A DCoverageReport.cpp391 ThreadPoolStrategy S = hardware_concurrency(Options.NumThreads); in prepareFileReports()
392 if (Options.NumThreads == 0) { in prepareFileReports()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.h197 void emitNumThreadsClause(CodeGenFunction &CGF, llvm::Value *NumThreads,
265 const Expr *IfCond, llvm::Value *NumThreads) override;
/llvm-project-15.0.7/polly/include/polly/CodeGen/
H A DLoopGeneratorsKMP.h92 void createCallPushNumThreads(Value *GlobalThreadID, Value *NumThreads);
/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DDwarfTransformer.cpp428 Error DwarfTransformer::convert(uint32_t NumThreads) { in convert() argument
447 if (NumThreads == 1) { in convert()
468 ThreadPool pool(hardware_concurrency(NumThreads)); in convert()
/llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/
H A DMachThreadList.h62 nub_size_t NumThreads() const;
/llvm-project-15.0.7/third-party/benchmark/test/
H A Duser_counters_test.cc279 CHECK_COUNTER_VALUE(e, int, "foo", EQ, e.NumThreads()); in CheckThreads()
280 CHECK_COUNTER_VALUE(e, int, "bar", EQ, 2 * e.NumThreads()); in CheckThreads()
H A Doutput_test.h100 int NumThreads() const;
/llvm-project-15.0.7/openmp/libomptarget/plugins/cuda/src/
H A Drtl.cpp167 int NumThreads = 0; member
757 DeviceData[DeviceId].NumThreads = DeviceRTLTy::DefaultNumThreads; in initDevice()
760 if (DeviceData[DeviceId].NumThreads > in initDevice()
764 DeviceData[DeviceId].NumThreads = DeviceData[DeviceId].ThreadsPerBlock; in initDevice()
1146 DeviceData[DeviceId].NumThreads); in runTargetTeamRegion()
1147 CudaThreadsPerBlock = DeviceData[DeviceId].NumThreads; in runTargetTeamRegion()
/llvm-project-15.0.7/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp378 unsigned NumThreads, FailureMode FailMode, in mergeInstrProfile() argument
397 if (NumThreads == 0) in mergeInstrProfile()
398 NumThreads = std::min(hardware_concurrency().compute_thread_count(), in mergeInstrProfile()
406 for (unsigned I = 0; I < NumThreads; ++I) in mergeInstrProfile()
410 if (NumThreads == 1) { in mergeInstrProfile()
415 ThreadPool Pool(hardware_concurrency(NumThreads)); in mergeInstrProfile()
422 Ctx = (Ctx + 1) % NumThreads; in mergeInstrProfile()
956 cl::opt<unsigned> NumThreads( in merge_main() local
960 cl::aliasopt(NumThreads)); in merge_main()
1060 OutputFilename, OutputFormat, OutputSparse, NumThreads, in merge_main()
/llvm-project-15.0.7/llvm/tools/dsymutil/
H A Ddsymutil.cpp112 unsigned NumThreads; member
353 if (opt::Arg *NumThreads = Args.getLastArg(OPT_threads)) in getOptions() local
354 Options.LinkOpts.Threads = atoi(NumThreads->getValue()); in getOptions()
/llvm-project-15.0.7/llvm/include/llvm/DWARFLinker/
H A DDWARFLinker.h276 void setNumThreads(unsigned NumThreads) { Options.Threads = NumThreads; } in setNumThreads() argument

12