hanchenye-llvm-project/openmp/libomptarget/test
Gheorghe-Teodor Bercea 9e9c918259 [OpenMP][libomptarget] Enable requires flags for target libraries.
Summary:
Target link variables are currently implemented by creating a copy of the variables on the device side and unified memory never gets exploited.

When the prgram uses the:

```
#pragma omp requires unified_shared_memory
```

directive in conjunction with a declare target link, the linked variable is no longer allocated on the device and the host version is used instead.

This behavior is overridden by performing an explicit mapping.

A Clang side patch is required.

Reviewers: ABataev, AlexEichenberger, grokos, Hahnfeld

Reviewed By: AlexEichenberger, grokos, Hahnfeld

Subscribers: Hahnfeld, jfb, guansong, jdoerfert, openmp-commits

Tags: #openmp

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

llvm-svn: 361294
2019-05-21 19:35:02 +00:00
..
api [OpenMP] Add omp_get_device_num() and update several other device API functions 2019-01-03 21:14:19 +00:00
env
mapping [OPENMP] Add the test to check that the libomptarget does not cause 2018-09-28 17:13:11 +00:00
offloading [OpenMP][libomptarget] Enable requires flags for target libraries. 2019-05-21 19:35:02 +00:00
CMakeLists.txt [libomptarget] Introduce LIBOMPTARGET_ENABLE_DEBUG cmake option. 2019-03-26 15:19:15 +00:00
lit.cfg [libomptaret][test] Announce compiler features 2018-09-05 07:26:00 +00:00
lit.site.cfg.in [libomptarget-nvptx] Add testing infrastructure 2018-09-28 15:05:43 +00:00