This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4] libgomp: plugin for non-shared memory host execution (was: libgomp.c/target-1.c failing in fn2's GOMP_target_update)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ilya Verbin <iverbin at gmail dot com>
- Cc: Thomas Schwinge <thomas at codesourcery dot com>, gcc <gcc-patches at gcc dot gnu dot org>, michael dot v dot zolotukhin at intel dot com, jnorris at codesourcery dot com, Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Date: Wed, 19 Feb 2014 18:59:59 +0100
- Subject: Re: [gomp4] libgomp: plugin for non-shared memory host execution (was: libgomp.c/target-1.c failing in fn2's GOMP_target_update)
- Authentication-results: sourceware.org; auth=none
- References: <87zjpehpz4 dot fsf at schwinge dot name> <20131108154000 dot GP27813 at tucnak dot zalov dot cz> <87lhzqs3tv dot fsf at kepler dot schwinge dot homeip dot net> <87r46zt76g dot fsf at schwinge dot name> <CADG=Z0E1cHQtzOK1xiarZJRC1uapBfdaiP6o7qxr2q8uGo9ckg at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Feb 19, 2014 at 09:49:20PM +0400, Ilya Verbin wrote:
> 2014-02-19 20:10 GMT+04:00 Thomas Schwinge <thomas@codesourcery.com>:
> > Here is such a libgomp plugin plus the infrastructure for initial support
> > of non-shared memory host execution. Any comments?
> >
> > Grüße,
> > Thomas
>
> This plugin looks good.
>
> I think the function call in GOMP_target also should be replaced with
> a call to plugin:
> - fn ((void *) tgt->tgt_start);
> + devicep->device_run_func (fn, (void *) tgt->tgt_start);
>
> Also I have a question (not related with this plugin): How will
> libgomp work with multiple devices of the same type? Probably it
> should load the plugin once, query it for the number of available
> devices, add received number of descriptors to the devices[] array, an
> then pass devicep->id as an argument to all plugin's interfaces.
Or the devicep pointer.
Jakub