Changeset View
Changeset View
Standalone View
Standalone View
libomptarget/deviceRTLs/nvptx/src/reduction.cu
Show First 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | EXTERN int32_t __kmpc_nvptx_teams_reduce_nowait_simple(kmp_Ident *loc, | ||||
while (atomicCAS((uint32_t *)crit, 0, 1)) | while (atomicCAS((uint32_t *)crit, 0, 1)) | ||||
; | ; | ||||
return 1; | return 1; | ||||
} | } | ||||
EXTERN void | EXTERN void | ||||
__kmpc_nvptx_teams_end_reduce_nowait_simple(kmp_Ident *loc, int32_t global_tid, | __kmpc_nvptx_teams_end_reduce_nowait_simple(kmp_Ident *loc, int32_t global_tid, | ||||
kmp_CriticalName *crit) { | kmp_CriticalName *crit) { | ||||
__threadfence_system(); | |||||
(void)atomicExch((uint32_t *)crit, 0); | (void)atomicExch((uint32_t *)crit, 0); | ||||
} | } | ||||