Commit Graph
8 Commits
Author SHA1 Message Date
Gheorghe-Teodor Bercea dba741d61d [OpenMP][libomptarget] Enable usage of unified memory for declare target link variables
Summary: This patch enables the usage of a host variable on the device for declare target link variables when unified memory is available.

Reviewers: ABataev, caomhin, grokos

Reviewed By: grokos

Subscribers: Hahnfeld, guansong, jdoerfert, openmp-commits

Tags: #openmp

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@362505 91177308-0d34-0410-b5e6-96231b3b80d8
2019-06-04 15:05:53 +00:00
Gheorghe-Teodor Bercea 9994ae3c1c [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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@361294 91177308-0d34-0410-b5e6-96231b3b80d8
2019-05-21 19:35:02 +00:00
Chandler Carruth 7e084d9fdf Update more file headers across all of the LLVM projects in the monorepo
to reflect the new license. These used slightly different spellings that
defeated my regular expressions.

We understand that people may be surprised that we're moving the header
entirely to discuss the new license. We checked this carefully with the
Foundation's lawyer and we believe this is the correct approach.

Essentially, all code in the project is now made available by the LLVM
project under our new license, so you will see that the license headers
include that license only. Some of our contributors have contributed
code under our old license, and accordingly, we have retained a copy of
our old license notice in the top-level files in each project and
repository.

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@351648 91177308-0d34-0410-b5e6-96231b3b80d8
2019-01-19 10:56:40 +00:00
Sergey Dmitriev 56b2913b62 [libomptarget] Remove Devices from RTLInfoTy
This patch removes unused field `Devices` from `RTLInfoTy`.

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


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@341399 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-04 20:23:09 +00:00
Alexandre Eichenberger 95171846cd [OpenMP][libomptarget] Bringing up to spec with respect to OMP_TARGET_OFFLOAD env var
Summary:
Right now, only the OMP_TARGET_OFFLOAD=DISABLED was implemented. Added support for the other MANDATORY and DEFAULT values.


Reviewers: gtbercea, ABataev, grokos, caomhin, Hahnfeld

Reviewed By: Hahnfeld

Subscribers: protze.joachim, gtbercea, AlexEichenberger, RaviNarayanaswamy, Hahnfeld, guansong, openmp-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@340542 91177308-0d34-0410-b5e6-96231b3b80d8
2018-08-23 16:22:42 +00:00
Dimitry Andric 4b547f3c93 Sprinkle a few <cstdlib> includes, for libomptarget sources using
malloc, free, alloca and getenv.  NFCI.


git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@322869 91177308-0d34-0410-b5e6-96231b3b80d8
2018-01-18 18:24:22 +00:00
Jonas Hahnfeld 59945c95c1 Add missing headers for Debug builds
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@322830 91177308-0d34-0410-b5e6-96231b3b80d8
2018-01-18 10:58:43 +00:00
Jonas Hahnfeld c35df18503 [libomptarget] Split RTL plugin functionality
This is the first of four patches to split the target agnostic
library into multiple (smaller) files. It only moves the code
to separate implementation files and does no cleanup (yet) except
removing unneeded headers.

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

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@319969 91177308-0d34-0410-b5e6-96231b3b80d8
2017-12-06 21:59:07 +00:00