Created attachment 46879 [details] Fortran code to test the OpenMP directive target exit data map(release) The attached test program tests the OpenMP directive target exit data map(release). While a similar C code compiled with gcc shows no execution problem, the compilation with gfortran results in the error code "libgomp: GOMP_target_enter_exit_data unhandled kind 0x04" Here are the instructions for running the attached test code and its only ouput gfortran -fopenmp example1.f ; ./a.out libgomp: GOMP_target_enter_exit_data unhandled kind 0x04
@Jakub: Can you please take a look?
The OpenMP 4.5 support is still unfinished; though, this isn't a regression and therefore will need to wait for GCC 11.
Created attachment 47732 [details] Fortran code to test the OpenMP directive target exit data map(release) without subroutines Same test as previous attachment, but with the OpenMP target directives in the main program, while the previous reproducer had the OpenMP target directives in subroutines called by the main program.
@Jakub Thanks for the update. Please keep in mind that this bug shows up only when OpenMP target directives are used in subroutines are called by the main program. I have just upload a new test that tests the same OpenMP target directives, but with the OpenMP target directives in the main program, while the previous reproducer had the OpenMP target directives in subroutines called by the main program. This new reproducer does not fail with the gcc versions that support OpenMP target offloading