From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 95438] Elemental demo compute shader takes ages to compile
Date: Tue, 17 May 2016 02:30:52 +0000 [thread overview]
Message-ID: <bug-95438-502-RGltzcXyNN@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-95438-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 1375 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=95438
--- Comment #1 from Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> ---
Last I looked at the elemental demo, we have multiple issues:
- The shared array (1024 elements) get wrongly promoted to a private array.
There is a fix for that at
https://lists.freedesktop.org/archives/mesa-dev/2016-April/113832.html
- in radeonsi we compile arrays to vectors with insert/extract element. This
pretty much results in the array being SSA version, which results in a very
large program.
- a 1024 element vector does not fit in 256 VGPR's so LLVM tries to load and
spill around every operation and therefore every versioned array element takes
scratch space.
- As a result I needed 7 MiB of scratch space per wave, or 6,7 GiB in total.
This overflows the 32-bit buffer size and we only allocate a smaller buffer.
- This resulted in hangs (or maybe long long shader execution times, not
really sure...).
So not sure how long a long long time is, last I tried (which admittedly is
some weeks ago) I certainly could get past the compilation stage. If you did
get past that and did not get hangs, I'm not sure why.
Fixing the first problem also circumvents problems 2 & 3, although it would be
nice to get those fixed as well.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2258 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-05-17 2:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-17 2:01 [Bug 95438] Elemental demo compute shader takes ages to compile bugzilla-daemon
2016-05-17 2:30 ` bugzilla-daemon [this message]
2016-05-17 6:13 ` bugzilla-daemon
2016-05-17 6:14 ` bugzilla-daemon
2016-05-24 22:28 ` bugzilla-daemon
2017-01-05 17:52 ` bugzilla-daemon
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=bug-95438-502-RGltzcXyNN@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox