Home
last modified time | relevance | path

Searched refs:ThreadLimit (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/test/parallel/
Dthread_limit.c7 const int ThreadLimit = 1 * WarpSize; variable
22 #pragma omp target teams num_teams(1) thread_limit(ThreadLimit) \ in main()
51 if (i < ThreadLimit) { in main()
52 if (check1[i] != ThreadLimit) { in main()
53 printf("invalid: check1[%d] should be %d, is %d\n", i, ThreadLimit, check1[i]); in main()
59 if (i < ThreadLimit) { in main()
60 if (check2[i] != ThreadLimit) { in main()
61 printf("invalid: check2[%d] should be %d, is %d\n", i, ThreadLimit, check2[i]); in main()
67 if (i < ThreadLimit) { in main()
68 if (check3[i] != ThreadLimit) { in main()
[all …]
/external/llvm-project/openmp/libomptarget/deviceRTLs/common/src/
Domptarget.cu28 EXTERN void __kmpc_kernel_init(int ThreadLimit, int16_t RequiresOMPRuntime) { in __kmpc_kernel_init() argument
65 threadLimit = ThreadLimit; in __kmpc_kernel_init()
81 EXTERN void __kmpc_spmd_kernel_init(int ThreadLimit, int16_t RequiresOMPRuntime) { in __kmpc_spmd_kernel_init() argument
136 (int)newTaskDescr->ThreadId(), (int)ThreadLimit); in __kmpc_spmd_kernel_init()
Dparallel.cu44 uint16_t ThreadLimit) { in determineNumberOfThreads() argument
51 if (ThreadLimit != 0 && ThreadLimit < ThreadsAvailable) { in determineNumberOfThreads()
52 ThreadsAvailable = ThreadLimit; in determineNumberOfThreads()
/external/llvm-project/openmp/libomptarget/include/
Domptargetplugin.h123 int32_t NumTeams, int32_t ThreadLimit,
129 int32_t NumTeams, int32_t ThreadLimit, uint64_t loop_tripcount,
/external/clang/lib/CodeGen/
DCGOpenMPRuntimeNVPTX.h146 const Expr *ThreadLimit, SourceLocation Loc) override;
DCGOpenMPRuntimeNVPTX.cpp358 const Expr *ThreadLimit, in emitNumTeamsClause() argument
DCGOpenMPRuntime.h998 const Expr *ThreadLimit, SourceLocation Loc);
DCGOpenMPRuntime.cpp4942 llvm::Value *ThreadLimit = CGF.EmitScalarExpr(TLE->getThreadLimit()); in emitThreadLimitClauseForTargetDirective() local
4943 return CGF.Builder.CreateIntCast(ThreadLimit, CGF.Int32Ty, in emitThreadLimitClauseForTargetDirective()
5826 auto *ThreadLimit = emitThreadLimitClauseForTargetDirective(RT, CGF, D); in emitTargetCall() local
5835 assert(ThreadLimit && "Thread limit expression should be available along " in emitTargetCall()
5840 MapTypesArray, NumTeams, ThreadLimit}; in emitTargetCall()
6032 const Expr *ThreadLimit, in emitNumTeamsClause() argument
6046 (ThreadLimit) in emitNumTeamsClause()
6047 ? CGF.Builder.CreateIntCast(CGF.EmitScalarExpr(ThreadLimit), in emitNumTeamsClause()
DCGStmtOpenMP.cpp3331 Expr *ThreadLimit = (TL) ? TL->getThreadLimit() : nullptr; in emitCommonOMPTeamsDirective() local
3333 CGF.CGM.getOpenMPRuntime().emitNumTeamsClause(CGF, NumTeams, ThreadLimit, in emitCommonOMPTeamsDirective()
/external/llvm-project/openmp/libomptarget/src/
Dprivate.h39 void **ArgMappers, int32_t TeamNum, int32_t ThreadLimit,
Ddevice.cpp477 int32_t NumTeams, int32_t ThreadLimit, in runTeamRegion() argument
482 TgtOffsets, TgtVarsSize, NumTeams, ThreadLimit, in runTeamRegion()
487 ThreadLimit, LoopTripCount, AsyncInfoPtr); in runTeamRegion()
Ddevice.h223 int32_t NumTeams, int32_t ThreadLimit,
Domptarget.cpp1214 int32_t ThreadLimit, int IsTeamConstruct) { in target() argument
1261 TgtArgs.size(), TeamNum, ThreadLimit, in target()
/external/llvm-project/openmp/libomptarget/plugins/cuda/src/
Drtl.cpp847 const int TeamNum, const int ThreadLimit, in runTargetTeamRegion() argument
866 if (ThreadLimit > 0) { in runTargetTeamRegion()
867 DP("Setting CUDA threads per block to requested %d\n", ThreadLimit); in runTargetTeamRegion()
868 CudaThreadsPerBlock = ThreadLimit; in runTargetTeamRegion()
/external/llvm-project/openmp/libomptarget/deviceRTLs/
Dinterface.h422 EXTERN void __kmpc_kernel_init(int ThreadLimit, int16_t RequiresOMPRuntime);
424 EXTERN void __kmpc_spmd_kernel_init(int ThreadLimit,
/external/clang/include/clang/AST/
DOpenMPClause.h3519 Stmt *ThreadLimit; variable
3524 void setThreadLimit(Expr *E) { ThreadLimit = E; } in setThreadLimit()
3537 ThreadLimit(E) {} in OMPThreadLimitClause()
3543 LParenLoc(SourceLocation()), ThreadLimit(nullptr) {} in OMPThreadLimitClause()
3549 Expr *getThreadLimit() { return cast<Expr>(ThreadLimit); } in getThreadLimit()
3551 Expr *getThreadLimit() const { return cast<Expr>(ThreadLimit); } in getThreadLimit()
3557 child_range children() { return child_range(&ThreadLimit, &ThreadLimit + 1); } in children()
/external/llvm-project/flang/lib/Semantics/
Dcheck-omp-structure.h147 void Enter(const parser::OmpClause::ThreadLimit &);
Dcheck-omp-structure.cpp390 CHECK_REQ_SCALAR_INT_CLAUSE(ThreadLimit, OMPC_thread_limit) in CHECK_SIMPLE_CLAUSE()
/external/llvm-project/clang/lib/CodeGen/
DCGOpenMPRuntimeGPU.h234 const Expr *ThreadLimit, SourceLocation Loc) override;
DCGOpenMPRuntime.h1623 const Expr *ThreadLimit, SourceLocation Loc);
2433 const Expr *ThreadLimit, SourceLocation Loc) override;
DCGOpenMPRuntime.cpp6815 llvm::Value *ThreadLimit = CGF.EmitScalarExpr( in emitNumThreadsForTargetDirective() local
6818 Bld.CreateIntCast(ThreadLimit, CGF.Int32Ty, /*isSigned=*/false); in emitNumThreadsForTargetDirective()
6842 llvm::Value *ThreadLimit = CGF.EmitScalarExpr( in emitNumThreadsForTargetDirective() local
6845 Bld.CreateIntCast(ThreadLimit, CGF.Int32Ty, /*isSigned=*/false); in emitNumThreadsForTargetDirective()
6865 llvm::Value *ThreadLimit = CGF.EmitScalarExpr( in emitNumThreadsForTargetDirective() local
6868 Bld.CreateIntCast(ThreadLimit, CGF.Int32Ty, /*isSigned=*/false); in emitNumThreadsForTargetDirective()
6903 llvm::Value *ThreadLimit = CGF.EmitScalarExpr( in emitNumThreadsForTargetDirective() local
6906 Bld.CreateIntCast(ThreadLimit, CGF.Int32Ty, /*isSigned=*/false); in emitNumThreadsForTargetDirective()
10710 const Expr *ThreadLimit, in emitNumTeamsClause() argument
10724 ThreadLimit in emitNumTeamsClause()
[all …]
DCGStmtOpenMP.cpp5593 const Expr *ThreadLimit = TL ? TL->getThreadLimit() : nullptr; in emitCommonOMPTeamsDirective() local
5595 CGF.CGM.getOpenMPRuntime().emitNumTeamsClause(CGF, NumTeams, ThreadLimit, in emitCommonOMPTeamsDirective()
/external/llvm-project/openmp/libomptarget/plugins/ve/src/
Drtl.cpp406 int32_t NumTeams, int32_t ThreadLimit, in __tgt_rtl_run_target_team_region() argument
/external/llvm-project/clang/include/clang/AST/
DOpenMPClause.h5716 Stmt *ThreadLimit = nullptr; variable
5721 void setThreadLimit(Expr *E) { ThreadLimit = E; } in setThreadLimit()
5738 OMPClauseWithPreInit(this), LParenLoc(LParenLoc), ThreadLimit(E) { in OMPThreadLimitClause()
5755 Expr *getThreadLimit() { return cast<Expr>(ThreadLimit); } in getThreadLimit()
5758 Expr *getThreadLimit() const { return cast<Expr>(ThreadLimit); } in getThreadLimit()
5760 child_range children() { return child_range(&ThreadLimit, &ThreadLimit + 1); } in children()
5763 return const_child_range(&ThreadLimit, &ThreadLimit + 1); in children()
/external/llvm-project/flang/lib/Parser/
Dopenmp-parsers.cpp234 "THREAD_LIMIT" >> construct<OmpClause>(construct<OmpClause::ThreadLimit>(

12