Push ctx to the stack as current

[ROCm/clr commit: e8a7cc6957]
Этот коммит содержится в:
Paul
2020-02-11 11:46:29 -06:00
родитель d9cbd5a143
Коммит c1b707ff63
+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);
}});
}