commit | f45f0fd74f6ad04a4d7e3d510b38d5fc617c3f3f | [log] [tgz] |
---|---|---|
author | Jonas Hahnfeld <hahnjo@hahnjo.de> | Mon Sep 03 17:24:23 2018 +0000 |
committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | Mon Sep 03 17:24:23 2018 +0000 |
tree | d8eeef6b07450781140e058113d07a9ecd3d1f78 | |
parent | 7512891e635e867ceabdd6d37405b684ac828231 [diff] |
[libomptarget][NVPTX] Fix __kmpc_spmd_kernel_deinit If the runtime is uninitialized the master thread must Enqueue the state object, and ALL threads must return immediately. Found post-commit of https://reviews.llvm.org/D51222. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@341328 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu b/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu index 0fe910d..0f7deae 100644 --- a/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu +++ b/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu
@@ -196,8 +196,8 @@ int slot = smid() % MAX_SM; omptarget_nvptx_device_simpleState[slot].Enqueue( omptarget_nvptx_simpleThreadPrivateContext); - return; } + return; } if (threadId == 0) { // Enqueue omp state object for use by another team.