This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Offloading Support in libgomp
- From: "Michael V. Zolotukhin" <michael dot v dot zolotukhin at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Kirill Yukhin <kirill dot yukhin at gmail dot com>, Richard Henderson <rth at redhat dot com>, gcc at gcc dot gnu dot org, triegel at redhat dot com
- Date: Tue, 27 Aug 2013 15:55:38 +0400
- Subject: Re: [RFC] Offloading Support in libgomp
- Authentication-results: sourceware.org; auth=none
- References: <20130823092810 dot GA36483 at msticlxl57 dot ims dot intel dot com> <20130823095250 dot GJ1814 at tucnak dot redhat dot com> <20130823153052 dot GA2974 at msticlxl57 dot ims dot intel dot com> <20130823161631 dot GO1814 at tucnak dot redhat dot com> <20130826115911 dot GA40923 at msticlxl57 dot ims dot intel dot com> <20130826125116 dot GE21876 at tucnak dot zalov dot cz> <20130826132936 dot GB40923 at msticlxl57 dot ims dot intel dot com> <20130826141117 dot GF21876 at tucnak dot zalov dot cz> <20130827112609 dot GA4093 at msticlxl57 dot ims dot intel dot com> <20130827113956 dot GH21876 at tucnak dot zalov dot cz>
> What I meant was just that if you call GOMP_target with
> num_descs N, then the structure will look like:
> struct .omp_target_data
> {
> sometype0 *var0;
> sometype1 *var1;
> ...
> sometypeNminus1 *varNminus1;
> };
> so pretty much the runtime will call the target routine with address of
> an array of N pointers, and the compiler generated target routine will
> just use a struct to access it to make it more debuggable. As there won't
> be any paddings in the structure, I'd hope the structure layout will be
> exactly the same as the array.
Ok, such assumption about struct layout seems to be enough for runtime
to figure out what to translate.
I'll try to put to rights everything we've discussed and prepare some
description of the overall scheme. After that, if you are ok with that,
we could start implementing it - that's the time we'll face the most
interesting stuff I guess:)
Thanks, Michael