public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/109620] New: [OpenMP][Offloading] OMP_CANCELLATION ICV not mapped to device
@ 2023-04-25 9:06 frederik at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: frederik at gcc dot gnu.org @ 2023-04-25 9:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109620
Bug ID: 109620
Summary: [OpenMP][Offloading] OMP_CANCELLATION ICV not mapped
to device
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: frederik at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
The value of the OMP_CANCELLATION ICV does not get copied to offloading
devices.
I have tested it by running the following test code both with nvptx and amgdcn
offloading as a part of the libgomp testsuite:
/* { dg-set-target-env-var OMP_CANCELLATION "true" } */
#include <omp.h>
int
main ()
{
__builtin_printf("OMP_CANCELLATION on host: %d\n",
omp_get_cancellation ());
#pragma omp target
{
__builtin_printf("OMP_CANCELLATION on device: %d\n",
omp_get_cancellation ());
}
return 0;
}
In both cases, the output was:
OMP_CANCELLATION on host: 1
OMP_CANCELLATION on device: 0
Does libgomp copy global ICVs to the device environment at all?
I did not find any tests that use cancellation in "target" regions. I think
there is no way for a user to enable it if the ICV is not forwarded.
But would it be supported in principle?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-25 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-25 9:06 [Bug libgomp/109620] New: [OpenMP][Offloading] OMP_CANCELLATION ICV not mapped to device frederik at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).