Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch > #32364 > unrolled thread
| Started by | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| First post | 2015-12-31 17:32 -0800 |
| Last post | 2016-01-03 09:24 +0000 |
| Articles | 20 on this page of 49 — 10 participants |
Back to article view | Back to comp.arch
UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-31 17:32 -0800
Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-01 03:07 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-12-31 19:34 -0800
Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-01 14:26 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-01 07:40 -0800
Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-01 17:35 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-01 13:02 -0800
Re: UNUM study and research MitchAlsup <MitchAlsup@aol.com> - 2016-01-01 09:37 -0800
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-01 12:45 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-01 10:04 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-01 10:12 -0800
Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 14:34 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 07:29 -0800
Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 16:36 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 10:01 -0800
Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 18:50 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 11:18 -0800
Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 20:09 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 12:29 -0800
Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-02 20:44 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 12:55 -0800
Re: UNUM study and research George Neuner <gneuner2@comcast.net> - 2016-01-03 04:42 -0500
Re: UNUM study and research already5chosen@yahoo.com - 2016-01-03 03:01 -0800
Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-03 12:46 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-03 09:47 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 14:46 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 15:26 -0800
Re: UNUM study and research Ivan Godard <ivan@millcomputing.com> - 2016-01-02 17:03 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 17:58 -0800
Re: UNUM study and research Ivan Godard <ivan@millcomputing.com> - 2016-01-02 18:13 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 20:25 -0800
Re: UNUM study and research Terje Mathisen <terje.mathisen@tmsw.no> - 2016-01-03 19:26 +0100
Re: UNUM study and research already5chosen@yahoo.com - 2016-01-03 02:55 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 18:01 -0800
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-02 18:06 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 20:30 -0800
Re: UNUM study and research Erik Trulsson <erikt@Update.UU.SE> - 2016-01-08 08:35 +0000
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-08 05:34 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-08 07:57 -0800
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-08 08:01 -0800
Re: UNUM study and research "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2016-01-08 08:07 -0800
Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-02 22:15 +0000
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-02 14:59 -0800
Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-03 10:39 +0000
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-03 05:17 -0800
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-03 05:19 -0800
Re: UNUM study and research nmm@wheeler.UUCP (Nick Maclaren) - 2016-01-03 14:56 +0000
Re: UNUM study and research Quadibloc <jsavard@ecn.ab.ca> - 2016-01-03 08:21 -0800
Re: UNUM study and research Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-01-03 09:24 +0000
Page 1 of 3 [1] 2 3 Next page →
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2015-12-31 17:32 -0800 |
| Subject | UNUM study and research |
| Message-ID | <439f2f1d-6e26-4550-ae75-b36a99dfb7a2@googlegroups.com> |
Has anyone read the book, "The End of Error" by John Gustafson? I am still reading it, but I would like some input. Does anyone have any thoughts about the idea? About its implementation in hardware? Best regards, Rick C. Hodgin
[toc] | [next] | [standalone]
| From | Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> |
|---|---|
| Date | 2016-01-01 03:07 +0000 |
| Message-ID | <20160101030755.592ff2bd@t500> |
| In reply to | #32364 |
On Thu, 31 Dec 2015 17:32:56 -0800 (PST) "Rick C. Hodgin" <rick.c.hodgin@gmail.com> wrote: > Has anyone read the book, "The End of Error" by John > Gustafson? I am still reading it, but I would like some input. > I've read the easy bits, looking for usable hardware recipes. > Does anyone have any thoughts about the idea? About its > implementation in hardware? > Though it seems to be a perfect solution, it may not sit well with current hardware or software systems, examples: 1) unums are incompatible with floating point hardware which left aligns the significand in a fixed length register. 2) The length of a unum might grow during computation, you might need to change it from an integer/exact float to an inexact float in order to reduce it's size before writing it back into it's slot in a struct/record... Bug/Feature? As a superset of integers and floats unums could become the single base numeric type for a superior computing system. Main points & illustrations from book here: http://sites.ieee.org/scv-cs/files/2013/03/Right-SizingPrecision1.pdf A processor which implements unums will be very different, and because of this would likely be of little use in the short term. Jan Coombs -- email valid
[toc] | [prev] | [next] | [standalone]
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2015-12-31 19:34 -0800 |
| Message-ID | <49ba8cc1-46c3-4769-ab2a-81d674cf4b3a@googlegroups.com> |
| In reply to | #32376 |
On Thursday, December 31, 2015 at 10:07:57 PM UTC-5, Jan Coombs wrote: > [edited] > > As a superset of integers and floats unums could become the > single base numeric type for a superior computing system. > > ... > > A processor which implements unums will be very different, and > because of this would likely be of little use in the short term. This is where I am as well, though I am also thinking about how to implement a hardware solution, one which does contain load and store support for existing IEEE-754 storage formats, while using UNUM formats internally for computation. My biggest issue is how to provide sufficient scratch space for the variable-length computation when, theoretically, UNUMs could be carried out to incredible lengths making any allocation of scratch space insufficient. My current consideration is something along the lines of a multi-tiered cache system, but in this case it would be a multi-tiered scratch space system, using its own type of L1 and L2 along with main memory for additional scratch space. Such a CPU would have to have an intimate relationship with the OS to provide this support, or perform some level of internal clipping without it. Best regards, Rick C. Hodgin
[toc] | [prev] | [next] | [standalone]
| From | Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> |
|---|---|
| Date | 2016-01-01 14:26 +0000 |
| Message-ID | <20160101142647.0bb0923b@t500> |
| In reply to | #32379 |
On Thu, 31 Dec 2015 19:34:43 -0800 (PST) "Rick C. Hodgin" <rick.c.hodgin@gmail.com> wrote: > On Thursday, December 31, 2015 at 10:07:57 PM UTC-5, Jan > Coombs wrote: > > [edited] > > > > As a superset of integers and floats unums could become the > > single base numeric type for a superior computing system. > > > Main points & illustrations from book in slide show here: > http://sites.ieee.org/scv-cs/files/2013/03/Right-SizingPrecision1.pdf > > > > A processor which implements unums will be very different, > > and because of this would likely be of little use in the > > short term. > > This is where I am as well, though I am also thinking about > how to implement a hardware solution, one which does contain > load and store support for existing IEEE-754 storage formats, > while using UNUM formats internally for computation. > I'm starting very small - proof of concept design in 4k LUT4s of FPGA fabric. On converting an IEE-754 float to unum format in byte addressed memory it would occupy two bytes minimum, and three bytes for a half utilised single. (see Gustafson) > My biggest issue is how to provide sufficient scratch space > for the variable-length computation when, theoretically, UNUMs > could be carried out to incredible lengths making any > allocation of scratch space insufficient. > Numeric values in my tiny prototype can be 10-20 times the size of an addressable memory cell (usually byte). These limits are set at design time. If there is a problem during computation, then you can throw away resolution and reduce the storage size of the unum. The correct result is then still within the range indicated by the inexact unum. > Such a CPU would have to have an intimate relationship with > the OS to provide this support, or perform some level of > internal clipping without it. > If a processor uses unums exclusively, then data items are of varying length. This may make stack frames difficult to use, and stack indexing impossible. I think Python is supportable, but other languages not so easily. An advantage of using unums exclusively is that streamed data can be very compact. But, would you not then need to convert it into an array for filter application or FFT processing? (please email me directly if you have any off-topic comments) Jan Coombs.
[toc] | [prev] | [next] | [standalone]
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2016-01-01 07:40 -0800 |
| Message-ID | <e9905b07-cb46-41a9-9af5-093ae3cb9086@googlegroups.com> |
| In reply to | #32392 |
On Friday, January 1, 2016 at 9:26:49 AM UTC-5, Jan Coombs wrote: > On Thu, 31 Dec 2015 19:34:43 -0800 (PST) > "Rick C. Hodgin" <rick.c.hodgin@gmail.com> wrote: > > Such a CPU would have to have an intimate relationship with > > the OS to provide this support, or perform some level of > > internal clipping without it. > > > If a processor uses unums exclusively, then data items are of > varying length. This may make stack frames difficult to use, and > stack indexing impossible. I think Python is supportable, but > other languages not so easily. It would have to reference variable-length unums by pointer, and limit their size to some kind of fixed length forms to pass by value. But, I think such a constraint would be too limiting, so they should only be passed by pointer as the CPU will keep their data close-by in L1. I'm also thinking that something I imagine the Mill uses could be employed here, in that the scratch buffers for computation in use could cycle through a round-robin stack, so that you could quickly reference recently computed values by their constantly moving location through the stack relative to the computation number. This solution would obviously work with today's IEEE-754 implementations as well, but in considering the design of the unum engine, that thought (and I'd argue "need") occurred to me. I think the idea of the Mill brings forward into traditional architectures some aspects that can be very desirable, such as the utilization of prior-computed workloads which would prevent the follow-on time of recomputing things that are already known, and are available simply by reference. A prefix byte on an instruction would allow an ISA extension which shifts the data load from regs to the internal round-robin buffers, for example. > An advantage of using unums exclusively is that streamed data > can be very compact. But, would you not then need to convert it > into an array for filter application or FFT processing? I'll have to give it some thought. Using unums exclusively would change much, but it may be the best implementation for a new architecture as it is a universal solution, and one that could be made easily compatible with existing IEEE-754 data forms. Best regards, Rick C. Hodgin
[toc] | [prev] | [next] | [standalone]
| From | Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> |
|---|---|
| Date | 2016-01-01 17:35 +0000 |
| Message-ID | <20160101173507.27c54821@t500> |
| In reply to | #32398 |
On Fri, 1 Jan 2016 07:40:52 -0800 (PST) "Rick C. Hodgin" <rick.c.hodgin@gmail.com> wrote: > On Friday, January 1, 2016 at 9:26:49 AM UTC-5, Jan Coombs > wrote: > > If a processor uses unums exclusively, then data items are of > > varying length. This may make stack frames difficult to use, > > and stack indexing impossible. I think Python is > > supportable, but other languages not so easily. > > It would have to reference variable-length unums by pointer, > and limit their size to some kind of fixed length forms to > pass by value. But, I think such a constraint would be too > limiting, so they should only be passed by pointer as the CPU > will keep their data close-by in L1. > Maybe pass by value is possible: Python passes all data by reference. Since the unum data type would replace Python integers,long integers(bignums), and floats, then it seems likely that Python could be changed to pass unums by value. Since cpython is a zero-operand machine, which only uses the top few stack items as operands, each unum could just occupy a variable number of stack cells. Data tagging that is needed to mark the unum fields would also need to allow an item to be marked as an object pointer, to support other data types. > I'm also thinking that something I imagine the Mill uses could > be employed here, in that the scratch buffers for computation > in use could cycle through a round-robin stack, so that you > could quickly reference recently computed values by their > constantly moving location through the stack relative to the > computation number. This solution would obviously work with > today's IEEE-754 implementations as well, but in considering > the design of the unum engine, that thought (and I'd argue > "need") occurred to me. > I like this idea, it may be simpler than my current plan, but I'm not sure how to build a belt in hardware. With unums on a belt though, the offsets cannot be computed at compile time, so the belt would need to grow a level of operand indirection, but that is still one less than I am currently using. Mmm... > [snipped complex Mill related belt<-->reg transfer point] > > An advantage of using unums exclusively is that streamed data > > can be very compact. But, would you not then need to convert > > it into an array for filter application or FFT processing? > > I'll have to give it some thought. Using unums exclusively > would change much, but it may be the best implementation for a > new architecture as it is a universal solution, and one that > could be made easily compatible with existing IEEE-754 data > forms. > I was encouraged that Gustafson claims to have left his work unhindered by patents. It is hard to imagine the operational details of a system so different from those we already know. Jan Coombs.
[toc] | [prev] | [next] | [standalone]
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2016-01-01 13:02 -0800 |
| Message-ID | <6d85f6e8-6fa4-421f-ae35-52d946dc72a5@googlegroups.com> |
| In reply to | #32400 |
On Friday, January 1, 2016 at 12:35:10 PM UTC-5, Jan Coombs wrote: > On Fri, 1 Jan 2016 07:40:52 -0800 (PST) > "Rick C. Hodgin" <rick.c.hodgin@gmail.com> wrote: > > > On Friday, January 1, 2016 at 9:26:49 AM UTC-5, Jan Coombs > > wrote: > > > If a processor uses unums exclusively, then data items are of > > > varying length. This may make stack frames difficult to use, > > > and stack indexing impossible. I think Python is > > > supportable, but other languages not so easily. > > > > It would have to reference variable-length unums by pointer, > > and limit their size to some kind of fixed length forms to > > pass by value. But, I think such a constraint would be too > > limiting, so they should only be passed by pointer as the CPU > > will keep their data close-by in L1. > > > Maybe pass by value is possible: Python passes all data by > reference. Since the unum data type would replace Python > integers,long integers(bignums), and floats, then it seems > likely that Python could be changed to pass unums by value. > > Since cpython is a zero-operand machine, which only uses the top > few stack items as operands, each unum could just occupy a > variable number of stack cells. Data tagging that is needed to > mark the unum fields would also need to allow an item to be > marked as an object pointer, to support other data types. > > > > I'm also thinking that something I imagine the Mill uses could > > be employed here, in that the scratch buffers for computation > > in use could cycle through a round-robin stack, so that you > > could quickly reference recently computed values by their > > constantly moving location through the stack relative to the > > computation number. This solution would obviously work with > > today's IEEE-754 implementations as well, but in considering > > the design of the unum engine, that thought (and I'd argue > > "need") occurred to me. > > > I like this idea, it may be simpler than my current plan, but I'm > not sure how to build a belt in hardware. It would be by a decoder in hardware, one which advances only by instructions which compute an output. It would then increment the stack register, which would auto-wrap once it reached its maximum. The decoder would indicate which register is live for use at any time, with a blocking operation given by an explicit reference to a numbered register, as by the prefix byte in the ISA. > With unums on a belt > though, the offsets cannot be computed at compile time, so the > belt would need to grow a level of operand indirection, but that > is still one less than I am currently using. Mmm... They could be computed at compile-time, but not easily at development time unless there was a very well known compiler implementation on a very well known ISA. Nonetheless, even though they wouldn't be known by number until in source code (until the object code is generated), the optimizing compiler could still make reference of that information and inject it by being given some information about what information each unum instruction stores, and then substituting re-computed values with those it identifies as still existing on the round-robin stack at some location. I think a 16-register stack would be sufficient, with an option to slide re-used items to the top of the stack, bumping everything down one. This might necessarily require an intermediate control between the actual round-robin top-of-stack pointer, and the actual decoded value, as that bump could be handled more easily in logic than by physically moving the register data. In addition, I would suggest that the values always and only store tag information containing information about the unum, and a logical offset into memory where the actual data is stored. The CPU could keep copies locally in the scratch space which could be divided into a dedicated area of scratch space for a compute window (2 KB, for example), and then a larger portion for the cache portions. In that way unum-aware CPUs would have an L1-data, L1-instruction, and L1-unum, with a shared L2 (and L3+) being sufficient beyond. In that way, for standard precision computations (commensurate with 128-bit IEEE-754 or less), there would be enough space to keep everything in scratch space without ever overflowing into L1 for normal ops, allowing more L1 to be maintained for larger blocks of many compute abilities. It would be interesting to implement. > > [snipped complex Mill related belt<-->reg transfer point] > > > > An advantage of using unums exclusively is that streamed data > > > can be very compact. But, would you not then need to convert > > > it into an array for filter application or FFT processing? > > > > I'll have to give it some thought. Using unums exclusively > > would change much, but it may be the best implementation for a > > new architecture as it is a universal solution, and one that > > could be made easily compatible with existing IEEE-754 data > > forms. > > > I was encouraged that Gustafson claims to have left his work > unhindered by patents. It is hard to imagine the operational > details of a system so different from those we already know. Me too. He's contacted me in email about my research into unums. I am very excited by it so far, but I am not yet all the way through the book. It's taking me much time with the many other things I have going on in my life. FYI, right now my primary goals are to get my Logician simulator working with bitlines and logic gates. Once written and working in simulation, then I'll be able to begin designing all of this hardware. :-) Best regards, Rick C. Hodgin
[toc] | [prev] | [next] | [standalone]
| From | MitchAlsup <MitchAlsup@aol.com> |
|---|---|
| Date | 2016-01-01 09:37 -0800 |
| Message-ID | <a5caa973-34dc-48c0-b41f-01c8df4dd45b@googlegroups.com> |
| In reply to | #32364 |
On Thursday, December 31, 2015 at 7:33:00 PM UTC-6, Rick C. Hodgin wrote: > Has anyone read the book, "The End of Error" by John Gustafson? I > am still reading it, but I would like some input. > > Does anyone have any thoughts about the idea? About its implementation > in hardware? The value in the machine register is an address to memory and some descriptor data. The processor is designed to strip mine the UNUMs through the cache and through the ALU in an on-line sense but with larger words. That is it is all indirect and microcoded.
[toc] | [prev] | [next] | [standalone]
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2016-01-01 12:45 -0800 |
| Message-ID | <0f4704a2-749d-4b98-81a5-fd44f996937e@googlegroups.com> |
| In reply to | #32401 |
On Friday, January 1, 2016 at 12:37:22 PM UTC-5, MitchAlsup wrote: > On Thursday, December 31, 2015 at 7:33:00 PM UTC-6, Rick C. Hodgin wrote: > > Has anyone read the book, "The End of Error" by John Gustafson? I > > am still reading it, but I would like some input. > > > > Does anyone have any thoughts about the idea? About its implementation > > in hardware? > > The value in the machine register is an address to memory and some descriptor > data. The processor is designed to strip mine the UNUMs through the cache > and through the ALU in an on-line sense but with larger words. I thought I understood by your previous use of "strip mine," but I now don't think I did. What do you mean by "strip mine," as in the a[] and b[] loop iterating 1M times, and in this case? > That is it is all indirect and microcoded. Best regards, Rick C. Hodgin
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2016-01-01 10:04 -0800 |
| Message-ID | <6b6cad1a-120b-4f7f-ac16-606b8ec185b5@googlegroups.com> |
| In reply to | #32364 |
On Thursday, December 31, 2015 at 6:33:00 PM UTC-7, Rick C. Hodgin wrote: > Does anyone have any thoughts about the idea? About its implementation > in hardware? Because the UNUM format is variable in size, a hardware implementation would presumably involve working with those numbers in memory. And memory is so painfully slow these days, this almost guarantees such numbers would almost never be used if offered as a feature alongside the existing IEEE 754 format. So the market value of including the feature is limited. What could be done? Well, one option is to have some memory on the chip itself; rewrite our operating systems so that the on-chip memory gets allocated as a resource just like regular memory. Another is to have *big* registers - allow UNUMs that are only allowed to grow up to a selected size (i.e. 128 bits by default, 256 bits if you cut the number of registers in half, 512 bits if you cut the number of registers to one-quarter). And a format that isn't variable in size, but which has an inexact bit in the number, and _maybe_ even a variable-length exponent, might also be useful. So options exist. But variable-length numbers basically don't fit into the way we program computers - they would have to be treated like strings, so an array of this kind of number would be an array of pointers into the storage pool, with all the extra overhead this implies. Of course, that overhead is _worth it_ if it prevents a numerical error with catastrophic consequences. A CPU slowed to the speed of today's DRAM is still pretty fast *by historical standards*. So, the *real* problem emerges: UNUM, even implemented in hardware instead of software, will be much slower than current arithmetic techniques. For some purposes, what UNUM offers is not needed. For others, it is needed, and the overhead costs are trivial in perspective.
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2016-01-01 10:12 -0800 |
| Message-ID | <c95c434f-4f1d-479f-a02d-b62e2060abbb@googlegroups.com> |
| In reply to | #32403 |
On Friday, January 1, 2016 at 11:04:32 AM UTC-7, Quadibloc wrote: > For others, it is needed, and the overhead costs are trivial in perspective. My computer hit the mouse button by itself before I finished. "Trivial in perspective", though, doesn't mean trivial, period. Making your computer 5x slower is not what people will voluntarily accept when there is no need to do so. So the *problem* _really_ is not so much that UNUM is so slow and inefficient, except in so far as it is too slow and inefficient to make it the universal standard, the only way to do floating-point arithmetic permitted, provided, and available on the processors we all use in our smartphones and laptops and desktops. The real problem is, given that you can't do that, UNUM can only prevent numerical errors *if the people who need to use it* KNOW that they need to use it. Ah. I've just had a little brainstorm. On a 32-bit machine, a single-precision floating-point number takes the same amount of space as a pointer. On a 64-bit machine, you would need a double-precision floating-point number, but then that's what gets used most of the time anyways, particularly if one cares about the correctness of the result. So if there were a *mode bit* which, if set, would turn the conventional floating-point instructions to instructions that dealt in pointers to UNUMs, then with a bit of fiddling, as some portions, like constants in programs, would not be independent of that setting, one could have programs that _could run either way_. So even if you don't think your program needs UNUM, you could still test it with UNUM to see if it gives the same answer... John Savard
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-01-02 14:34 +0000 |
| Message-ID | <n68n5j$7m1$1@dont-email.me> |
| In reply to | #32404 |
In article <c95c434f-4f1d-479f-a02d-b62e2060abbb@googlegroups.com>, Quadibloc <jsavard@ecn.ab.ca> wrote: > >So the *problem* _really_ is not so much that UNUM is so slow and inefficient, >except in so far as it is too slow and inefficient to make it the universal >standard, the only way to do floating-point arithmetic permitted, provided, and >available on the processors we all use in our smartphones and laptops and >desktops. The REAL problem with UNUMs is that they don't do anything useful. All that they do is to cover up a subset of the numerical errors that sloppy programmers make, so that they don't appear as errors. And, as with all such techniques, the application-level effect is more likely to be plausible-looking wrong answers than anything else. The same is true of defining twos' complement, IEEE 754 (as it is usually perpetrated), and so on. What is known to be useful is what was specified in LIA. And, if anyone mentions exact floating- float, and probably even interval arithmetic, you probably believe all of Donald Trump's statements, too. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2016-01-02 07:29 -0800 |
| Message-ID | <3afc7fe5-a91d-46e0-b8e2-709e245b22a0@googlegroups.com> |
| In reply to | #32421 |
Nick Maclaren wrote: > The REAL problem with UNUMs is that they don't do anything useful. > > All that they do is to cover up a subset of the numerical errors that > sloppy programmers make, so that they don't appear as errors. And, > as with all such techniques, the application-level effect is more > likely to be plausible-looking wrong answers than anything else. Your statements contradict many points enumerated and explained point-by-point as to why unums were created. IEEE-754 has errors that are unrelated to application-level coding methods. For example, there is no requirement that two fully IEEE-754 compliant implementations on two separate machines do not have to yield the same results. There is also no way to know if the IEEE-754 value is exact or not, and cumulative errors in successive calculations can greatly reduce the significant digit count. Gustafson's unums address all of these issues, and remove computation limitations by extending precision as needed, guaranteeing a compute result that meets or exceeds requirements, and potentially on less power by early-out abilities. If you have something that is factual, and not your opinion, I would very much like to hear it. But using comments like, "If you believe X, then you'll believe [some ridiculous thing]," likening the two together, simply do not cut it. Best regards, Rick C. Hodgin
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-01-02 16:36 +0000 |
| Message-ID | <n68ua0$2b7$1@dont-email.me> |
| In reply to | #32425 |
In article <3afc7fe5-a91d-46e0-b8e2-709e245b22a0@googlegroups.com>, Rick C. Hodgin <rick.c.hodgin@gmail.com> wrote: > >> The REAL problem with UNUMs is that they don't do anything useful. >> >> All that they do is to cover up a subset of the numerical errors that >> sloppy programmers make, so that they don't appear as errors. And, >> as with all such techniques, the application-level effect is more >> likely to be plausible-looking wrong answers than anything else. > >Your statements contradict many points enumerated and explained >point-by-point as to why unums were created. IEEE-754 has errors that >are unrelated to application-level coding methods. For example, >there is no requirement that two fully IEEE-754 compliant implementations >on two separate machines do not have to yield the same results. There >is also no way to know if the IEEE-754 value is exact or not, and cumulative >errors in successive calculations can greatly reduce the significant >digit count. Oh, they do, indeed they do! But perhaps I know rather more about the causes, sources and solutions to numerical problems as well as the mathematics of computability than the soi disant computer scientists (as in nothing to do with computing, and not a science) who claim that? What ON EARTH does yielding the same result do except give delusions of correctness? Oh, yes, it makes testing easier - provided that you exclude timing-dependent and dynamic environment dependent requirements (bye, bye, GUIs and most embedded codes), most advanced optimisations and asynchronous parallelism (bye, bye, performance), and never permit any component to improve its algorithm (whether for RAS, accuracy or performance). Been there - seen that :-( >Gustafson's unums address all of these issues, and remove computation >limitations by extending precision as needed, guaranteeing a compute >result that meets or exceeds requirements, and potentially on less power >by early-out abilities. Nonsense. It has been known since before the start of modern computing that exact floating-point and controlling the accuracy by extending the precision are computationally infeasible for most codes. Despite a LOT of blithering over the past 60 years, the proponents of both have merely proved that is not a purely theoretical limitation. In particular, both are blown out of the water by iterative algorithms. >If you have something that is factual, and not your opinion, I would >very much like to hear it. But using comments like, "If you believe X, >then you'll believe [some ridiculous thing]," likening the two together, >simply do not cut it. You will find the proof (and it's real proof) in any decent books on the mathematical foundations of computability, both numerical analysis and genuine computer science. As far as practical experience goes? Well, I have rather more than most people, and had colleagues with a lot more than I do, who say exactly the same. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2016-01-02 10:01 -0800 |
| Message-ID | <0bf1d04e-8c38-4e18-8756-5b9fdcbe795d@googlegroups.com> |
| In reply to | #32426 |
On Saturday, January 2, 2016 at 11:38:57 AM UTC-5, Nick Maclaren wrote:
> In article <3afc7fe5-a91d-46e0-b8e2-709e245b22a0@googlegroups.com>,
> Rick C. Hodgin <rick.c.hodgin@gmail.com> wrote:
> >
> >> The REAL problem with UNUMs is that they don't do anything useful.
> >>
> >> All that they do is to cover up a subset of the numerical errors that
> >> sloppy programmers make, so that they don't appear as errors. And,
> >> as with all such techniques, the application-level effect is more
> >> likely to be plausible-looking wrong answers than anything else.
> >
> >Your statements contradict many points enumerated and explained
> >point-by-point as to why unums were created. IEEE-754 has errors that
> >are unrelated to application-level coding methods. For example,
> >there is no requirement that two fully IEEE-754 compliant implementations
> >on two separate machines do not have to yield the same results. There
> >is also no way to know if the IEEE-754 value is exact or not, and cumulative
> >errors in successive calculations can greatly reduce the significant
> >digit count.
>
> Oh, they do, indeed they do! But perhaps I know rather more about
> the causes, sources and solutions to numerical problems as well as
> the mathematics of computability than the soi disant computer
> scientists (as in nothing to do with computing, and not a science)
> who claim that?
John Gustafson's bio, and a review:
https://www.crcpress.com/The-End-of-Error-Unum-Computing/Gustafson/9781482239867
"Dr. John L. Gustafson is an applied physicist and mathematician. He
is a former Director at Intel Labs and former Chief Product Architect
at AMD. A pioneer in high-performance computing, he introduced cluster
computing in 1985 and first demonstrated scalable massively parallel
performance on real applications in 1988. This became known as
Gustafson's Law, for which he won the inaugural ACM Gordon Bell Prize.
He is also a recipient of the IEEE Computer Society's Golden Core
Award. Find more details on his website."
David Jefferson, Center for Advanced Scientific Computing, Lawrence
Livermore National Laboratory:
"This book is an extraordinary reinvention of computer arithmetic
and elementary numerical methods from the ground up. Unum arithmetic
is an extension of floating point in which it is also possible to
represent the open intervals between two floating point numbers.
This leads to arithmetic that is algebraically much cleaner, without
rounding error, overflow underflow, or negative zero, and with clean
and consistent treatment of positive and negative infinity and NaN.
These changes are not just marginal technical improvements. As the
book fully demonstrates, they lead to what can only be described as
a radical re-foundation of elementary numerical analysis, with new
methods that are free of rounding error, fully parallelizable, fully
portable, easier for programmers to master, and often more economical
of memory, bandwidth, and power than comparable floating point
methods."
> What ON EARTH does yielding the same result do except give delusions
> of correctness?
I stopped reading your reply at this point. But then I later came
back to it just to see what else you would write. :-)
> Oh, yes, it makes testing easier - provided that
> you exclude timing-dependent and dynamic environment dependent
> requirements (bye, bye, GUIs and most embedded codes), most advanced
> optimisations and asynchronous parallelism (bye, bye, performance),
> and never permit any component to improve its algorithm (whether for
> RAS, accuracy or performance). Been there - seen that :-(
I think you should actually read the book, Nick. You're missing much.
> >Gustafson's unums address all of these issues, and remove computation
> >limitations by extending precision as needed, guaranteeing a compute
> >result that meets or exceeds requirements, and potentially on less power
> >by early-out abilities.
>
> Nonsense. It has been known since before the start of modern computing
> that exact floating-point and controlling the accuracy by extending the
> precision are computationally infeasible for most codes. Despite a
> LOT of blithering over the past 60 years, the proponents of both have
> merely proved that is not a purely theoretical limitation. In particular,
> both are blown out of the water by iterative algorithms.
I think you should actually read the book.
> >If you have something that is factual, and not your opinion, I would
> >very much like to hear it. But using comments like, "If you believe X,
> >then you'll believe [some ridiculous thing]," likening the two together,
> >simply do not cut it.
>
> You will find the proof (and it's real proof) in any decent books on
> the mathematical foundations of computability, both numerical analysis
> and genuine computer science. As far as practical experience goes?
> Well, I have rather more than most people, and had colleagues with a
> lot more than I do, who say exactly the same.
Band-aids and patchwork over an already and admittedly failing design.
What is needed is a new way to process floating point data, which is
what Gustafson has come up with.
I'm still not finished with the book, so I'll withhold my final
conclusion until then. But so far ... it is brilliant, and it takes
the reader through each issue point-by-point.
I highly recommend getting a copy of the book and reading his reasoning
behind unums.
Best regards,
Rick C. Hodgin
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-01-02 18:50 +0000 |
| Message-ID | <n69659$1rc$1@dont-email.me> |
| In reply to | #32433 |
It appears that you don't even know enough to recognise the factual errors in those blurbs and, from your omissions, know almost no numerical analysis or mathematics of computability. Given that, and your fanaticism, I am not surprised you are impressed. I have been caught out too often by trolls misquoting other people, and tricking me into damning them, that I am not prepared to damn Gustafson's book without looking at it. But I am prepared to damn the claims by people like you of what it can do, because they have been proven to be mathematically impossible. Dammit, even I can do it :-( Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2016-01-02 11:18 -0800 |
| Message-ID | <afb76d19-81bf-4b6c-b98d-bc717eca5f65@googlegroups.com> |
| In reply to | #32436 |
On Saturday, January 2, 2016 at 1:52:56 PM UTC-5, Nick Maclaren wrote:
> ...But I am prepared to damn
> the claims by people like you of what it can do, because they have
> been proven to be mathematically impossible.
Well, I can see no reason that an ability to compute variably, and to a
point beyond the target precision (a practice which would result in no
error at the targeted precision), could ever be proven mathematically
impossible. I think it is a fundamental flaw to conclude otherwise.
As such, I must misunderstand what you say here.
-----
I personally think Gustafson's variable unum will literally and completely
end fp error in floating point math, at least from the point of view of a
targeted precision, and in those cases when the computational engine is
allowed to operate in an unconstrained manner, and explicitly for that
purpose. If, for speed or power considerations, the computational data
width is limited, then errors will exist, though less frequently than in
IEEE-754 standards.
Nonetheless, as I say, I will withhold my final conclusion until I complete
the book, and also do some tests. I told Terje Mathisen in 2014 that I'd
ear-marked the summer of 2015 to create a full FP engine in logic simulation.
I was unable to complete support in my Logician tool by then, so it did not
happen. However, I will alter that plan to now create a full unum engine
in logic-gate simulation, to give myself a practical example to see where
flaws lie in a hardware implementation, if any, and what workarounds there
might be, if needed.
I would appreciate your assistance when that time comes, Nick. Perhaps
by then you will have read the book and can assist me.
There is also a work-in-progress python simulation:
https://github.com/jrmuizel/pyunum
Best regards,
Rick C. Hodgin
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-01-02 20:09 +0000 |
| Message-ID | <n69ap0$jkq$1@dont-email.me> |
| In reply to | #32437 |
In article <afb76d19-81bf-4b6c-b98d-bc717eca5f65@googlegroups.com>, Rick C. Hodgin <rick.c.hodgin@gmail.com> wrote: > >> ...But I am prepared to damn >> the claims by people like you of what it can do, because they have >> been proven to be mathematically impossible. > >Well, I can see no reason that an ability to compute variably, and to a >point beyond the target precision (a practice which would result in no >error at the targeted precision), could ever be proven mathematically >impossible. I think it is a fundamental flaw to conclude otherwise. >As such, I must misunderstand what you say here. You do. Variable-precision calculations date back to the days when computer was a job description. Automatic precision variation has been used since the 1960s, to my personal knowledge. The point is that most of the problems are inherent in the mathematics, and thus not removed by ANY bounded representation. That applies to overflow, too, in effect. Whether the precision needed to eliminate rounding error remains bounded is trivially equivalent to solving the halting problem, and is well-known to increase exponentially and worse with both the running time and (sometimes) precision needed. Eliminating the rounding error (or, more subtly, overflow) is flatly impossible in a feasible implementation. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | "Rick C. Hodgin" <rick.c.hodgin@gmail.com> |
|---|---|
| Date | 2016-01-02 12:29 -0800 |
| Message-ID | <e7995d7b-555d-432e-9018-2fcc39d465ec@googlegroups.com> |
| In reply to | #32441 |
On Saturday, January 2, 2016 at 3:11:44 PM UTC-5, Nick Maclaren wrote: > In article <afb76d19-81bf-4b6c-b98d-bc717eca5f65@googlegroups.com>, > Rick C. Hodgin <rick.c.hodgin@gmail.com> wrote: > > > >> ...But I am prepared to damn > >> the claims by people like you of what it can do, because they have > >> been proven to be mathematically impossible. > > > >Well, I can see no reason that an ability to compute variably, and to a > >point beyond the target precision (a practice which would result in no > >error at the targeted precision), could ever be proven mathematically > >impossible. I think it is a fundamental flaw to conclude otherwise. > >As such, I must misunderstand what you say here. > > You do. Variable-precision calculations date back to the days when > computer was a job description. Automatic precision variation > has been used since the 1960s, to my personal knowledge. The point > is that most of the problems are inherent in the mathematics, and > thus not removed by ANY bounded representation. That applies to > overflow, too, in effect. > > Whether the precision needed to eliminate rounding error remains > bounded is trivially equivalent to solving the halting problem, and > is well-known to increase exponentially and worse with both the > running time and (sometimes) precision needed. Eliminating the > rounding error (or, more subtly, overflow) is flatly impossible in > a feasible implementation. I'm not sure what scope of data processing you're talking about here, but I'm talking about computations which can be translated into fp ops that are to be conducted to some precision in the result. In those cases, the ability to compute variably would allow every sub- computation within the larger formula to be conducted to a point beyond the required precision, resulting in a computed value that is not in error due to rounding, even though it still may be limited in proper expression as by the algorithm, or conversion from the pure fundamental formula into the series of fp ops. Rounding errors resulting from fp computation at a given precision would be done away with by using a variable-length computation on the fp ops. The ability to remove fundamental errors in the translation from formula to fp ops would never be removed, except possibly if it would be manipulated symbolically, and then computed after reduction. Best regards, Rick C. Hodgin
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-01-02 20:44 +0000 |
| Message-ID | <n69cr7$r4b$1@dont-email.me> |
| In reply to | #32443 |
In article <e7995d7b-555d-432e-9018-2fcc39d465ec@googlegroups.com>, Rick C. Hodgin <rick.c.hodgin@gmail.com> wrote: > >In those cases, the ability to compute variably would allow every sub- >computation within the larger formula to be conducted to a point >beyond the required precision, resulting in a computed value that is >not in error due to rounding, even though it still may be limited in >proper expression as by the algorithm, or conversion from the pure >fundamental formula into the series of fp ops. As I said, you need to get hold of a decent book on numerical analysis. That is true only for the most trivial of calculations, and is totally wrong for any of the complexity encountered in practice. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | comp.arch
csiph-web