| /llvm-project-15.0.7/openmp/libomptarget/DeviceRTL/src/ |
| H A D | Parallelism.cpp | 52 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 D | Reduction.cpp | 77 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 D | Synchronization.cpp | 114 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 D | thread_contention.cpp | 45 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 D | mutex_test.cpp | 66 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 D | ThreadingTests.cpp | 68 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 D | SpeculativeJIT.cpp | 34 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 D | llvm-dwarfutil.cpp | 102 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 D | Options.h | 35 int NumThreads = 0; member
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/GSYM/ |
| H A D | DwarfTransformer.h | 52 llvm::Error convert(uint32_t NumThreads);
|
| /llvm-project-15.0.7/llvm/tools/llvm-gsymutil/ |
| H A D | llvm-gsymutil.cpp | 103 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 D | CoverageViewOptions.h | 51 unsigned NumThreads; member
|
| H A D | CoverageExporterJson.cpp | 233 ThreadPoolStrategy S = hardware_concurrency(Options.NumThreads); in renderFiles() 234 if (Options.NumThreads == 0) { in renderFiles()
|
| H A D | CodeCoverage.cpp | 742 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 D | CoverageReport.cpp | 391 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 D | CGOpenMPRuntimeGPU.h | 197 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 D | LoopGeneratorsKMP.h | 92 void createCallPushNumThreads(Value *GlobalThreadID, Value *NumThreads);
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/ |
| H A D | DwarfTransformer.cpp | 428 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 D | MachThreadList.h | 62 nub_size_t NumThreads() const;
|
| /llvm-project-15.0.7/third-party/benchmark/test/ |
| H A D | user_counters_test.cc | 279 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 D | output_test.h | 100 int NumThreads() const;
|
| /llvm-project-15.0.7/openmp/libomptarget/plugins/cuda/src/ |
| H A D | rtl.cpp | 167 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 D | llvm-profdata.cpp | 378 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 D | dsymutil.cpp | 112 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 D | DWARFLinker.h | 276 void setNumThreads(unsigned NumThreads) { Options.Threads = NumThreads; } in setNumThreads() argument
|