diff options
author | Tobias Burnus <tburnus@baylibre.com> | 2025-03-24 19:52:10 +0100 |
---|---|---|
committer | Tobias Burnus <tburnus@baylibre.com> | 2025-03-24 19:52:10 +0100 |
commit | 4d5d1a7326c8509a4a6fc94eedc3ba22d68f806f (patch) | |
tree | 850a9a8e10ddb0beddb6c817a88965a0be7aeaf7 | |
parent | 94d1dacf350c3c463aead7e4d5c172f138045eb1 (diff) | |
download | gcc-4d5d1a7326c8509a4a6fc94eedc3ba22d68f806f.zip gcc-4d5d1a7326c8509a4a6fc94eedc3ba22d68f806f.tar.gz gcc-4d5d1a7326c8509a4a6fc94eedc3ba22d68f806f.tar.bz2 |
libgomp: Save OpenMP device number when initializing the interop object
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.
-rw-r--r-- | libgomp/target.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgomp/target.c b/libgomp/target.c index 36ed797..a64ee96 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -5324,6 +5324,7 @@ gomp_interop_internal (void *data) } *obj = (struct interop_obj_t *) calloc (1, sizeof (struct interop_obj_t)); + (*obj)->device_num = devicep->target_id; devicep->interop_func (*obj, devicep->target_id, gomp_interop_flag_init, targetsync, prefer_type); |