[Bug libgomp/100573] [OpenMP] 'omp target teams' fails with nvptx and GCN offloading: FAIL libgomp.c-c++-common/for-3.c + for-9.c
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 25 19:34:11 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100573
--- Comment #13 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #9)
> not found name: 'test_d_normal._omp_fn.0.kd'
I think the problem is the following:
(a) working:
foo()
#pragma target
bar()
Here, 'foo._omp_fn.0' as as fndecl attribute: 'omp target entrypoint'
(b) failing:
foo()
#pragma target
foo()
while here 'foo._omp_fn.0' has 'omp declare target' which does not make sense.
I think we need in omp_discover_declare_target_tgt_fn_r a similar handling for
'omp declare target entrypoint' as we do for 'omp declare target host'.
More information about the Gcc-bugs
mailing list