[libomptarget][NVPTX] Fix __kmpc_spmd_kernel_deinit
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 3 Sep 2018 17:24:23 +0000 (17:24 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 3 Sep 2018 17:24:23 +0000 (17:24 +0000)
commit96c13488ab30bf9b9e5bc2e4c8ca559ac5e83bbb
tree692eb14968548e9e85e8c6e77bc842ba042d2cc3
parentc1b7a98934cefb72108933989d6edab7c5ca3f59
[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.

llvm-svn: 341328
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu