diff options
author | Tobias Burnus <tburnus@baylibre.com> | 2024-08-06 10:34:28 +0200 |
---|---|---|
committer | Tobias Burnus <tburnus@baylibre.com> | 2024-08-06 10:34:28 +0200 |
commit | 0c56fd6a1fe086e038e61041b82df63e98958e9c (patch) | |
tree | 2429494ed24701c871d6872e1cac929b57df5426 /gcc/fortran | |
parent | 8f3d0c8c3dd02d94635517c68fd314cbceed8373 (diff) | |
download | gcc-0c56fd6a1fe086e038e61041b82df63e98958e9c.zip gcc-0c56fd6a1fe086e038e61041b82df63e98958e9c.tar.gz gcc-0c56fd6a1fe086e038e61041b82df63e98958e9c.tar.bz2 |
libgomp: Device load_image - improve minor num-funcs/vars check
The run time library loads the offload functions and variable and optionally
the ICV variable and returns the number of loaded items, which has to match
the host side. The plugin returns "+1" (since GCC 12) for the ICV variable
entry, independently whether it was loaded or not, but the var's value
(start == end == 0) can be used to detect when this failed.
Thus, we can tighten the assert check - which this commit does together with
making the output less surprising - and simplify the condition further below.
libgomp/ChangeLog:
* target.c (gomp_load_image_to_device): Extend fatal-error message;
simplify a condition.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions