Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | setExecutionParameters(Spmd, RequiresFullRuntime ? RuntimeInitialized | ||||
: RuntimeUninitialized); | : RuntimeUninitialized); | ||||
int threadId = GetThreadIdInBlock(); | int threadId = GetThreadIdInBlock(); | ||||
if (threadId == 0) { | if (threadId == 0) { | ||||
usedSlotIdx = __kmpc_impl_smid() % MAX_SM; | usedSlotIdx = __kmpc_impl_smid() % MAX_SM; | ||||
} | } | ||||
if (GetLaneId() == 0) { | if (GetLaneId() == 0) { | ||||
parallelLevel[GetWarpId()] = | parallelLevel[GetWarpId()] = | ||||
1 + (GetNumberOfThreadsInBlock() > 1 ? OMP_ACTIVE_PARALLEL_LEVEL : 0); | 1 + (__kmpc_get_hardware_num_threads_in_block() > 1 ? OMP_ACTIVE_PARALLEL_LEVEL : 0); | ||||
Lint: Pre-merge checks: clang-format: please reformat the code
```
- 1 +… | |||||
} | } | ||||
JonChesterfieldUnsubmitted Not Done ReplyInline Actionsgit-clang-format HEAD^ may be useful for things like this JonChesterfield: `git-clang-format HEAD^` may be useful for things like this | |||||
__kmpc_data_sharing_init_stack(); | __kmpc_data_sharing_init_stack(); | ||||
if (!RequiresFullRuntime) | if (!RequiresFullRuntime) | ||||
return; | return; | ||||
// | // | ||||
// Team Context Initialization. | // Team Context Initialization. | ||||
// | // | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |
clang-format: please reformat the code