https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
Chinoune changed:
What|Removed |Added
Resolution|--- |WONTFIX
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #11 from Chinoune ---
This is just a normal bug, no need to hurry. you could wait until the other day
and investigate the problem.
I am dual-booting Windows with Ubuntu, so to test your suggestions I have to
reboot to Ubuntu to test
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #10 from Alexander Monakov ---
Thanks for checking. As for this:
> Please, stop suggesting untested workarounds.
Yes, I should have mentioned those are untested. I was typing the response late
at night without access to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #9 from Chinoune ---
I forget it
Anyways
$ gfortran-10 -fopenacc bug_omp_acc.o -lgomp -o test.x
mkoffload: fatal error: either '-fopenacc' or '-fopenmp' must be set
compilation terminated.
lto-wrapper: fatal error:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #8 from Alexander Monakov ---
(In reply to Chinoune from comment #7)
> $ gfortran-10 -O3 -fopenmp -fopenacc -c bug_omp_acc.f90
> $ gfortran-10 bug_omp_acc.o -lgomp -o test.x
Contrary to my suggestion, you have omitted -fopenacc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #7 from Chinoune ---
$ gfortran -O3 -fopenmp -fopenacc -foffload=-fno-openmp bug_omp_acc.f90 -o
test.x
mkoffload: fatal error: either '-fopenacc' or '-fopenmp' must be set
compilation terminated.
lto-wrapper: fatal error:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #6 from Chinoune ---
There is no mention of "-foffload=-fno-openmp" on documentation
https://gcc.gnu.org/wiki/Offloading#Compilation_options
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #5 from Alexander Monakov ---
One possible solution is -foffload=-fno-openmp
Another possible solution is separate compilation and linking, with only
OpenACC enabled at link step (needs explicit -lgomp):
gfortran -fopenmp -fopenacc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #4 from Chinoune ---
gfortran -O3 -fopenmp -fopenacc -foffload=disable bug_omp_acc.f90 -o test.x
./test.x 2048
dim1 = dim2 = 2048
CPU Time =4.9989E-03
libgomp: target function wasn't mapped
gfortran -O3 -fopenacc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
Jakub Jelinek changed:
What|Removed |Added
CC||amonakov at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
--- Comment #2 from Chinoune ---
program main
use omp_lib
implicit none
integer, parameter :: sp = selected_real_kind(6,37)
integer :: i, j, k
integer :: n
character(len=5) :: var
real(sp), allocatable :: a(:,:), b(:,:), c(:,:),
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258
Richard Biener changed:
What|Removed |Added
Keywords||openacc, openmp
--- Comment #1 from
12 matches
Mail list logo