This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: The nvptx port
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Cesar Philippidis <cesar_philippidis at mentor dot com>
- Cc: Bernd Schmidt <bernds at codesourcery dot com>, Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org, Thomas Schwinge <thomas_schwinge at mentor dot com>
- Date: Fri, 14 Nov 2014 18:00:54 +0100
- Subject: Re: The nvptx port
- Authentication-results: sourceware.org; auth=none
- References: <20141114082948 dot GH5026 at tucnak dot redhat dot com> <5465E2CF dot 6000105 at codesourcery dot com> <20141114113945 dot GM5026 at tucnak dot redhat dot com> <5465F1B8 dot 80205 at codesourcery dot com> <546621CD dot 40007 at mentor dot com> <20141114161836 dot GU5026 at tucnak dot redhat dot com> <54662FE0 dot 1030602 at mentor dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Nov 14, 2014 at 08:37:52AM -0800, Cesar Philippidis wrote:
> On 11/14/2014 08:18 AM, Jakub Jelinek wrote:
>
> >> Also, keep in mind that PTX doesn't have a global TID. The user needs to
> >> calculate it using ctaid/tid and friends.
> >
> > Ok. Is %gridid needed for that combo too?
>
> Eventually, probably. Currently, we're launching all of our kernels with
> cuLaunchKernel, and that function doesn't take grids into account.
I wonder if cudaLaunchDevice called from PTX will result in a different
%gridid or not, will see next week if I manage to get the HW and SW stack
Jakub