Push ctx to the stack as current

这个提交包含在:
Paul 于 2020-02-11 11:46:29 -06:00 提交
1 父节点 fd98514113
当前提交 bff8cbe950
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);
}});
}