]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp: Save OpenMP device number when initializing the interop object
authorTobias Burnus <tburnus@baylibre.com>
Mon, 24 Mar 2025 18:52:10 +0000 (19:52 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Tue, 25 Mar 2025 14:16:24 +0000 (15:16 +0100)
The interop object (opaque object to the user, used internally in libgomp)
already had a 'device_num' member, but it was missed to actually set it.

libgomp/ChangeLog:

* target.c (gomp_interop_internal): Set the 'device_num' member
when initializing an interop object.

(cherry picked from commit 4d5d1a7326c8509a4a6fc94eedc3ba22d68f806f)

libgomp/ChangeLog.omp

index 9cb3e08e827934eaa2d83ca72e7769681a51a9e0..34f8f9f162f59e9e1016f2d005e2a3cd07958af8 100644 (file)
        * testsuite/libgomp.c++/pr101544-1-O0.C: Likewise.
        * testsuite/libgomp.oacc-c++/pr101544-1.C: Likewise.
 
+2025-03-24  Tobias Burnus  <tburnus@baylibre.com>
+
+       Backported from master:
+       2025-03-24  Tobias Burnus  <tburnus@baylibre.com>
+
+       * target.c (gomp_interop_internal): Set the 'device_num' member
+       when initializing an interop object.
+
 2025-03-24  Tobias Burnus  <tburnus@baylibre.com>
 
        Backported from master: