public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mehdi.chinoune at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/98258] Can't compile programs for both OpenMP (CPU) + OpenACC (GPU)
Date: Mon, 04 Jan 2021 17:34:00 +0000	[thread overview]
Message-ID: <bug-98258-4-tI1k06sjml@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-98258-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258

--- Comment #4 from Chinoune <mehdi.chinoune at hotmail dot com> ---
gfortran -O3 -fopenmp -fopenacc -foffload=disable bug_omp_acc.f90 -o test.x
./test.x 2048
 dim1 = dim2 =         2048
 CPU Time =    4.99999989E-03

libgomp: target function wasn't mapped

gfortran -O3 -fopenacc -foffload=disable bug_omp_acc.f90 -o test.x
./test.x 2048
 dim1 = dim2 =         2048
 CPU Time =    1.90100002    

libgomp: target function wasn't mapped

gfortran -O3 -fopenmp -foffload=disable bug_omp_acc.f90 -o test.x
./test.x 2048
 dim1 = dim2 =         2048
 CPU Time =    6.00000005E-03
 GPU Time =    1.44500005    
 Max(|C2-C1|) =    559.285156

  parent reply	other threads:[~2021-01-04 17:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-13  4:52 [Bug libgomp/98258] New: " mehdi.chinoune at hotmail dot com
2021-01-04 14:26 ` [Bug libgomp/98258] " rguenth at gcc dot gnu.org
2021-01-04 16:43 ` mehdi.chinoune at hotmail dot com
2021-01-04 16:52 ` jakub at gcc dot gnu.org
2021-01-04 17:34 ` mehdi.chinoune at hotmail dot com [this message]
2021-01-04 21:42 ` amonakov at gcc dot gnu.org
2021-01-05  4:34 ` mehdi.chinoune at hotmail dot com
2021-01-05  6:16 ` mehdi.chinoune at hotmail dot com
2021-01-05  7:43 ` amonakov at gcc dot gnu.org
2021-01-05  8:15 ` mehdi.chinoune at hotmail dot com
2021-01-05  8:48 ` amonakov at gcc dot gnu.org
2021-01-05 13:12 ` mehdi.chinoune at hotmail dot com
2021-07-28  8:27 ` mehdi.chinoune at hotmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-98258-4-tI1k06sjml@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).