From 0fb72d9e7fd273aaf2fd1c0794560af5c874f47b Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 11 Feb 2020 11:46:29 -0600 Subject: [PATCH] Push ctx to the stack as current [ROCm/hip commit: bff8cbe950058e51eb911d1a9dea01c97ce6aeda] --- .../src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp b/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp index 6612392064..09fedc3660 100644 --- a/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp +++ b/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp @@ -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); }}); }