fix barrier synchronization on gfx90a

[ROCm/rocshmem commit: 87db7f7d38]
이 커밋은 다음에 포함됨:
Edgar Gabriel가 2024-10-24 15:08:28 +00:00를 커밋했습니다
1 부모 777401ae29
커밋 7b760bb023
2 파일이 변경됨
+4

검색과 일치하는 파일 없음

+1
파일 보기
@@ -58,6 +58,7 @@ __host__ IPCContext::IPCContext(Backend *b)
}
__device__ void IPCContext::threadfence_system() {
__threadfence_system();
}
__device__ void IPCContext::ctx_create() {
+3
파일 보기
@@ -47,6 +47,9 @@ __device__ void IPCContext::internal_direct_barrier(int pe, int PE_start,
// Announce to other PEs that all have reached
for (size_t i = 1, j = PE_start + stride; i < n_pes; ++i, j += stride) {
internal_putmem(&pSync[0], &flag_val, sizeof(*pSync), j);
#if defined(__gfx90a__)
__threadfence_system();
#endif /* __gfx90a__ */
}
} else {
// Mark current PE offset as reached