Push ctx to the stack as current

[ROCm/hip commit: bff8cbe950]
이 커밋은 다음에 포함됨:
Paul가 2020-02-11 11:46:29 -06:00를 커밋했습니다
1 부모 44e3908680
커밋 0fb72d9e7f
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -136,7 +136,7 @@ void run_multi_threads(uint32_t n) {
threads.emplace_back(std::thread{[&, i, buffer] {
hipCtx_t ctx;
HIPCHECK(hipDevicePrimaryCtxRetain(&ctx, device));
HIPCHECK(hipCtxPushCurrent(ctx));
mf[i] = load(buffer);
}});
}