From f86740ff9436d902747b24b458ea6318836cd622 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 11 Feb 2020 12:34:10 -0600 Subject: [PATCH] Revert "Push ctx to the stack as current" This reverts commit 0fb72d9e7fd273aaf2fd1c0794560af5c874f47b. [ROCm/hip commit: e82e3c2339f1245818b32ae496672564997e4f88] --- .../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 09fedc3660..6612392064 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); }}); }