<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in target_update_array_extension.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>24f836e8 - [OpenMP][libomptarget] Separate lit tests for different offloading targets (2/2)</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/openmp/libomptarget/test/mapping/target_update_array_extension.c#24f836e8</link>
        <description>[OpenMP][libomptarget] Separate lit tests for different offloading targets (2/2)This patch fuses the RUN lines for most libomptarget tests. The previous patchD101315 created separate test targets for each supported offloading triple.This patch updates the RUN lines in libomptarget tests to use a generic runline independent of the offloading target selected for the lit instance.In cases, where no RUN line was defined for a specific offloading target,the corresponding target is declared as XFAIL. If it turns out that a testactually supports the target, the XFAIL line can be removed.Differential Revision: https://reviews.llvm.org/D101326

            List of files:
            /llvm-project-15.0.7/openmp/libomptarget/test/mapping/target_update_array_extension.c</description>
        <pubDate>Tue, 27 Apr 2021 13:50:53 +0000</pubDate>
        <dc:creator>Joachim Protze &lt;protze@itc.rwth-aachen.de&gt;</dc:creator>
    </item>
<item>
        <title>5ab43989 - [OpenMP] Fix `omp target update` for array extension</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/openmp/libomptarget/test/mapping/target_update_array_extension.c#5ab43989</link>
        <description>[OpenMP] Fix `omp target update` for array extensionOpenMP TR8 sec. 2.15.6 &quot;target update Construct&quot;, p. 183, L3-4 states:&gt; If the corresponding list item is not present in the device data&gt; environment and there is no present modifier in the clause, then no&gt; assignment occurs to or from the original list item.L10-11 states:&gt; If a present modifier appears in the clause and the corresponding&gt; list item is not present in the device data environment then an&gt; error occurs and the program termintates.(OpenMP 5.0 also has the first passage but without mention of thepresent modifier of course.)In both passages, I assume &quot;is not present&quot; includes the case ofpartially but not entirely present.  However, without this patch, thetarget update directive misbehaves in this case both with and withoutthe present modifier.  For example:``` #pragma omp target enter data map(to:arr[0:3]) #pragma omp target update to(arr[0:5]) // might fail on data transfer #pragma omp target update to(present:arr[0:5]) // might fail on data transfer```The problem is that `DeviceTy::getTgtPtrBegin` does not return a nullpointer in that case, so `target_data_update` sees the data as fullypresent, and the data transfer then might fail depending on the targetdevice.  However, without the present modifier, there should never bea failure.  Moreover, with the present modifier, there should alwaysbe a failure, and the diagnostic should mention the present modifier.This patch fixes `DeviceTy::getTgtPtrBegin` to return null when`target_data_update` is the caller.  I&apos;m wondering if it should do thesame for more callers.Reviewed By: grokos, jdoerfertDifferential Revision: https://reviews.llvm.org/D85246

            List of files:
            /llvm-project-15.0.7/openmp/libomptarget/test/mapping/target_update_array_extension.c</description>
        <pubDate>Wed, 05 Aug 2020 13:00:12 +0000</pubDate>
        <dc:creator>Joel E. Denny &lt;jdenny.ornl@gmail.com&gt;</dc:creator>
    </item>
</channel>
</rss>
