Fwd: Problems when use OpenACC with a Kernel
Thomas Schwinge
thomas@codesourcery.com
Tue Sep 29 09:10:00 GMT 2015
Hi Esteban!
Please in the future use the <gcc-help@gcc.gnu.org> for getting help with
GCC (HTML email will be discarded, if I remember correctly).
A first try at answering your question:
On Sat, 19 Sep 2015 22:57:36 +0000, Esteban Hernández <eshernan@gmail.com> wrote:
> Dear Thomas and nathan,
>
>
> My Name is Esteban Hernandez, a PhD Student of Distrital University,
> Bogota, Colombia,
>
>
> I'm trying to use OpenACC 2.0 with GCC *gomp4*
Thanks for your interest in trying this!
> i compile the gomp branch
> with the r227926, the host and host compiler finish o.k,
How do you configure/build? I'm asking because:
> I make a example of OpenACC, using jacobbi method. When i compile my file
> with the following flags,
>
> CC = /home/eshernan/bin/usr/local/bin/gcc --> is my compiled gcc
>
> -fopenacc -lm -ggdb
>
>
> /home/eshernan/bin/usr/local/bin/gcc -I../common -fopenacc -lm -ggdb -o
> laplace2d_acc laplace2d.c
>
>
> Appear the following errors:
>
> /tmp/ccBtSMky.s: Assembler messages:
> /tmp/ccBtSMky.s:2: Error: expected quoted string
> /tmp/ccBtSMky.s:2: Error: junk at end of line, first unrecognized character
> is `3'
> /tmp/ccBtSMky.s:3: Error: unknown pseudo-op: `.target'
> /tmp/ccBtSMky.s:4: Error: unknown pseudo-op: `.address_size'
> /tmp/ccBtSMky.s:9: Error: unknown pseudo-op: `.entry'
> /tmp/ccBtSMky.s:11: Error: unknown pseudo-op: `.entry'
> /tmp/ccBtSMky.s:12: Error: junk at end of line, first unrecognized
> character is `{'
> /tmp/ccBtSMky.s:13: Error: unknown pseudo-op: `.reg.u64'
So, you got PTX assembly code in your target (presumably x86_64?)
assembly code -- something is wrong with your GCC build configuration, so
we need to clarify that first. (I do acknowledge that it's a bit
complicated...)
<https://gcc.gnu.org/wiki/Offloading#How_to_try_offloading_enabled_GCC>.
Grüße,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20150929/dd3ff5ed/attachment.sig>
More information about the Gcc-help
mailing list