From ca0eb390a9e9fd970f774221a250655ec136a861 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 11 Feb 2020 12:34:11 -0600 Subject: [PATCH] Revert "Try to initialize the primary context on cuda" This reverts commit 44e3908680439682a70872f4aaa52655d4c74d97. [ROCm/hip commit: 26bb6a97a7413897004ffa771496c2930488a1a6] --- .../runtimeApi/module/hipModuleLoadDataMultThreaded.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp b/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp index 6612392064..03a2b82b8b 100644 --- a/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp +++ b/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp @@ -18,7 +18,7 @@ THE SOFTWARE. */ /* HIT_START - * BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11 + * BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvcc * TEST: %t * HIT_END */ @@ -127,16 +127,10 @@ struct joinable_thread : std::thread void run_multi_threads(uint32_t n) { std::vector mf(n); { - hipDevice_t device; - HIPCHECK(hipDeviceGet(&device, 0)); - auto buffer = load_file(); std::vector threads; for (uint32_t i = 0; i < n; i++) { threads.emplace_back(std::thread{[&, i, buffer] { - hipCtx_t ctx; - HIPCHECK(hipDevicePrimaryCtxRetain(&ctx, device)); - mf[i] = load(buffer); }}); }