This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp4] GOMP_target fall back execution
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Kirill Yukhin <kirill dot yukhin at gmail dot com>, Michael Zolotukhin <michael dot v dot zolotukhin at gmail dot com>, Richard Henderson <rth at redhat dot com>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Wed, 18 Sep 2013 12:31:18 +0200
- Subject: Re: [gomp4] GOMP_target fall back execution
- Authentication-results: sourceware.org; auth=none
- References: <20130918075435 dot GB32797 at msticlxl57 dot ims dot intel dot com> <20130918083838 dot GE1817 at tucnak dot redhat dot com>
On Wed, Sep 18, 2013 at 10:38 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Wed, Sep 18, 2013 at 11:54:35AM +0400, Kirill Yukhin wrote:
>> Hello,
>> It seems that currently GOMP_target perform call to host variant of the routine:
>>
>> void
>> GOMP_target (int device, void (*fn) (void *), const char *fnname,
>> size_t mapnum, void **hostaddrs, size_t *sizes,
>> unsigned char *kinds)
>> {
>> device = resolve_device (device);
>> if (device == -1)
>> {
>> /* Host fallback. */
>> fn (hostaddrs);
>> return;
>> }
>> ...
>> }
>
> The problem with that is that what GOMP_target does right now for host
> fallback is not sufficient, but unfortunately I haven't been able to get
> answers to all my questions about what exactly must be done yet.
Also the host fallback could still use threads? ...
Richard.