Ping Re: [gomp4] Dumping gimple for offload.

Kirill Yukhin kirill.yukhin@gmail.com
Fri Nov 29 16:00:00 GMT 2013


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



More information about the Gcc-patches mailing list