Push ctx to the stack as current

This commit is contained in:
Paul committed 2020-02-11 11:46:29 -06:00
1 parent 86cdb30195
commit e8a7cc6957
1 file changed
+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);
}});
}