Some 'reverse-engineering' of Zen

By: dmcq (dmcq.delete@this.fano.co.uk), October 31, 2015 3:12 pm
Room: Moderated Discussions
bakaneko (nyan.delete@this.hyan.wan) on October 31, 2015 10:23 am wrote:
> dmcq (dmcq.delete@this.fano.co.uk) on October 31, 2015 8:19 am wrote:
> > bakaneko (nyan.delete@this.hyan.wan) on October 31, 2015 7:28 am wrote:
> > > dmcq (dmcq.delete@this.fano.co.uk) on October 30, 2015 5:12 am wrote:
> > > > lurker (lurker9000.delete@this.realemail.mail) on October 30, 2015 2:39 am wrote:
> > > > > > First of all - welcome to RWT, glad to hear your perspective.
> > > > >
> > > > > Thanks.
> > > > >
> > > > > > My guess is that everything you say is true...
> > > > >
> > > > > Eh, I just thought I'd post what I heard from a guy who supposedly worked on Zen.
> > > > >
> > > > > > and that AMD isn't intending to hit the HPC
> > > > > > market. They have 128b vectors (since that's all ARM supports), which simply isn't wide
> > > > > > enough to be competitive with Skylake. So giving up on a third AGU makes sense. The third
> > > > > > AGU is probably most helpful for HPC (where they cannot compete anyway) and isn't a particularly
> > > > > > small unit in terms of design complexity and impact on the load/store buffer.
> > > > > >
> > > > > > David
> > > > >
> > > > > 128bit FP pipes seem optimal for most desktop and server software. HPC is pretty
> > > > > much the only place where latest instructions are used and even if zen was competitive
> > > > > here I don't think anyone would want to switch from Intel.
> > > > > Personally I just hope the lack of 3rd AGU won't cause problems in SMT. I don't think
> > > > > normal workloads have that many operations that access memory, but SMT aims to maximize
> > > > > utilization of all available resources and only 2 AGUs might be a problem there.
> > > >
> > > > I think 256 bits would be better as you can do four double precision operations at once and that is quite
> > > > common. On the other hand with four SIMD units instead one could merge two operations to give an effective
> > > > two by 256 bit units except for some special operations. For anything larger they'd probably be better
> > > > off relying on GPUs I think if they can get the coherence and message passing working well. I can see
> > > > how to save larger register sets without impacting interrupt handling too badly but it seems a lot of
> > > > work when ARM is probably hoping to move 64 bit ARM into the embedded processor market.
> > >
> > > Except nobody sane would work on large amounts of
> > > doubles for most normal applications. It's really
> > > only useful for HPC, and there some other things
> > > probably matter even more, as floating point can be
> > > the wrong hammer.
> >
> > Well I know games often just use floats in the GPUs an some AI people say 8-bit integers are enough
> > for any useful AI problem - but it is amazing how fast a sequence of float operations can start to give
> > obviously wrong results. If one wants half a chance of something approximating a reasonable result and
> > aren't an expert at error analysis there's nothing to beat just doing the work using doubles.
>
> While it sounds worthwile, it is actually wrong.
> More bits don't save you from errors; in some cases
> they will give you worse results.
>
> Floats is one of these topics where you can't go with
> (pretty naive) hunches. You need to understand the
> material properly.

I never said it would guarantee you were okay. I said if you want half a chance of something approximating a reasonable result. Of course it can all go wrong even with simple things like calculating the roots of a quadratic but with double you are far more likely to get something workable. Not everyone is an expert at error analysis but an engineer can at least check that results seem to be okay.

The best one can hope for is that errors grow with the square root of the number of operations contributing to a result. Supposing one can do 2^30Gflops and that contributes to a single result then in one second one loses 15 bits of precision - so at best a floating point result will only be accurate to 9 bits. And that really is being quite optimistic. At least doubles aren't practically guaranteed to give such inaccurate results.
< Previous Post in ThreadNext Post in Thread >
TopicPosted ByDate
Some 'reverse-engineering' of Zenjuanrga2015/10/03 03:48 AM
  Some 'reverse-engineering' of ZenHeikki Kultala2015/10/03 07:01 AM
    Some 'reverse-engineering' of Zenitsmydamnation2015/10/03 02:47 PM
      Some 'reverse-engineering' of ZenAnders2015/10/03 10:04 PM
        Some 'reverse-engineering' of ZenContrarian2015/10/04 10:53 AM
          Some 'reverse-engineering' of ZenJukka Larja2015/10/05 08:15 AM
            Some 'reverse-engineering' of Zenmpx2015/10/05 08:37 AM
              Some 'reverse-engineering' of ZenContrarian2015/10/25 11:25 AM
                Some 'reverse-engineering' of Zenitsmydamnation2015/10/26 12:49 AM
                Some 'reverse-engineering' of Zenjuanrga2015/10/29 01:16 AM
                  Some 'reverse-engineering' of Zenanon2015/10/30 05:54 AM
                    Some 'reverse-engineering' of Zenjuanrga2015/10/30 09:37 AM
                    POWER8 load/store unitsGabriele Svelto2015/10/30 05:34 PM
                Some 'reverse-engineering' of Zenlurker2015/10/29 02:12 PM
                  Some 'reverse-engineering' of ZenDavid Kanter2015/10/29 11:06 PM
                    Some 'reverse-engineering' of Zenlurker2015/10/30 01:39 AM
                      Some 'reverse-engineering' of ZenGabriele Svelto2015/10/30 02:14 AM
                        Some 'reverse-engineering' of Zenlurker2015/10/30 02:41 AM
                      Some 'reverse-engineering' of Zendmcq2015/10/30 04:12 AM
                        Some 'reverse-engineering' of Zenlurker2015/10/30 04:56 AM
                          Some 'reverse-engineering' of Zendmcq2015/10/30 05:09 AM
                            Some 'reverse-engineering' of Zennone2015/10/30 05:16 AM
                          Some 'reverse-engineering' of ZenDavid Kanter2015/10/30 07:16 AM
                            Some 'reverse-engineering' of Zenlurker2015/10/30 07:44 AM
                          Some 'reverse-engineering' of Zenjuanrga2015/10/30 12:00 PM
                            AVX and 128-bit FPUs in Zen(Re:Some 'reverse-engineering' of Zen)Heikki Kultala2015/10/30 02:45 PM
                              AVX and 128-bit FPUs in Zen(Re:Some 'reverse-engineering' of Zen)juanrga2015/10/31 05:20 AM
                                AVX and 128-bit FPUs in Zen(Re:Some 'reverse-engineering' of Zen)Heikki Kultala2015/10/31 01:19 PM
                                  AVX and 128-bit FPUs in Zen(Re:Some 'reverse-engineering' of Zen)juanrga2015/11/01 06:41 AM
                                    AVX and 128-bit FPUs in Zen(Re:Some 'reverse-engineering' of Zen)Anne O. Nymous2015/11/01 08:39 AM
                                AVX and 128-bit FPUs in Zen(Re:Some 'reverse-engineering' of Zen)Matthias Waldhauer2015/11/02 12:26 PM
                                  AVX and 128-bit FPUs in Zen(Re:Some 'reverse-engineering' of Zen)juanrga2015/11/03 02:42 AM
                            Some 'reverse-engineering' of ZenMatthias Waldhauer2015/11/02 10:39 AM
                        Some 'reverse-engineering' of Zenbakaneko2015/10/31 06:28 AM
                          Some 'reverse-engineering' of Zendmcq2015/10/31 07:19 AM
                            Some 'reverse-engineering' of ZenJukka Larja2015/10/31 08:21 AM
                            Some 'reverse-engineering' of Zenbakaneko2015/10/31 09:23 AM
                              Some 'reverse-engineering' of Zendmcq2015/10/31 03:12 PM
                                Some 'reverse-engineering' of Zenbakaneko2015/10/31 04:25 PM
                                  Some 'reverse-engineering' of Zendmcq2015/11/01 06:36 AM
                                    Some 'reverse-engineering' of Zenbakaneko2015/11/01 09:11 AM
                                      Some 'reverse-engineering' of Zendmcq2015/11/01 09:27 AM
                                        Some 'reverse-engineering' of Zenbakaneko2015/11/01 02:35 PM
                                          Some 'reverse-engineering' of Zendmcq2015/11/01 03:52 PM
                                            Some 'reverse-engineering' of Zenbakaneko2015/11/03 02:17 AM
                                              Some 'reverse-engineering' of Zendmcq2015/11/03 03:17 AM
                  Some 'reverse-engineering' of Zenjuanrga2015/10/30 11:43 AM
                    Some 'reverse-engineering' of Zenlurker2015/10/30 01:09 PM
                      Some 'reverse-engineering' of Zenjuanrga2015/10/31 05:58 AM
                        Some 'reverse-engineering' of Zenlurker2015/10/31 07:07 AM
                          Some 'reverse-engineering' of Zenjuanrga2015/10/31 11:50 AM
                            Some 'reverse-engineering' of ZenPoindexter2015/10/31 01:47 PM
                              Some 'reverse-engineering' of Zenlurker2015/10/31 03:06 PM
                                Some 'reverse-engineering' of ZenPoindexter2015/10/31 04:37 PM
                                  Some 'reverse-engineering' of Zenlurker2015/11/01 02:46 AM
                                  Some 'reverse-engineering' of Zenjuanrga2015/11/01 07:16 AM
                                    Some 'reverse-engineering' of ZenMaynard Handley2015/11/01 05:33 PM
                                      Some 'reverse-engineering' of Zenjuanrga2015/11/02 04:06 AM
                                        Zen transistor countHeikki Kultala2015/11/04 12:30 AM
                                          Zen transistor countjuanrga2015/11/05 04:34 AM
                                    Some 'reverse-engineering' of ZenSymmetry2015/11/02 05:56 AM
                                      Some 'reverse-engineering' of ZenDavid Hess2015/11/02 06:16 AM
                                      Some 'reverse-engineering' of Zennobody2015/11/02 07:19 AM
                                        Some 'reverse-engineering' of ZenJukka Larja2015/11/02 08:34 PM
                                          Some 'reverse-engineering' of Zennobody2015/11/03 12:35 AM
                                            Some 'reverse-engineering' of ZenJukka Larja2015/11/03 01:41 AM
                                              Some 'reverse-engineering' of Zennobody2015/11/03 04:10 AM
                                                Some 'reverse-engineering' of ZenJukka Larja2015/11/04 01:52 AM
                                            Some 'reverse-engineering' of ZenKlimax2015/11/03 01:47 AM
                                              Some 'reverse-engineering' of Zennobody2015/11/03 03:19 AM
                                                Some 'reverse-engineering' of ZenKlimax2015/11/03 11:09 AM
                                          Some 'reverse-engineering' of ZenBanana_Comedown2015/11/04 10:17 AM
                                            Some 'reverse-engineering' of ZenJukka Larja2015/11/05 02:51 AM
                                              Some 'reverse-engineering' of ZenBanana_Comedown2015/11/05 12:23 PM
                                      Some 'reverse-engineering' of Zenjuanrga2015/11/03 03:13 AM
                                Some 'reverse-engineering' of Zennobody2015/10/31 07:16 PM
                                  Some 'reverse-engineering' of Zenlurker2015/11/01 02:48 AM
                                    Some 'reverse-engineering' of Zensylt2015/11/01 03:07 AM
                                    Some 'reverse-engineering' of Zennobody2015/11/01 10:49 AM
                                  Some 'reverse-engineering' of Zenmd2015/11/01 12:06 PM
                                    Some 'reverse-engineering' of Zenblu2015/11/01 12:59 PM
                                      Some 'reverse-engineering' of Zenjuanrga2015/11/02 04:10 AM
                              Some 'reverse-engineering' of Zenjuanrga2015/11/01 06:00 AM
                                Some 'reverse-engineering' of ZenPoindexter2015/11/01 08:25 AM
                                  Some 'reverse-engineering' of Zenjuanrga2015/11/02 03:47 AM
                                    Some 'reverse-engineering' of ZenPoindexter2015/11/02 04:39 AM
                                      Some 'reverse-engineering' of Zenjuanrga2015/11/02 12:26 PM
                                        Some 'reverse-engineering' of ZenDan Downs2015/11/02 02:12 PM
                                          Some 'reverse-engineering' of Zenjuanrga2015/11/03 02:51 AM
                            Some 'reverse-engineering' of Zenlurker2015/10/31 02:57 PM
                              Some 'reverse-engineering' of Zenjuanrga2015/11/01 06:26 AM
                                Some 'reverse-engineering' of ZenHeikki Kultala2015/11/01 08:57 AM
                                  Some 'reverse-engineering' of ZenMaynard Handley2015/11/01 05:39 PM
                              Some 'reverse-engineering' of ZenUngo2015/11/01 01:05 PM
                  Some 'reverse-engineering' of Zenquzhujian2015/10/31 09:39 AM
                  Some 'reverse-engineering' of ZenPoindexter2015/11/04 05:10 AM
                    Some 'reverse-engineering' of Zenlurker2015/11/05 12:54 PM
                      Some 'reverse-engineering' of Zennobody2015/11/05 02:28 PM
                      The sad status of tech mediajuanrga2015/11/06 04:19 AM
                        The sad status of tech mediaJoel2015/11/06 05:45 PM
                        The sad status of tech mediaMatthias Waldhauer2015/11/07 02:12 PM
                          The sad status of tech mediaJoel2015/11/07 04:40 PM
Reply to this Topic
Name:
Email:
Topic:
Body: No Text
How do you spell avocado?