[libomptarget-nvptx] Ignore calls to dynamic API
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Sat, 29 Sep 2018 16:02:25 +0000 (16:02 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Sat, 29 Sep 2018 16:02:25 +0000 (16:02 +0000)
commitc89a14f5d2d17c23f7c361c44149a2993a9f2240
treec188dee69014b543de23bba982390cba446866b6
parenta743c04412090f0612218e95f1982c9d75061a1c
[libomptarget-nvptx] Ignore calls to dynamic API

There is no support and according to the OpenMP 4.5, p238:7-9:

    For implementations that do not support dynamic adjustment
    of the number of threads this routine has no effect: the
    value of dyn-var remains false.

Add a test that cancellation and nested parallelism aren't
supported either.

Differential Revision: https://reviews.llvm.org/D51785

llvm-svn: 343381
openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
openmp/libomptarget/deviceRTLs/nvptx/test/api/ignored.c [new file with mode: 0644]