This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ping Re: [gomp4] Dumping gimple for offload.
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: Bernd Schmidt <bernds at codesourcery dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Richard Biener <richard dot guenther at gmail dot com>, Ilya Tocar <tocarip dot intel at gmail dot com>, "Michael V. Zolotukhin" <michael dot v dot zolotukhin at gmail dot com>, gcc <gcc-patches at gcc dot gnu dot org>, Richard Henderson <rth at redhat dot com>, Jan Hubicka <hubicka at ucw dot cz>, Nathan Sidwell <nathan at codesourcery dot com>, Thomas Schwinge <thomas at codesourcery dot com>
- Date: Fri, 29 Nov 2013 16:05:19 +0300
- Subject: Re: Ping Re: [gomp4] Dumping gimple for offload.
- Authentication-results: sourceware.org; auth=none
- References: <CAFiYyc37RRjoeUfcg+N7g7Qo43YDtTa0kDJJ_fs--452eueH3g at mail dot gmail dot com> <20130926172127 dot GA41768 at msticlxl7 dot ims dot intel dot com> <20131003160507 dot GA116670 at msticlxl7 dot ims dot intel dot com> <CAFiYyc0P83gCjLKj6q=h4inyB2pLcYmL_NhUA+i=4s1Fx7Vy-g at mail dot gmail dot com> <20131114095226 dot GA128413 at msticlxl7 dot ims dot intel dot com> <CAFiYyc2oHNvv-MBy18OHgVU5g12StNU4LmZK+QeGpsoPj0w2mg at mail dot gmail dot com> <20131119095829 dot GA19301 at msticlxl7 dot ims dot intel dot com> <CAFiYyc3Xph6n+8XaL+NS+GmGLjhXcPVbHXn429-2eyG=+Z78+Q at mail dot gmail dot com> <20131120093615 dot GF892 at tucnak dot redhat dot com> <529885F4 dot 2040305 at codesourcery dot com>
Hello Bernd,
On 29 Nov 13:17, Bernd Schmidt wrote:
> 5. There's a new DECL_TARGET which refers to this list of target
> machines. It's set when creating a child function from e.g. "#pragma acc
> parallel"
Actually, I do not understand, what term `target machine' means here.
Are you talking about to target toolchain (target compiler, assembler, linker,
libraries etc)?
> 6. ipa_write_summaries iterates over DECL_TARGET machines to write out
> LTO for each of them. LTO sections for a different target get a separate
> prefix encoding the machine name, e.g. ".gnu.tlto_nvptx_...".
Why we want separate sections for different targets? As far as I understand
this is going to be generic Gimple, which should be identical to PTX, MIC etc.
We cannot use target built-ins inside such a common regions, right?
I also think it worst saying that currently we're working on passing of omp_target
sections to target compiler (we call it `streaming in') so we can produce target
objects from lto sections containing IR marked to be `target'.
Multiple targets are handled by means of dedicated targets descriptor, containing vector of
target compilers which will be executed on given sections one-by-one producing set
of objects for every target.
This sections are not related on exact target, as I mentioned above.
We're also working on generation of dedicated tables which will be needed
for host<->target address mapping (see Jakub's mails on the subject).
Hope to post initial versions nearest wws.
--
Thanks, K