From: Pierre Moreau <pierre.morrow-GANU6spQydw@public.gmane.org>
To: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
<nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: Dealing with opencl kernel parameters in nouveau now that RES support is gone
Date: Tue, 23 Feb 2016 13:12:25 +0100 [thread overview]
Message-ID: <20160223121211.GA3402@Sovereign.cs.lth.se> (raw)
In-Reply-To: <56CC37EA.3030703-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
[-- Attachment #1.1: Type: text/plain, Size: 3527 bytes --]
On 11:43 AM - Feb 23 2016, Hans de Goede wrote:
> Hi,
>
[snip]
>
> >You may have to add LOAD64/STORE64 for 64-bit
> >addresses though. Or we could decree that all addressing on global
> >memory shall be 64-bit (and thus read the .xy components of the
> >address source).
>
> I would prefer to keep LOAD / STORE semantics the same as with
> other LOAD / STORE -s to / from 1d buffers.
>
> I think that in the end the tgsi backend for llvm will get both
> a 32 bit and a 64 bit mode, like the nvptx backend already has.
>
> And then the 64 bit backend will use a new LOAD64 / STORE64
> also do not forget that keeping 64 bit pointers takes twice as
> much registers, so 32 bit will likely be optimal in a lot of
> cases. I guess since OpenCL does not give the user a way
> to select which mode to use we will end up with some sort
> of heuristic based on the amount of memory on the card or
> some such.
>
> After all using 64 bit pointers does not make a lot of sense
> on a card with only 1 GB of RAM (yes I know we're talking virtual
> address space here).
>
> Anyways this all really is too soon to tell. Maybe the performance
> impact of using 64 bit pointers is negligible. But I think it would
> be good (and consistent) to keep LOAD / STORE taking 32 bit addresses
> even for MEMORY and add a LOAD64 / STORE64 when I get around to
> implementing a 64 bit mode for the llvm tgsi backend (or when others
> need them).
>
> >>>Another way of looking at it is that instead of having the hacky
> >>>RES[12345] being hardcoded to mean something special, you now have a
> >>>dedicated file called 'MEMORY', which has identical semantics.
> >>
> >>
> >>I'm all for getting rid of the RES[12345] hack :)
> >>
> >>I guess where you write "you now have a dedicated file called 'MEMORY'"
> >>You mean up to X dedicated MEMORY[#] files, one for each of GLOBAL, SHARED
> >>and LOCAL at least, and probably as discussed one for INPUT ?
> >>
> >>This all sounds good to me, as said my worry was that MEMORY would have
> >>an implied base address like BUFFER has, now that you've
> >>made clear that MEMORY does not have this I'm happy :)
> >
> >There's a bit of a wrinkle here, and it's questionable whether we want
> >to allow for this somehow, but... Tesla actually has no way to address
> >global memory. It's always done with a base offset (which can be set
> >to 0). The trick is that it can only address 32 bits at a time,
> >there's no 64-bit addressing. But it has *16* such "global" memory
> >spaces, i.e. which are each base + up to 32-bit offset [and ultimately
> >only 40 bits of addressability]. I don't know if OpenCL provides
> >something good for that, if it does we can use semantic indices on the
> >GLOBAL to make it like
> >
> >DCL MEMORY[0], GLOBAL[0]
> >DCL MEMORY[1], GLOBAL[1]
> >
> >etc. But again, this is pretty optional.
>
> I think that for Tesla we can just only support the tgsi32 target
> and not the tgsi64 target, at least that is how I envision things
> today, who knows what tomorrow will bring :)
Fermi is the first family supporting 64 bit addresses, on top of 32 bit
addresses, while Kepler can only do 64 bit IIRC (or is it Maxwell which dropped
the 32 bit support?).
Regards,
Pierre
>
> Regards,
>
> Hans
> _______________________________________________
> Nouveau mailing list
> Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> https://lists.freedesktop.org/mailman/listinfo/nouveau
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
next prev parent reply other threads:[~2016-02-23 12:12 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-18 14:45 Dealing with opencl kernel parameters in nouveau now that RES support is gone Hans de Goede
[not found] ` <56C5D8F9.6030408-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-18 16:39 ` Ilia Mirkin
[not found] ` <CAKb7UvidnYPcG4w=R=1CKhc0AFmSKzmdgYA9XAKT3sBHwnpGcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-19 10:36 ` Hans de Goede
[not found] ` <56C6F031.6060308-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-19 19:43 ` Ilia Mirkin
[not found] ` <CAKb7UvgzKeOCm3Xh+j4=E_ru5_F_xGnx9NHkVT9sJoDw17OhVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-22 11:26 ` Hans de Goede
[not found] ` <56CAF059.3090608-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-22 12:41 ` Samuel Pitoiset
[not found] ` <56CB01EB.9040705-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-22 12:46 ` Hans de Goede
[not found] ` <56CB0340.3010403-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-22 13:04 ` Samuel Pitoiset
[not found] ` <56CB074B.9070406-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-22 13:08 ` Hans de Goede
[not found] ` <56CB0865.7070108-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-22 13:45 ` Ilia Mirkin
[not found] ` <CAKb7UvgZoRLeLhnqa-H6bLG+gyLRYj+arCNQP39Q8zPR6Gu4jA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-22 13:47 ` Ilia Mirkin
[not found] ` <CAKb7UviPZtExOcgUDxuxyhGf6C0QL+apn6ZjJEdJ8DhM_sfChw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-22 14:17 ` Hans de Goede
[not found] ` <56CB1870.4030606-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-22 14:22 ` Ilia Mirkin
2016-02-22 14:50 ` Hans de Goede
[not found] ` <56CB2031.1050507-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-22 15:24 ` Ilia Mirkin
[not found] ` <CAKb7UvgjtVfYZR2hW_bttjmyVFa0kDGW7ZejS+j-MVsxcnwNoQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-22 15:50 ` Hans de Goede
[not found] ` <56CB2E42.60905-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-22 16:00 ` Ilia Mirkin
[not found] ` <CAKb7Uvjd0zNyKLri+h4O-h2Wcb1pLc3_B27+MYz-VHgf3z+1Pg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-22 16:07 ` Pierre Moreau
[not found] ` <1804001255.101474107.1456157248410.JavaMail.root-x5ewXQG5twBsFmKuirFwRhh1pbbyJDp15NbjCUgZEJk@public.gmane.org>
2016-02-22 16:11 ` Ilia Mirkin
2016-02-22 16:13 ` Ilia Mirkin
[not found] ` <CAKb7UviNRmhSQUOkKvQqDipcQFjxep8S2m-QRreRsWVWf8tHSg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-22 16:50 ` Hans de Goede
[not found] ` <56CB3C6F.7070907-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-22 16:59 ` Ilia Mirkin
[not found] ` <CAKb7UvhxMakSzgVzqgxSJ7J641_MaP=3nEqnX7xRANiv3M7FWg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-23 10:43 ` Hans de Goede
[not found] ` <56CC37EA.3030703-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-02-23 12:12 ` Pierre Moreau [this message]
[not found] ` <20160223121211.GA3402-V5oniRM6A16axBhUmp6zfjAV6s6igYVG@public.gmane.org>
2016-02-23 20:36 ` Ilia Mirkin
2016-02-22 15:15 ` Pierre Moreau
[not found] ` <D759423A-B76C-49C9-AB83-5B431C43ECC5-GANU6spQydw@public.gmane.org>
2016-02-22 15:26 ` Ilia Mirkin
2016-02-22 14:42 ` Samuel Pitoiset
[not found] ` <56CB1E49.5000805-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-22 14:53 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160223121211.GA3402@Sovereign.cs.lth.se \
--to=pierre.morrow-ganu6spqydw@public.gmane.org \
--cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.