[committed] libgomp: Save OpenMP device number when initializing the interop object (was: [Patch] libgomp/plugin/plugin-nvptx.c: Fix device used for stream creation)

2025-03-24 Thread Tobias Burnus
Hi Thomas, Short answer: both are about devices, but otherwise completely separate. And: Thanks for testing and the report, which shows that having at least one system with multiple GPUs makes sense! * * * Attached patch fixes the here reported issue by setting the device number - which featur

Re: [Patch] libgomp/plugin/plugin-nvptx.c: Fix device used for stream creation

2025-03-24 Thread Thomas Schwinge
Hi Tobias! Earlier today, I happened to be testing current OG14 branch. On a multi-Nvidia GPU system, I saw: +PASS: libgomp.c/interop-fr-1.c (test for excess errors) +FAIL: libgomp.c/interop-fr-1.c execution test spawn [open ...] Running on the nvptx device (-99) Running on

[Patch] libgomp/plugin/plugin-nvptx.c: Fix device used for stream creation

2025-03-24 Thread Tobias Burnus
When re-reading the current plugin code, I noticed that 'interop' created the cuStream created in the current CUDA context (current CUDA device) and not on the specified device. That's obviously the same if there is only a single nvptx device. The patch mimics what other code in the plugin use