[Openmp-commits] [PATCH] D63106: [OpenMP][libomptarget] Add support for declare target to clause under unified memory
George Rokos via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jun 14 11:18:28 PDT 2019
grokos added inline comments.
================
Comment at: libomptarget/plugins/cuda/src/rtl.cpp:452-453
if (DeviceInfo.RequiresFlags & OMP_REQ_UNIFIED_SHARED_MEMORY &&
- e->flags & OMP_DECLARE_TARGET_LINK) {
+ (e->flags & OMP_DECLARE_TARGET_LINK ||
+ e->flags == OMP_DECLARE_TARGET_TO)) {
// If unified memory is present any target link variables
----------------
Maybe this OR is redundant; it always evaluates to true. Since the symbol we are processing has size!=0 it is a variable and variables are always either "to" or "link", there are no other possibilities (at least now, maybe in the future more attributes will be added).
Repository:
rOMP OpenMP
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63106/new/
https://reviews.llvm.org/D63106
More information about the Openmp-commits
mailing list