Merge pull request #42 from avinashkethineedi/fix_quiet/fence

Fix quiet and fence of default context

[ROCm/rocshmem commit: e594a9cb85]
이 커밋은 다음에 포함됨:
Avinash Kethineedi 작성하고 GitHub가 2024-10-22 12:56:43 -05:00를 커밋함
커밋 2356d407f0
2 파일이 변경됨
+2 -1

검색과 일치하는 파일 없음

+1
파일 보기
@@ -45,6 +45,7 @@ class IPCDefaultContextProxy {
: constructed_{true} {
auto ctx{proxy_.get()};
new (ctx) IPCContext(reinterpret_cast<Backend*>(backend));
ctx->tinfo = tinfo;
roc_shmem_ctx_t local{ctx, tinfo};
set_internal_ctx(&local);
}
+1 -1
파일 보기
@@ -263,7 +263,7 @@ __device__ int roc_shmem_wg_ctx_create(long option, roc_shmem_ctx_t *ctx) {
bool result{true};
if (get_flat_block_id() == 0) {
ctx->team_opaque = reinterpret_cast<TeamInfo *>(ROC_SHMEM_CTX_DEFAULT.team_opaque);
device_backend_proxy->create_ctx(option, ctx);
result = device_backend_proxy->create_ctx(option, ctx);
reinterpret_cast<Context *>(ctx->ctx_opaque)->setFence(option);
}
__syncthreads();