Processing using compact computing elements

LPHDR processing elements address the inefficiency of high-precision computing by enabling massively parallel operations with reduced resource usage, enhancing computational performance and efficiency in general-purpose computing.

JP7565998B2Active Publication Date: 2024-10-11SINGULAR COMPUTING LLC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022200644
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2010-06-15
Filing Date
2022-12-15
Publication Date
2024-10-11
Estimated Expiration
2030-06-16

AI Technical Summary

Technical Problem

Existing computing architectures are inefficient in utilizing transistor resources due to the reliance on high-precision calculations, leading to suboptimal performance and resource wastage, particularly in general-purpose computers.

Method used

Implementing low-precision high-dynamic-range (LPHDR) processing elements that perform arithmetic operations with reduced precision, allowing for massively parallel computing with fewer resources, using logarithmic or analog representations to minimize circuit size and enable efficient computation.

Benefits of technology

LPHDR processing elements allow for increased computational power per unit of time, power, and cost by utilizing fewer transistors, making them suitable for general-purpose computing tasks with acceptable accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565998000002
    Figure 0007565998000002
  • Figure 0007565998000003
    Figure 0007565998000003
  • Figure 0007565998000004
    Figure 0007565998000004
Patent Text Reader

Abstract

Efficiently providing computing power in programmable and / or massively parallel processors or other devices. The processing elements 400 include processing elements designed to perform arithmetic operations (e.g., operations including, but not limited to, one or more of addition, multiplication, subtraction, and division) on low-precision, high-dynamic-range (LPHDR) numerical values. The number of LPHDR arithmetic elements in a processor or other device far exceeds the number of arithmetic elements designed to perform high-dynamic-range arithmetic with conventional precision (such as 32-bit or 64-bit floating-point arithmetic).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The ability to compute quickly has become crucial to humanity. Weather and climate forecasting, medical applications (e.g., drug design and tomography), national defense, geological exploration, financial modeling, Internet searches, network communications, scientific research in a wide variety of fields, and the design of new computer hardware all depend on the ability to process large amounts of calculations quickly. Advances in areas such as the computer-aided design of complex nanoscale systems and the development of consumer products that allow us to see, hear, and understand will likely require the economic deployment of ever more advanced computing power.

[0002] Gordon Moore's prediction that computing power per dollar would double every two years has proven valid for 30 years, and in some form or another, this is likely to continue. However, despite this rapid exponential progress, the reality is that the raw computing power available through silicon is growing much faster than software can make it available. In other words, even though the theoretical computing power of computer hardware has grown exponentially, the interfaces required for software to access the hardware limit the software's ability to use the hardware to perform computations at a rate approaching the hardware's theoretical maximum computing power.

[0003] Consider a modern silicon microprocessor chip, containing about a billion transistors and clocked at roughly 1GHz. In one cycle, the chip delivers roughly one useful operation to the running software: for example, a value is moved between registers, another is added, and a multiplication is completed. This is not very different from what microprocessor chips did 30 years ago, even though clock speeds are roughly 1000 times faster today.

[0004] Real computers are constructed as physical devices, and the underlying physics on which computer machines are constructed often provides complex and fascinating behavior. For example, silicon metal oxide semiconductor field effect transistors (MOSFETs) A digital transistor (transistor) is a device capable of performing interesting nonlinear operations, such as exponential operations. At the junction of two wires, the currents are added. If configured appropriately, a billion transistors and wires can perform a significant fraction of the billion operations involved in a calculation in a few propagation delays of the basic components (called a "cycle" if the entire design was a conventional digital design). And today's CPU chips use billions of transistors to simply allow software to perform a few of these operations per cycle, rather than a significant fraction of a billion possible operations. Summary of the Invention [Problem to be solved by the invention]

[0005] Embodiments of the invention relate to processors or other devices, including programmable and / or massively parallel processors and other devices. And this processor or other device includes processing elements designed to perform arithmetic operations (e.g., arithmetic operations that may include, but do not necessarily include, one or more additions, multiplications, subtractions, and divisions) that manipulate numbers in low precision high dynamic range (LPHDR arithmetic). Such a processor or other device may be implemented, for example, on a single chip. Whether implemented on a single chip or not, the number of LPHDR computing elements used in a processor or other device in some embodiments of the invention is intended to far exceed the number of computing elements used in such processors or other devices designed to perform high dynamic range arithmetic with conventional precision (such as 32-bit or 64-bit floating point arithmetic).

[0006] In one embodiment, a "low precision" computing element performs a computation that produces a result that differs from the correct result at least 0.1% (one tenth of one percent) of the time, which is significantly less precise than the widely adopted IEEE 754 single precision floating point standard. Programmable processor embodiments of the present invention are programmed using algorithms that function properly even in the presence of an unusually large number of such computational errors. Additionally, in some embodiments, the processing elements have a "high dynamic range" in the sense that they are capable of processing inputs and / or outputting a range that spans at least one part in a million to one million. [Brief description of the drawings]

[0007] [Figure 1] 1 illustrates the overall design of a SIMD processor according to one embodiment of the present invention. [Diagram 2] 2 illustrates an array of processing elements in a SIMD processor according to one embodiment of the present invention. [Diagram 3]1 illustrates one embodiment of the present invention, showing how a processing element in an array of processing elements of a processor communicates data with other parts of the processor. [Figure 4] 1 illustrates a processing element design according to one embodiment of the present invention. [Diagram 5] 1 illustrates an example of a word format of LPHDR data according to an embodiment of the present invention. [Figure 6] 1 illustrates an embodiment of the present invention, and illustrates a design of an LPHDR arithmetic unit. BEST MODE FOR CARRYING OUT THEINVENTION

[0008] As mentioned above, today's CPU chips do not use the transistors they contain efficiently. For example, a conventional CPU chip with a billion transistors allows software to execute only a few operations per clock cycle. Although this is highly inefficient, those of ordinary skill in the art design CPUs this way for reasons that are widely accepted as valid. For example, the design approach described here satisfied the requirements for software compatibility in the initial design, which is often an essential requirement. Furthermore, the design approach provides a very high degree of precision, typically using 32-bit or 64-bit integers for exact arithmetic, and 32-bit and 64-bit floating-point numbers for fairly accurate, widely standardized arithmetic. In many applications, this kind of precision is essential, and as a result, conventional CPUs are typically designed to provide this level of precision, using on the order of a million transistors to perform the calculations.

[0009] However, there are many economically important applications that are not sensitive to precision and where very large gains in application performance per transistor could be achieved -- and these gains are based on the ability to extract a significant fraction of the inherent computing power of a million transistors -- a capability that the current architectures used in general purpose computers simply cannot deliver.

[0010] Due to the weaknesses of traditional computers such as typical microprocessors, other kinds of computers have been developed to achieve higher performance. These machines include Single Instruction Stream / Multiple Data Stream (SIMD) designs, Multiple Instruction Stream / Multiple Data Stream (MIMD) designs, reconfigurable architectures such as Field Programmable Gate Arrays (FPGAs), and Graphics Processing Units (GPUs), which can be seen as Single Instruction Stream / Multiple Thread (SIMT) designs when applied to general purpose computers.

[0011] SIMD machines are designed to work with sequential programs that provide instructions to operate on collections of data. There are two main types of SIMD machines: vector processors and array processors. Vector processors stream data through a processing element (or a small collection of processing elements). Each component of the data stream is processed in the same way. Vector machines achieve this speed by eliminating many instruction fetch / decode operations (bringing instructions from memory / decoding instructions) and by continuously sending instructions to the processor (pipelining) so that the clock speed of the operation can be increased.

[0012] Array processors distribute data to a grid of processing elements (PEs). Each processing element has its own memory. Instructions are sent sequentially from a central controller to the processing elements. Each processing element (PE) executes the instructions on its local data (often with the option to "idle" during certain cycles). Array processors achieve high speed through efficient use of silicon; they use only one instruction fetch / decode unit to run many small and simple execution units in parallel.

[0013] Array processors have been built using fixed-point and floating-point arithmetic with a wide range of bit widths, e.g., 1, 4, 8 bits wide or even wider. Smaller bit widths allow smaller processing elements, and most processing elements can fit inside a computer, but traditional operations require many operations to be performed sequentially. Wider bit widths allow traditional operations to be completed in a single cycle. In fact, larger bit widths are desirable. Machines originally designed with small bit widths, such as the Connection Machine-1 and the Goodyear massively parallel processor, with 1-bit processing elements, have been developed with wider data paths to better support high-speed operations, resulting in machines such as the Connection Machine-2 with 32-bit floating-point hardware and the massively parallel MasPar, which is a successor to the Goodyear machine and uses 4-bit processing elements in the MasPar-1 and 32-bit processing elements in the MasPar-2.

[0014] Array processors are machines designed to provide an analog representation of numbers and use analog circuits to perform calculations. SCAMP is one such machine. These machines perform low-precision arithmetic, with errors of a few percent in the results of each operation performed on the machine. Also, these machines cannot repeat calculations, which introduces noise into the calculation process. Furthermore, these machines only handle a narrow range of values, for example, 8-bit fixed-point values, rather than offering the high dynamic range of 32- or 64-bit floating-point arithmetic. Because of these limitations, SCAMP is not intended as a general-purpose computer, but rather is designed and used for image processing and modeling of early biological visual processes. Such applications do not require a full range of arithmetic operations in hardware; for example, SCAMP omits common division and multiplication operations from its design.

[0015] In the 1980s, SIMD machines were popular, but as microprocessors improved in price / performance, designers began building machines made up of large collections of communicating microprocessors. MIMD machines are faster and have price / performance comparable to the component microprocessors, but the MIMD machines are not used in They are just as inefficient as their components in that they can only achieve a relatively low computational performance per transistor for the software they support.

[0016] Field Programmable Gate Arrays (FPGAs) are integrated circuits with a large grid of general-purpose digital elements, with reconfigurable wiring between them. These digital elements were originally single digital gates, such as "AND" and "OR" gates, but have since been developed into a large set of elements that can be programmed with Boolean functions, for example, a six-input, one-output map. This architecture allows FPGAs to perform a wide variety of digital calculations from external sources, allowing the device to be used as a co-processor to facilitate CPU calculations. However, integer and especially floating-point operations such as multiplication and division require many gates and consume a large portion of the FPGA's general-purpose resources. For this reason, modern FPGAs allocate a significant proportion of the FPGA's area to provide dozens or hundreds of multiplication blocks that can be used instead of the general-purpose resources for calculations that require multiplication. These multiplication blocks typically perform integer multiplications of 18 bits or more in width and use many transistors. These multiplication blocks are similar to the multiplication circuits that function as part of general-purpose CPUs.

[0017] Existing field programmable analog arrays (FPAAs) are similar to FPGAs, but the configurable elements of an FPAA perform analog processing. Typically, such devices are used to perform signal processing, such as those that aid in modeling neural circuits. FPAAs are relatively low precision, have relatively low dynamic range, and introduce noise during their calculations. FPAAs are not designed as or intended to be used as general purpose computers. For example, those of ordinary skill in the art have not viewed FPAAs as machines capable of executing the many complex algorithms that use floating point arithmetic used on high performance digital computers.

[0018] Finally, Graphic Processing Units (GPUs) are a variety of parallel processors developed to provide high-speed graphics capabilities for personal computers. GPUs provide standard floating-point computational capabilities that provide extremely high performance in certain tasks. The computational model of GPUs is based on thousands of nearly identical computational threads (SIMT). In that regard, it is performed by a collection of SIMD-like internal computational engines, each of which routes or redirects its results to perform tasks provided by slow external DRAM memory. Like other machines that perform standard floating-point computations, GPUs use many transistors for their computations. GPUs waste these transistors in the sense described above, just like general-purpose CPUs.

[0019] Some GPUs support 16-bit floating-point values ​​(often called "half" format). Current GPU manufacturers such as NVIDIA and AMD / ATI state that this capability is useful for rendering images with a higher dynamic range than the usual 32-bit RGBA format, which uses 8 bits of fixed-point data per color, and saves space versus using 32-bit floating-point data per color component. Industrial Light & Magic (ILM), a special effects film studio, has defined the same image uniquely in their OpenEXR standard. ILM states that the High Dynamic Range (HDR) image file format was developed by Industrial Light & Magic (ILM) for use in the field of computer imaging applications. Wikipedia (late 2008) states the following about 16-bit floating-point images: That is, "The format is used in several computer graphics environments, including OpenEXR, OpenGL, and D3DX. The advantage over 8-bit or 16-bit binary integer is an increased dynamic range that preserves more detail in highlights and shadows. The advantage over 32-bit single-precision binary formats is half the storage and half the bandwidth."

[0020] When a graphics processor supports 16-bit floating point, it also supports 32-bit floating point and even 64-bit floating point. That is, the 16-bit floating point format is supported for applications that require it, and higher precision formats are also supported because they are considered necessary for traditional graphics applications and so-called general-purpose GPU applications. Thus, existing GPUs devote substantial resources to 32-bit (and even 64-bit) operations, wasting transistors in the sense described above.

[0021] All of the above architectures are attempts to squeeze more performance out of silicon than is available in traditional processor designs. However, traditional processor designers have struggled with the need to use huge numbers of transistors to increase the performance of their machines, which are often necessary historically and economically to support large existing instruction sets, such as the Intel x86 instruction set. This is a difficult problem because of the law of diminishing returns: doubling the number of transistors does not double the performance. One aspect of these designers' struggles has been to increase the precision of arithmetic operations, since transistors are plentiful and if the processor could natively support long numbers (e.g. 64-bit numbers), it would provide a noticeable speedup in some applications. The increase in precision of fixed-point numbers from 8 bits to 16 bits to 32 bits to 64 bits, and of floating-point numbers from 32 bits to 64 bits and sometimes even 128 bits, has forced programmers to think in terms of high precision and develop algorithms under the assumption that computer processors will provide such precision, because precision is something that is bound to happen with every new generation of silicon chip.

[0022] Embodiments of the present invention provide efficient computational power through a fundamentally different approach than those described above. In particular, embodiments of the present invention relate to computer processors or other devices that use low precision, high dynamic range (LPHDR) processing elements to perform computations (e.g., arithmetic operations).

[0023] One type of LPHDR calculation has an accuracy of about 0.1%, which represents values ​​from parts per million to parts per million. If these values ​​are represented and manipulated by means of floating-point arithmetic, these numbers will have a binary mantissa of no more than 10 bits plus a sign bit, and a binary exponent of at least 5 bits plus a sign bit. However, the circuitry required to perform multiplication and division of such floating-point numbers is relatively large. An example of an alternative embodiment is to use a logarithmic representation of the floating-point numbers. In such an approach, the number of bits required to represent the floating-point numbers is the same, but multiplication and division are performed as addition and subtraction of the logarithmic representation, respectively. Addition and subtraction can be performed efficiently, as explained below. As a result, the area of ​​the arithmetic circuitry can be relatively small, and many computational elements can be placed in a given area on the silicon. This means that the machine can perform more operations per unit time or power. This means that the machine can take advantage of the computations that can be expressed within the LPHDR framework.

[0024] Another example is to use analog representations and processing mechanisms. Analog implementation of LPHDR operations has the potential to be superior to digital implementation because it seeks to exploit the inherent analog physical behavior of transistors or other physical devices, rather than only exploiting the digital portion of the device behavior. In this way, exploiting the entire inherent capabilities of the device allows for a smaller mechanism to be used to perform the LPHDR operations. In recent years, analog methods have been replaced by digital methods in the field of silicon circuit technology. This is because digital design is easier compared to analog design. Also, digital technology has been continuously expanding at a faster rate than analog technology (Moore's Law). Especially in the deep submicron region, analog transistors no longer work as well as their predecessors with larger dimensions. These recent changes in well-known behavior make analog design even more challenging. However, digital transistors are actually analog transistors used in a digital way, and digital circuits are actually designed to switch transistors between fully "ON" and fully "OFF" states. Digital technology continues to scale, but using transistors in this way will begin to face the reality of analog behavior. It is believed that the expansion of transistors in digital usage will either stall or that digital designers will need to recognize and deal with analog problems. For these reasons, digital implementations of LPHDR computations are no longer easy, reliable, and scalable, and analog implementations of LPHDR computations may become the dominant commercial architecture.

[0025] Because LPHDR processing elements are relatively small, a single processor or other device can accommodate a very large number of LPHDR processing elements and can operate in parallel with one another, thereby forming a massively parallel LPHDR processor or other device. Such processors or other devices have not been described or used by those of ordinary skill in the art as a means of performing general purpose computations. There are at least two reasons for this. First, it has been widely believed by those skilled in the art that LPHDR computations, especially large LPHDR computations, whether massively parallel or not, are impractical for circuit boards for moderately general purpose computations. Second, it has been widely believed by those skilled in the art that large amounts of high precision computations can be performed by compact computing processing units, and therefore it is not useful to perform large amounts of high precision computations on a single chip or machine without increasing the bandwidth between the processing elements inside the machine, the inputs to the machine, and the outside of the machine, because the computations are limited by the wiring and can be assumed to be inexpensive to perform.

[0026] Despite the notion that performing large amounts of computation on a single chip or massively parallel processing machine is not useful and that large amounts of LPHDR operations will actually produce bad results, the embodiments of the invention disclosed herein demonstrate that massively parallel LPHDR designs are in fact useful and can provide significant practical advantages in at least some applications.

[0027] In conclusion, modern digital computing systems can provide high precision arithmetic, but this precision comes at a high cost: a modern double precision floating point multiplier requires on the order of a million transistors, whereas a lower precision multiplication requires only a few transistors to perform. Despite the widespread belief among those skilled in the art that modern applications require high precision processing, in reality, certain useful algorithms work adequately with much lower precision. As a result, such algorithms can be executed by a processor or other device incorporating embodiments of the present invention, and this brings us closer to the goal of using only a few transistors for multiplication and wire contacts for addition. Furthermore, this allows for massively parallel computations with a relatively small amount of physical resources (such as a single silicon chip). It is not self-evident, and in fact has been viewed as a clear misconception by those skilled in the art, that while some specialized tasks can function with lower precision, relatively general-purpose calculations such as those typically performed today on general-purpose computers can be performed with lower precision. However, in practice, certain useful and important algorithms can function adequately with less than 32-bit precision in the framework of massively parallel computing. And, certain embodiments of the present invention support such algorithms and therefore make efficient use of transistors, resulting in improved speed, power consumption, and / or cost compared to conventional computers.

[0028] In the following, various computing devices to which embodiments of the present invention may be applied are described. Some of the embodiments described herein are illustrative of SIMD computer architectures, MIMD architectures, programmable array architectures (FPGAs and FPAAs), and other similar architectures. (e.g., a GPU / SIMT architecture) or other architectures may also be used. The techniques disclosed herein may be implemented, for example, using a processor or other device with an existing architecture as described above, by replacing or augmenting certain or all of the existing computational units contained within the processor or other device with an LPHDR computational unit used in any of the methods disclosed herein. However, a device implemented in accordance with an embodiment of the present invention need not necessarily start off using an existing processor design, but rather may be designed from scratch to include an LPHDR arithmetic unit within the architecture just described or any other architecture.

[0029] For example, embodiments of the invention may be implemented using array processor architectures, which are specialized SIMD computers. There are many types and special types of array processors disclosed in the scientific and commercial literature, including, by way of example, the Illiac 4, Connection Machine 1 and 2, Goodyear MPP, and MasPar computers.

[0030] However, embodiments of the invention need not necessarily be implemented as SIMD computers. For example, embodiments of the invention may be implemented as FPGAs, FPAAs, or related architectures that provide flexible connectivity to a collection of processing elements. For example, embodiments of the invention may be implemented as GPUs / SIMTs, MIMDs, and others. For example, embodiments of the invention may be implemented as any type of machine that uses LPHDR processing elements to perform computations using fewer resources (transistor count and volume) than traditional architectures. Furthermore, the term "processing element" as referred to in embodiments of the invention should be interpreted more generally as any type of computational execution unit, whether or not it performs LPHDR processing.

[0031] An example of a SIMD computing system 100 is shown in Figure 1. The computing system includes a collection of multiple processing elements (PEs) 104. The computing system often includes a control unit (CU) 106, an I / O unit (IOU) 108, various peripheral devices 110, and a host computer 102. The collection of processing elements (PEs) 104 may be a two-dimensional arrangement, an array, a grid, or any other particular Although not necessarily depicted in the layout, this is referred to herein as a "Processing Element Array" (PEA) 104. Some machines include additional components, such as an additional memory system called "staging memory" in the Goodyear MPP. However, such additional components are not essential to the computer, nor are they necessary to understand embodiments of the present invention. Therefore, for clarity of illustration, such additional components are omitted herein. One embodiment of the present invention is a SIMD computing system as shown in FIG. 1, in which, as used herein, one or more (e.g., all) of the PEs in a processing element array (PEA) 104 are LPHDR processing elements.

[0032] The host computer 102 is responsible for the overall control of the computing system 100. The host computer 102 is a conventional uniprocessor that performs serial (or mostly serial) operations. Of course, the host computer 102 can have a more complex architecture that includes various types of parallel processing. In fact, heterogeneous computing systems that combine multiple computing architectures in a single machine are preferred implementations of the present invention.

[0033] The purpose of the host computer 102 is to have the processing element array (PEA) 104 perform large amounts of computation in a useful manner. The host computer 102 performs large amounts of computation by having the PEs perform calculations in parallel with each other, typically on data stored locally in each PE. For example, when there are many PEs, a large number of calculations are performed per unit of time.

[0034] The PEs in the Processing Element Array (PEA) 104 are able to roughly perform individual calculations at a similar rate to the calculations performed by the host computer 102. This means that it would be inefficient for the host computer 102 to try to control the Processing Element Array (PEA) 104 at a time scale as fine as the minimum time step of the host computer 102 or the Processing Element Array (PEA) 104. (This minimum time step corresponds to the clock period in traditional digital designs.) For this reason, a specialized Control Unit (CU) 106 may be included in the architecture. The main task of the Control Unit (CU) 106 is to retrieve and decode instructions from the instruction memory, which is conceptually its role, and dispatch partially decoded instructions to all the PEs in the Processing Element Array (PEA) 104. (This may be observed by the Control Unit (CU) 106 software as a nearly simultaneous event for all PEs, and it need not be literally synchronous. In fact, it is efficient to have a synchronous design where multiple instructions are propagated to different stages of execution at the same time, like a wavefront propagating across the Processing Element Array (PEA) 104.)

[0035] In designs that include a control unit (CU) 106, the host computer 102 typically loads instructions (programs) for the processing element arrays (PEAs) 104 into a control unit instruction memory (not shown in FIG. 1 ). The control unit (CU) 106 then decodes the programs and causes the processing element arrays (PEAs) 104 to perform the computations described in the programs. For example, the programs may resemble typical machine language programs, with other instructions for moving data within and between PEs, performing logical operations, arithmetic operations, and the like, along with control flow operations within the control unit (CU) 106. Thus, the control unit (CU) 106 is capable of executing typical types of programs, but also has the ability to generate massively parallel processing instructions for the processing element arrays (PEAs) 104.

[0036] To transfer data into and out of the control unit (CU) 106 and the processing element array (PEA) 104, an I / O unit (IOU) 108 may interface between the control unit (CU) 106 and the processing element array (PEA) 104 and the host computer 102, the host computer memory (not shown in FIG. 1), external storage (e.g., disk drives), a display device for visualizing the results of the calculations, or a special high bandwidth input device (e.g., a vision sensor). The ability of the processing element array (PEA) 104 to process data much faster than the host computer 102 may be useful to the I / O unit (IOU) 108 so that some portion of the data transfer can be performed bypassing the host computer 102. Additionally, the host computer 102 may have its own path for communicating with the peripheral devices 110.

[0037] 1 is provided for illustrative purposes only and is not intended to be limiting of the present invention. For example, the functions performed by the control unit (CU) 106 may alternatively be performed by the host computer 102 without the control unit (CU) 106. The control unit (CU) 106 may be implemented as separate hardware (e.g., off-chip hardware) from the processing element array (PEA) 104, or the control unit (CU) 106 may be located near the processing element array (PEA) 104 (e.g., on the same chip). The I / O can be routed via a control unit (CU) 106 without the I / O unit (IOU) 108, or can be routed via a separately provided I / O unit (IOU) 108 as shown in the figure. Furthermore, the host computer 102 is optional, and for example, the control unit (CU) 106 may be equipped with a CPU, or may have a function that can replace the functions that can be executed by the host computer 102. The peripheral device 110 shown in Figure 1 is optional. The design shown in Figure 1 may include special memory, such as the "staging memory" in the Goodyear MPP, that provides an intermediate level of local storage. For example, such memory may be connected to an LPHDR chip using 3D fabrication techniques to provide relatively fast parallel access to the memory from the processing elements (PEs) of a processing element array (PEA) 104.

[0038] In addition to the processing element array (PEA) 104 being able to communicate with the control unit (CU) 106, the I / O unit (IOU) 108, or other possible mechanisms, the processing element array (PEA) 104 itself has the means to move data within the array. For example, the processing element array (PEA) 104 can be driven to move data only from the processing elements (PEs) to their nearest neighbors, i.e., there is no longer any distance for data transfer. Figures 2 and 3 show an embodiment of the present invention that employs the approach described above. In this case, the nearest neighbors are the four adjacent processing elements (PEs), the north, east, west, and south processing elements (PEs), referred to as the NEWS design. For example, FIG. 2 illustrates a subset of processing elements (PEs) in processing element array (PEA) 104, namely PE 202, PE 204, PE 206, PE 208, and PE 210. When control unit (CU) 106 issues a data movement command, all processing elements (PEs) access data from or send data to their closest neighbors. For example, all processing elements (PEs) access a particular data value in their neighboring processing element (PE) and copy it into their local storage. In some embodiments, such as analog processing embodiments, this type of data movement may result in degradation of the copied value.

[0039] 3 shows a processing element (PE) 302 with data connections to an I / O unit (IOU) 108. Processing element (PE) 302 is connected to processing element (PE) 304 on the north side, processing element (PE) 306 on the east side, processing element (PE) 308 on the south side, and processing element (PE) 310 on the west side. However, the drive signals going from inside the processing element array (PEA) 104 to the I / O unit (IOU) 108 usually require a physically larger drive circuit or analog mechanism. Providing such a connection for every processing element (PE) would use up a large portion of the available resources (such as VLSI area) of the hardware implementation. Furthermore, providing a separate connection from every processing element (PE) to the I / O unit (IOU) 108 would mean having many connections and long connections, which would also use up a large portion of the available resources. For this reason, connections between the processing elements (PEs) and the I / O unit (IOU) 108 may be limited to the processing elements (PEs) at the edge of the processing element array (PEA) 104. In this case, to get data from and send data to the processing element array (PEA) 104, data is read and written at the processing elements (PEs) at the edge of the processing element array (PEA) 104, and instructions from the control unit (CU) 106 are executed to move data between the processing elements (PEs) at the edge of the processing element array (PEA) 104 and the processing elements (PEs) inside the processing element array (PEA) 104. In such a design, a direct connection is used to send data from the I / O unit (IOU) 108 to any processing element (PE) inside the processing element array (PEA) 104, but the control unit (CU) 106 may be used to read data to send it to a processing element (PE) at the edge of the processing element array (PEA) 104 where it can be read by the I / O unit (IOU) 108.

[0040] There are similar variations in the connections between the Control Unit (CU) 106 and the Processing Element Array (PEA) 104. Some designs may have the ability to deliver instructions to all Processing Elements (PEs) at approximately the same time, while other approaches have instructions gradually propagate (e.g., staggered by discrete time steps) across the Processing Element Array (PEA) 104 until the instructions reach the Processing Elements (PEs). In certain SIMD designs implemented in accordance with embodiments of the invention, the OR or AND state of each Processing Element (PE) in the Processing Element Array (PE) 104 is updated by the Control Unit (CU) 106 with a delay of approximately one instruction time. The facility is equipped with equipment that can read the information.

[0041] There are many well-researched papers on this topic, some of which are incorporated in the embodiments of the present invention. For example, an interconnect such as an 8-way local interconnect can be used. The local interconnect can have a variety of distance hops, such as distance 1, distance 4, distance 16, etc. At the outer edge, the interconnects can be connected using topologies such as a torus or twisted torus. Instead of or in addition to the local interconnect, more complex global interconnects such as a hypercube design can be used. Furthermore, the processing element arrays (PEAs) 104 (e.g., chips) can be physically implemented by replicating (e.g., laying them out on a circuit board) to create larger processing element arrays (PEAs) 104. The components of the PEAs do not necessarily need to be arranged in a grid, but they can be replicated to form simple grids or other arrangements.

[0042] FIG. 4 shows an example design of a processing element (PE) 400, which performs one or more of the functions of the processing elements (PEs) in the processing element array (PEA) 104. The processing element (PE) 400 stores local data. The amount of storage for this local data varies significantly from design to design. It is highly dependent on the implementation technology available to manufacture the processing element (PE) 400. Values ​​that change rarely (constants) require less space than values ​​that change frequently (registers). Some designs provide more constants than registers. For example, digital implementations use single transistor cells for the constants (e.g., floating gate flash memory cells) and multiple transistor cells for the registers (e.g., 6-transistor SRAM cells). In analog implementations, the situation is often reversed. In this case, sufficient area for capacitance is required to ensure the long-term stability of the constants. Such embodiments may include more registers than constants. Typically, the register and constant storage capacity of each processing element (PE) may be tens or hundreds of calculation values, although these storage capacities can be adjusted by the designer. For example, some designs may include register storage but no constant storage, and some designs may store many thousands or more values ​​in each processing element (PE). All of these variations are contemplated by the embodiments of the present invention.

[0043] Each processing element (PE) needs to process its local data, so within processing element (PE) 400 there are data paths 402a-i, routing mechanisms (such as multiplexer MUX 404), and components for collecting the results of logical and arithmetic operations (such as logic unit 406 and LPHDR arithmetic unit 408). LPHDR arithmetic unit 408 performs LPHDR arithmetic operations, as that term is used herein. The inputs, outputs, and intermediate values ​​received by, output from, and processed by the processing element (PE) 400 may take the form of, for example, electrical signals representing numerical values.

[0044] The processing elements (PEs) 400 may also have one or more flag bits, shown as masks 410 in FIG. 4. The purpose of the masks 410 is to enable some processing elements (PEs) to ignore instructions issued by the control unit (CU) 106 when a particular mask bit is set in the processing elements (PEs). In this way, it is possible to create variations of the normal lock-step operation of all the processing elements (PEs) in the processing element array (PEA) 104. For example, the control unit (CU) 106 may issue instructions to each processing element (PE) to reset or set its mask 410 depending on whether a particular register in the processing element (PE) is positive or negative. Subsequent instructions, such as arithmetic instructions, may have a bit that indicates that the instruction should only be executed by the processing elements (PEs) for which the mask 410 is reset. The combination has the effect of conditionally executing an arithmetic instruction in each Processing Element (PE) depending on whether a particular register within that PE is negative. As with compare instructions in traditional computers, there are many design choices for the mechanism to set and clear the mask.

[0045] The processing in the processing elements (PEs) is controlled by control signals 412a-d received from the control unit (CU) 106. Although four control signals are shown in FIG. 4, they are merely exemplary and are not meant to be limiting. Although the details of this mechanism are not shown, the control signals 412a-d specify which register memory values ​​or constant memory values ​​in the processing element (PE) 400 should be sent to the data path or to adjacent processing elements (PEs). Such processing is then performed by the logic unit 406, the arithmetic unit 408, or other processing mechanisms, and the results are stored in registers. The control signals 412a-d specify how to set and reset, and use the mask 410, etc. These are described in detail in the SIMD processor literature.

[0046] There are many possible variations in the design of the PE 400 and the PEA 104, all of which are within the scope of the present invention. For digital PEs, this can include shifters, look-up tables, and many other mechanisms as described in the above references. For analog PEs, this can include time-based operators, filters, comparators with global broadcast signals, and many other mechanisms as described in the above references. The PEA 104 can include global mechanisms such as OR or AND connections for digital PEs, and SUM connections for analog PEs. Again, many variations are detailed in the literature on digital and analog computer architectures.

[0047] For example, LPHDR operations other than addition and / or multiplication may be supported. For example, a machine that can only perform multiplication and the function (1-X) may be used to approximate addition and other arithmetic operations. A collection of LPHDR operations may be used to approximate LPHDR arithmetic operations such as addition, multiplication, subtraction, and division, using techniques well known to those of ordinary skill in the art.

[0048] One aspect of a unique embodiment of the present invention is the inclusion of an LPHDR computation mechanism within the Processing Elements (PEs), an embodiment of which is described below.

[0049] In one digital embodiment of the LPHDR arithmetic unit 408, digital (binary) representations of numbers are processed. In one digital embodiment, these numbers are represented logarithmically. Such a representation is called the logarithmic system (LNS) and is well known to those skilled in the art.

[0050] In the logarithmic system (LNS), a number is represented by a sign and an exponent. In the logarithmic system (LNS), there is an implicit base for the logarithm, which is typically 2 when implemented by digital hardware. In this embodiment, the base of 2 is used as an example. As a result, the number B is represented by the sign and the logarithm of base 2, and the number b is represented as its absolute value. For numbers with a representation error of at most 1%, the fractional part that can change is represented with enough precision to correspond to about a 1% change in the number B. If a fraction is represented using 6 bits, increasing or decreasing its fractional part by 1 corresponds to multiplying or dividing the number B by the 64th root of 2 (which has a value of approximately 1.011). This means that in this embodiment, a number can be represented with a multiplicative error of about 1%. Therefore, in this embodiment, 6 bits are allocated to represent the fractional part.

[0051] Furthermore, the domain of values ​​processed in this embodiment has a high dynamic range. To represent absolute values ​​from one billionth to another billion, the integer part of the logarithm must be long enough to represent positive and negative numbers with the lowest value of 2 billion. The logarithm is approximately 29.9. In this embodiment, the integer part of the logarithmic representation is 5 bits long, which is sufficient to represent numbers from 0 to 31. An additional sign bit for the exponent is required. Negative logarithms are represented using two's complement representation.

[0052] In the logarithmic system (LNS), the value of 0 is negative infinity. To accurately represent this special value, one can choose the representation. However, to minimize the resources used by the computing circuitry (e.g., to minimize area), in this embodiment, 0 is represented by the most negative number, −32, which corresponds to the two's complement bit representation, “100000 000000”, meaning a value of approximately 2.33E-10.

[0053] When performing calculations, situations may arise where the process is unable to derive a reasonable value. For example, when multiplying or adding two very large numbers, or when dividing by zero (or a number close to zero), the number may be too large to be represented in the chosen word format. A common approach to solving such problems is to mark the resulting value as "Not A Number (NAN)" and check whether a problem has occurred during the process that resulted in a "NAN" or if one of the inputs is not a "NAN". In this embodiment, the approach taken is as explained below.

[0054] FIG. 5 shows a word format 500 for expressing a numerical value used in this embodiment. The word format 500 has one NAN bit 502a, one bit 502b for giving the sign of the value, and 12 bits 502c-e for expressing the logarithm. The bits for expressing the logarithm have a 5-bit integer part 502d and a 6-bit fractional part 502e. To be able to express negative logarithms, the bits for expressing the logarithm have a logarithm sign bit 502c, which is expressed in two's complement format. The NAN bit 502a is set when there is a problem with the calculated value. The word format 500 shown in FIG. 5 is merely an example and does not limit the scope of the present invention. Other variations than those described here can be used as long as they have low precision and high dynamic range.

[0055] FIG. 6 shows an example of a digital LPHDR calculation unit 408 corresponding to the representation shown in FIG. 5. The LPHDR calculation unit 408 receives two inputs A 602a and B 602b and outputs one output 602c. The inputs 602a-b and the output 602c can be in the form of electrical signals representing numerical values, for example, according to the representation shown in FIG. 5. The inputs 602a-b and the output 602c are real signals transmitted within the LPHDR calculation unit 408 by the components of the LPHDR calculation unit 408. Each of the inputs 602a-b and the output 602c consists of a numerical bit and a NAN bit. The LPHDR calculation unit 408 is controlled by control signals 412a-d sent from the control unit (CU) 106. The control signals 412a-d determine which calculation operation should be performed on the inputs 602a-b. In this embodiment, all applicable arithmetic operations are performed in parallel on inputs 602a-b by adder / subtractor 604, multiplier 606, and divider 608. Adder / subtractor 604 performs LPHDR additions and subtractions, multiplier 606 performs LPHDR multiplications, and divider 608 performs LPHDR divisions.

[0056] The desired result is selected (from the outputs of adder / subtractor 604, multiplier 606, and divider 608) by multiplexers (MUXes) 610a and 610b. The right-hand MUX 610b passes the desired value to output 602c. The left-hand MUX 610a passes the NAN bit resulting from the desired operation to an OR gate 612 which sets its output to NAN if any of the inputs are NAN or if a NAN occurs during the particular operation. The literature on computer architecture discusses many variations that could be incorporated into the embodiment shown in FIG.

[0057] Logarithmic system (LNS) arithmetic has the enormous advantage that multiplication (MUL) and division (DIV) are very easy and do not use many physical resources (small silicon area). The sign of the result is the exclusive OR of the signs of the operands. The logarithmic part of the output is the sum of the logarithmic parts of the operands in the case of multiplication (MUL) and the difference of the logarithmic parts of the operands in the case of division (DIV). The sum and difference of logarithms can overflow, resulting in NAN. Other operations are also easier in the logarithmic system (LNS). For example, taking a square root corresponds to dividing the logarithm by 1 / 2, which is simply a shift of one bit to the right in the representation mentioned above.

[0058] Thus, multiplier 606 and divider 608 in Figure 6 will be implemented as circuits that simply add and subtract inputs that are binary complements (which happen to be logarithmic), and if the number overflows, they will output 1 as NAN.

[0059] Performing addition and subtraction in the logarithmic system (LNS), i.e., adder / subtractor 604 in FIG. 6, follows a common approach used in the logarithmic system (LNS) literature. Consider an addition. Consider two positive numbers B and C, represented by logarithms b and c, and the sum of B and C is represented by log(B+C). The approach to calculating this result is well known to those skilled in the art and is based on the following notation: Log(B+C)=log(B*(1+C / B))=log(B)+log(1+C / B)=b+F(cb) where F(x)=log(1+2^x) Thus, in this embodiment, using standard digital techniques well known to those skilled in the art, cb is calculated, substituted into F, and the result is added to b.

[0060] Much of the published literature on logarithmic systems (LNS) is concerned with how to compute F(x), a special function for addition (ADD), and a similar function for subtraction (SUB). These two functions often share circuitry, and this is why a single combined adder / subtractor 604 is used in the embodiment shown in FIG. 6. There is a lot of published literature that describes how to compute or approximate these functions, and how to handle low precision values. Any of these or other techniques can be used. In general terms, a more suitable approach to perform massively parallel LPHDR computations would minimize the use of resources such as circuit area, and take advantage of the fact that the representation used in the embodiment shown in FIG. 6 is a low precision one, and the computations performed therein do not need to be deterministic, or to return the most accurate answer in the low precision representation. Thus, the embodiment of the present invention can use a circuit that does not compute the best answer, but can be selected from a limited selection of options that are applicable in the low precision representation.

[0061] To allow for conditional processing of selected processing elements (PEs), the present embodiment allows for the resetting and setting of mask flags 410 based on the results of a calculation. The mechanism for accomplishing this is by control unit (CU) 106 issuing instructions to reset and set flags in mask 410 in each processing element (PE) along with instructions to perform basic tests on the values ​​coming into mask 410 on data path 402f, which set the flags. Examples of instructions discussed below include instructions to copy the sign bit or NAN bit of the data coming into mask bit 410 on data path 402f. Another example would be to set mask bit 410 if the 12-bit numeric portion of the data on data path 402f is equal to binary zero. There are many additional and alternative ways of performing the above operations that are similar to the compare instructions in conventional processors and are well known to those skilled in the art.

[0062] While the LPHDR operation is performed in a trivial manner using the LNS operations described above, the programmer may consider converting selected numbers to 12-bit binary complement numbers. Multiplication (MUL) and division (DIV) can be used to add and subtract such numbers for accuracy reasons when performing LNS operations. A set mask instruction can compare these simple binary numbers. Thus, in addition to performing LPHDR calculations, this digital embodiment using the LNS can perform simple binary arithmetic on short signed integers.

[0063] Some embodiments of the present invention may provide analog representations and analog processing schemes. Such embodiments may represent LPHDR values, for example, as charge, current, voltage, frequency, pulse width, pulse density, various forms of spikes, or other forms not characteristic of traditional digital implementations. Such representation schemes, as well as mechanisms for processing the values ​​so represented, are well documented. Such schemes, referred to as analog schemes, may be used to perform LPHDR operations on a wide range of architectures, such as the SIMD, as one example, discussed herein.

[0064] An example of an analog SIMD architecture is Dudek's SCAMP design (and related designs), where numbers have low dynamic range and are accurate to within 1%. The numbers are represented by the charge on a capacitor. These capacitors are typically the gates of transistors. Each processing element (PE) contains several memory cells similar to the registers shown in Figure 4. Addition is performed by turning on the pass transistors from the two operands, which transfer their charge to an analog bus, where they are summed by the natural physics of charge and wiring, and then opened to charge the capacitors of another register, which then displays the sum of the operands. The detailed mechanism disclosed by Dudek actually produces a negative sum, but the basic concept is as described here, with an analog display and a simple processing mechanism to perform addition and subtraction in a simple way.

[0065] Variations of the SCAMP design architecture have been produced and used to perform low-precision, low-dynamic-range operations in fields related to image processing. The SCAMP design architecture does not perform high-dynamic-range operations, nor does it provide a mechanism for multiplying or dividing values ​​stored in registers. However, the Dudek design architecture suggests the possibility of building analog SIMD machines. The following describes one embodiment of the present invention, a method for building an analog SIMD machine that performs LPHDR operations.

[0066] In one embodiment of the invention, numbers are represented as a hybrid combination of analog and digital forms. In this embodiment, numbers are represented as low precision, normalized, floating point numbers with a decimal point of 2, where the mantissa is the analog value and the exponent is the binary digital value. The analog value is accurate to about 1%, and is based on the Dudek approach, so the accuracy is well within the reasonable limits of analog processing techniques. The exponent may be 6 bits long, or as long as necessary to provide the required high dynamic range.

[0067] To multiply the numbers, this embodiment is carried out by analogy to conventional floating point. The digital exponents are summed using standard digital techniques, binary arithmetic adders. The analog mantissas are multiplied. As they represent normalized numbers between approximately 1 / 2 and 1, their product is a small number, approximately 1 / 4. The value of such a product must be renormalized to the range 1 / 2 to 1. In this embodiment, this is done by using a threshold circuit to compare the analog mantissa with an analog representation of 1 / 2. If the analog mantissa is below 1 / 2, the mantissa is doubled and 1 is subtracted from the digital exponent. This subtraction is then a simple digital subtraction. Doubling the analog mantissa is carried out in a manner that corresponds to the selected analog representation. For example, whatever means are used to add two analog values ​​can be used to double the mantissa by adding a copy of the mantissa to the mantissa. For example, if the analog mantissa is represented as a current, a copy can be made using a current mirror or other suitable mechanism, and the summation can be performed by providing a current summing junction.

[0068] The means of multiplying the original analog mantissa depends on the representation chosen. For example, if the analog mantissa is represented by charge, according to SCAMP, methods known in the literature can be used to convert the charge to a current. For example, the charge of a capacitor will determine the voltage of the capacitor, so the conversion of the charge to a current can be performed as a voltage to current conversion, and this technique is a basic technique known to those skilled in the art of analog electronics. In either case, if the analog mantissa is represented as a current or the mantissa has once been converted to a current, the multiplication of the mantissa can be performed using, for example, the Gilbert technique. The Gilbert multiplier creates a current representing the product, which can be converted back to a charge (or whatever representation is used) if necessary. The above is merely an example to show how the process needs to be performed. The literature has extensively discussed this subject, and analog circuits of this type are well known to those skilled in the art.

[0069] Adding and subtracting numbers requires that they be pre-normalized to have the same exponent, as is done in conventional digital floating point arithmetic. In this embodiment, normalization is performed by comparing the exponents and choosing the one with the smaller exponent. The smaller exponent is subtracted from the larger exponent using digital means. This difference determines how many times the mantissa of the number with the smaller exponent needs to be divided by 2. If the mantissa is represented as a current (or converted to a current), an analog R-2R style ladder can be used to divide the current by 2 as many times as necessary, corresponding to the number of ladder ranks determined by the difference in the exponents calculated as above. To produce the output mantissa, the resulting scaled down current is added (or subtracted, if this is an LPHDR subtraction operation) to the current corresponding to the mantissa of the number with the larger exponent. The output exponent corresponding to the output mantissa is the larger exponent. At this point, post-normalization is required. If the output mantissa is greater than 1, it must be divided by 1 / 2 and the output exponent must be incremented by 1. If the output mantissa is less than 1 / 2, it must be multiplied by 2 the necessary number of times until it exceeds 1 / 2. The output exponent must then be decremented by the corresponding number of times. This is accomplished by a series of threshold, doubling and decrement circuits. Incrementing and decrementing the exponent in binary digital form, and the corresponding doubling and halving of the current in the analog form, are simple processes well known to those skilled in the art.

[0070] In this embodiment, the exponent is represented as a binary number in digital form. In another embodiment, the exponent can be represented as an analog value. However, it is particularly important that the exponent be represented in such a way that it does not introduce noise or error that would cause fluctuations in the numerical value representing the exponent when stored and calculated. Such fluctuations in the exponent would result in a factor of two variations in the value of the stored number. In one embodiment, to maintain the precision of the exponent, the exponent can be quantized to a relatively small level, for example, 16 bits plus a sign bit. During processing, any slight fluctuations that occur in the analog representation of the exponent can be removed by circuitry that re-stores the number to a standardized quantization level of 16 bits. In such an embodiment, to obtain sufficient dynamic range, floating-point numbers may be processed as low-4 numbers rather than the usual low-2 numbers. For example, this means that the normalized mantissa ranges from 1 / 4 to 1. The addition, subtraction, and multiplication operations described herein will result in small but simple fluctuations.

[0071] The analog mixed signal embodiment described above is merely illustrative and is not intended to constitute a limitation of the present invention. The literature on neuromorphic analog mixed signal techniques is very rich in storage and processing techniques that can be implemented in LPHDR calculations. Such storage and processing introduces noise as well as assembly errors into the operation of the machine that performs the LPHDR calculation. Although the results obtained in the implementation of the software application using the "fp+noise" calculation, as described below, are of a very "non-digital" quality, machines constructed in this way are surprisingly useful.

[0072] The following provides evidence that the LPHDR algorithm is effective in practice for several important computing applications. Evidence exists for a wide variety of embodiments of the invention, but this effectiveness does not depend on the details of the implementation.

[0073] For the purpose of illustrating the effectiveness of the LPHDR computation, a very general example of an LPHDR machine is chosen. A model of such a machine would provide at least the following capabilities: (1) massive parallelism, (2) the ability to provide potentially noisy LPHDR computations, (3) a small amount of local memory for each computation unit, (4) a two-dimensional physical arrangement of computation / storage units with only local connections between units (connections that are not powerful, flexible, or sophisticated connection mechanisms), and (5) limited bandwidth between the machine and the host machine. It should be noted that this model is merely illustrative to demonstrate the effectiveness of variations of the present invention and is not intended to limit the present invention. This model is particularly applicable to architectures that run in digital, analog, or hybrid formats, with zero or no noise, such as FPGA, SIMD, and MIMD, and architectures that fit the model's assumptions. Common architectures such as shared memory designs, GPU-like designs, and other sophisticated designs incorporate the capabilities of this model, making LPHDR operations more useful using these architectures. Here, we show that LPHDR operations are valid for a wide range of designs, with SIMD being one example for the following discussion, and each unit is referred to as a "processing element" or "PE." Each unit combines memory and operations.

[0074] Several applications are described below. For each application, we argue that (1) the results are valid when the calculations are performed in LPHDR arithmetic, which may generate noise, and (2) the calculations are organized in a two-dimensional physical layout with only local data exchange between each unit, limited to the memory in each unit, and limited to data exchange with the host machine, resulting in efficient use of machine resources (area, time, power). The first requirement is about "accuracy," and the second requirement is about "efficiency." Applications that satisfy these two requirements and run on this model are expected to function adequately on many types of LPHDR machines, and therefore such machines of the present invention can be used effectively in a wide range of applications.

[0075] The application was tested by running two machine embodiments. The first embodiment performs exact floating point arithmetic, but multiplies the result of each operation by a uniformly selected random number between 0.99 and 1.01. In the following discussion, this embodiment will be denoted as "fp+noise". This embodiment represents the results calculated by the machine in the analog embodiment.

[0076] The second embodiment uses logarithmic arithmetic with the numbers in the format shown in FIG. 5. The arithmetic is repeatable, i.e., noise-free, but the small size of the fractional part results in an error of up to about 1-2% at each step. In the following discussion, this embodiment will be denoted as "lns." This embodiment specifically represents the results calculated by the machine according to the digital embodiment.

[0077] To demonstrate the usefulness of the embodiments of the present invention, three computational tasks that can be performed by the embodiments of the present invention and can have a variety of practical applications will be discussed. Two of the tasks are related to nearest neighbor search, and the remaining one is related to processing visual information. Below, the tasks are described, their practical applications are described, and then it is demonstrated that each task can be computed using the general model described above and can be computed by applying the embodiments of the present invention. Application 1: Nearest Neighbor Search

[0078] We are given a large set of vectors, which we'll call "Examples". Let's call one of the vectors "Test". The task of nearest neighbor search (called "NN") is to find the "Example" that is closest to "Test", where the metric distance is the squared Euclidean distance (the sum of the squared distances between each component).

[0079] Neural networks are useful and widely used computations. One application is in the field of data compression, where it is called "vector quantization". In this application, we prepare a set of relatively long vectors in a "code book" that are associated with short "code words" (these are the Examples). We walk through the set of vectors to be compressed, and for each Test vector, we find the closest vector in the code book and output the corresponding code word. This reduces the set of vectors to a short sequence of code words. Since the code words do not completely specify the original set of vectors, this is a lossy form of data compression. Other applications include audio compression and the MPEG standard.

[0080] Another application of NNs is to determine whether video fragmentation occurs in a large video database. Here, images from a video fragment are summarized into feature vectors using known techniques such as color histograms and scale-invariant feature extraction. Here, Examples are similar feature vectors extracted from the video database. We want to know if any vector from the video fragment was close to any vector from the video database, and NNs are useful in making such decisions.

[0081] In many applications of nearest neighbor searching, it is preferable to find the true nearest neighbor, but it is acceptable if most of the time you find the true nearest neighbor, and occasionally find another neighbor that is slightly further away. Thus, approximate solutions to the nearest neighbor problem are also useful, especially if they can be computed particularly quickly, or with low power, or have some other advantage over obtaining an exact solution.

[0082] In the following, we show that it is possible to apply an embodiment of the present invention to find approximate nearest neighbors in a way that satisfies the criteria for "accuracy" and "efficiency".

[0083] algorithm The following describes an algorithm that may be executed by a machine implemented according to an embodiment of the present invention, and is executed by executable software that includes instructions for carrying out the algorithm. The input to the algorithm is a set of Examples and a Test vector. The algorithm then finds the Example that is closest (or nearly closest) to Test.

[0084] In the simplest version of the algorithm, the number of Examples does not exceed the number of processing elements (PEs), and each vector must be small enough to fit into the memory of a single processing element (PE). Examples are placed in the memory of the processing elements (PEs), with one Example in each processing element (PE). When a Test is given, it is passed through all processing elements (PEs) in order. As the Test is passed through the processing elements (PEs), it is known which processing element (PE) (and therefore which Example) is the closest Example, and the distance from the Test to the closest Example is known. Each processing element (PE) calculates the distance between the Test and the Example stored in its memory, and either forwards the Test together with the distance and an indicator passed into the PE (if the distance calculated by the PE exceeds the distance passed into the PE), or forwards the Test together with the distance calculated by the PE, along with an indication that the Example in this PE is the closest (if the distance calculated by the PE is less than the distance passed into the PE). Thus, the algorithm results in simple, minimized processing as Test is passed through a set of processing elements (PEs). When Test and associated information leave the last PE, the output includes an indication of which PE (and therefore which Example) is closest to Test, along with the distance between the Example and Test.

[0085] In a more efficient variant of this algorithm, Test is forwarded first, for example from the top row, and an efficient search is performed in parallel with the other columns, sending Test and related information downwards to all of the columns. Then, once the information reaches the bottom of the columns, it calculates the minimum distance of Example for all columns being processed, as far as the information propagates across the bottom of the columns. This means that the time required to process Test is proportional (highly dependent) to the number of processing elements (PEs) in the rows and columns.

[0086] An enhancement to this algorithm is done as described above, but the enhanced algorithm computes and communicates information indicative of both the nearest and second nearest Example found. As this information leaves the array of Processing Elements (PEs), the digital processor managing the PE array computes (with high precision) the distance between Test and the two Examples represented by the PE array, and the closest of the two is output as it appears to be the closest neighbor of Test.

[0087] accuracy We describe the operations performed by the enhanced algorithm coded in C as described above, which calculates the nearest neighbors as described above, along with a weighted score as described below.

[0088] The C code performs the same set of operations, in the same order, as performed in the actual implementation of the invention, as implemented in hardware, and thus produces the same results as the enhanced algorithm produces in the implementation of the invention. (The section discussing "Efficiency" explains how the algorithm is organized to perform efficiently in this implementation.)

[0089] In particular, when calculating the distance between Test and each Example, the calculation required to calculate the sum of the squares of the distances between the vector components of Test and Example can result in a long sum of numbers, so the C code uses Kahan's method, as described below.

[0090] This C code contains several implementations for the calculations, as described above. If compiled with "#define fp", the calculations are performed using IEEE standard floating point. If a command line argument is given to enable calculations in noise, random noise is added to each calculation result. This is the "fp+noise" type of calculation. If compiled without "#define fp", the calculations are performed using low precision logarithmic arithmetic with a minimum of 2 and a 6-bit fraction. This is the "lns" style operation.

[0091] When this code is run, it produces output that shows the results of the calculations it performed. These outputs show that, depending on certain command line arguments, as explained below, the enhanced algorithm produces LPHDR nearest neighbor calculations. These results demonstrate the feasibility of this approach and are briefly discussed here.

[0092] The first result is for the "fp+noise" format. Ten distinct runs were performed. In each run, one million random example vectors were generated, each with a length of 5, and each component of each vector was determined based on N(0,1), where N(0,1) is a Gaussian (normal) distribution with a mean of zero and a standard deviation of 1. In addition, in each run, one hundred test vectors were generated, each with a length of 5, and each component of each vector was determined based on N(0,1). For each test, the nearest neighbor was calculated in two ways. One was using the enhanced algorithm described above, and the other was using the standard "nearest neighbor search method" with high precision and floating point arithmetic. The enhanced algorithm gave the same results as the standard floating point method. The results are shown below. % . / a.out 5 10 1000000 100 1 The representation format is floating point, and there is noise. Run 1: 100 tests were run, 100 (100.0%) conformance, 0.81% average score error Run 2: 100 tests were run, 100 (100.0%) conformance, 0.84% ​​average score error Run 3: 100 tests were run, 100 (100.0%) conformance, 0.98% average score error Run 4: 100 tests were run, 100 (100.0%) conformance, 0.81% average score error Run 5: 100 tests were run, 100 (100.0%) conformance, 0.94% average score error Run 6: 100 tests were run, 100 (100.0%) conformance, 0.82% average score error Run 7: 100 tests were run, 100 (100.0%) conformance, 0.78% average score error Run 8: 100 tests were run, 100 (100.0%) conformance, 0.86% average score error Run 9: 100 tests were run, 100 (100.0%) conformance, 0.85% average score error Run 10: 100 tests performed, 99 (99.0%) correct, 0.86% average score error Here, the average percentage of times that the LPHDR calculation found the closest example (finally corrected by DP) = 99.90% The average score error between LPHDR calculation and DP is 0.85%.

[0093] The value of the "mean score error" will be explained in the discussion of "weighted scores" below. "Relevance" information here means relevant (suitable).

[0094] 10 calculation runs, each run was performed on one of the tests, and the nearest neighbors obtained by running the calculations for 100 tests were different from the nearest neighbors obtained by the normal high-precision method. Therefore, the average percentage of conformance between the "fp+noise" type calculations performed by the enhanced algorithm and the normal high-precision method was 99.9%.

[0095] Similar calculations were then performed using "lns" style operations, the results of which are shown below. % . / a.out 5 10 1000000 100 0 The expression format is lns format, and it is noise-free. Run 1: 100 tests were run, 100 (100.0%) conformance, 0.15% average score error Run 2: 100 tests were run, 100 (100.0%) conformance, 0.07% average score error Run 3: 100 tests were run, 100 (100.0%) conformance, 0.08% average score error Run 4: 100 tests were run, 100 (100.0%) conformance, 0.09% average score error Run 5: 100 tests were run, 100 (100.0%) conformance, 0.11% average score error Run 6: 100 tests were run, 100 (100.0%) conformance, 0.16% average score error Run 7: 100 tests were run, 100 (100.0%) conformance, 0.07% average score error Run 8: 100 tests were run, 100 (100.0%) conformance, 0.13% average score error Run 9: 100 tests performed, 99 (99.0%) correct, 0.17% average score error Run 10: 100 tests performed, 98 (98.0%) conformance, 0.16% average score error Here, the average percentage of times that the LPHDR calculation found the closest example (finally corrected by DP) = 99.70% The average score error between LPHDR calculation and DP is 0.12%.

[0096] The results showed that the average percentage of conformance was 99.7%, slightly worse than the "fp+noise" format.

[0097] The accuracy shown by the enhanced algorithm for nearest neighbor searching using two forms of the LPHDR algorithm was surprising. Performing many successive calculations with 1% error and still achieving a final result with an error of less than 1% is unheard of in previous experience. Nevertheless, the LPHDR algorithm proved to be efficient and the accuracy obtained was high enough to be useful in applications where near-nearest neighbor calculations are useful.

[0098] As an extreme case, we evaluated the "fp+noise" variant, where the noise is smoothly varied between +10% and -5%. Thus, each iteration produces results ranging from a very large 10% to a very small 5%. We ran the enhanced nearest neighbor algorithm described above, where each iteration generates 100,000 example vectors. The surprising result is that even in the extreme case of an imprecise, noisy, non-zero-mean LPHDR iteration, we can achieve useful results: Run 1: 100 tests performed, 97 (97.0%) conformance Run 2: 100 tests performed, 100 (100.0%) conformance Run 3: 100 tests performed, 100 (100.0%) conformance Run 4: 100 tests performed, 98 (98.0%) conformance Run 5: 100 tests performed, 98 (98.0%) conformance Run 6: 100 tests performed, 99 (99.0%) conformance Run 7: 100 tests performed, 99 (99.0%) conformance Run 8: 100 tests performed, 99 (99.0%) conformance Run 9: 100 tests performed, 99 (99.0%) conformance Run 10: 100 tests performed, 99 (99.0%) conformance Here, the average percentage of times that the LPHDR calculation found the closest example (finally corrected by DP) = 98.80%

[0099] efficiency For results with astonishing accuracy, it will be clear to anyone skilled in the art that the computational model presented here, with its enhanced nearest neighbor search algorithm, is performed efficiently, where the computation / memory units of the machine are connected in a two-dimensional physical arrangement, with only local communication between the Processing Elements (PEs), but with a low bandwidth for the host machine, and not intended to keep the machine busy doing useful work.

[0100] When computing the nearest neighbor search for a single Test, the Test passes through all the Processing Elements (PEs) in the array. As mentioned above, if the array is an MxM grid, then it takes at least O(M) steps for the Test to pass through the machine and return the result to the host machine. During this time, the machine takes O(MxM) steps to compute the distance between the nearest neighbors. However, at each step, the machine is capable of performing O(MxM) steps of computation, so the factor of O(M) steps is lost.

[0101] Compared to serial machines, such machines offer speedups, where a factor of O(M) steps becomes significant and useful, and more efficient. If you have to process a sufficiently large number of test vectors, so-called O(M) steps, or even more test vectors, they will flow into the machine and form a pipelined flow. The time to process an O(M) step test is still O(M) steps, the same as the time for a single test. But now the machine will perform distance calculations in O(M) x O(MxM) steps, so that the entire computing power of the machine is used, albeit by a constant factor.

[0102] A machine will be particularly efficient if it processes a number of test vectors equal to the square root of the number of processing elements (PEs). There are applications that are well suited to this form, including pattern recognition and the compression of many independent tests (e.g., blocks of an image, parts of a file, or the price histories of independent stocks), as well as the problem of finding the nearest neighbors to each Example in a set of Examples. What has been said here, as mentioned above, runs counter to the view of those skilled in the art that machines with a large number of processing elements on a single chip, or the like, are not useful. Application 2: Distance-weighted scoring

[0103] A related task to the nearest neighbor problem is distance weighted scoring. In this task, each Example has an associated score, which is a numerical value that characterizes the Example in some way. For example, if the Examples are a sample of the price history of a given stock, the score might be the history of the likelihood that the stock price is likely to go up or down. Given a Test vector, the task is to find a weighted sum of the scores of all the Examples, where the weights are a decreasing function of the distance from the Test to each of the Examples. For example, the weighted score might be treated as a prediction of the future price of the stock whose history is represented by the Test. Such application of embodiments of the present invention may support high speed trading of stocks, such as that performed by quantitative hedge funds, and this is contrary to the view held by those skilled in the art that low precision calculations are not valid for financial applications.

[0104] The C code above computes the weighted scores along with the nearest neighbor computation. The scores assigned to Examples in this computation are random numbers drawn from the range [0, 1]. The weight for each Example in this computation is defined as the unnormalized weight for that Example divided by the sum of the unnormalized weights for all Examples. And the denormalized weight for each Example is defined as the inverse of the sum of the squared distance from the Example to the Test vector plus 1. As mentioned above, the C code performed a large number of calculations, derived many Examples and Tests in the calculations, and compared the results calculated using the "fp+noise" and "lns" formats with the traditional floating-point calculation results.

[0105] Returning to the output of the simulation run above, the average weighted score for the "fp+noise" LPHDR calculation was within 0.85% of the corrected value and did not exceed 1%. For the "lns" calculation, the error was much smaller, averaging just 0.12% error.

[0106] These results are surprising, and show that the computation of the weighted score involves the summation of the individual weighted scores associated with each Example. Since a million Examples are processed in each run, this sum is over a million small positive values. A simplistic method of summing a million small values, with an error of about 1% on each sum, would produce a noisy result due to the approximation. However, this C code computes the sums using a method that has long been known and invented by Kahan (Kahan, William (January 1965), "Cautions in Reducing Truncation Error", Communications of the ACM 8(1):40). This method allows for long sums that can be used in computing distance weighted scores, or in financial engineering, such as in Monte Carlo derivative pricing, or in performing deconvolution in image processing algorithms, as described next.

[0107] The efficiency of this algorithm is similar to that of the NN algorithm, as mentioned earlier: if many test vectors are processed at once, the machine performs the task particularly efficiently. Application 3: Removing motion blur in images

[0108] To gather enough light to form an image, cameras often keep the shutter open for long periods of time, which results in "blurring" caused by camera movement. Apart from moving cameras on satellites and aircraft, inexpensive consumer cameras as well as very expensive cameras can suffer from this "blurring" as a result of camera shake. If the camera movement path is known (or can be calculated), the "blurring" can be substantially removed using various "blurring" removal algorithms. One such algorithm is the Richardson-Lucy method (referred to as the "RL method"). Here we show that an embodiment of the present invention can implement the Richardson-Lucy method algorithm and derive useful results. Following the description of the algorithm format above, we present criteria for accuracy and efficiency.

[0109] algorithm The Richardson-Lucy method of algorithms is well known and widely used. In this method, we assume that the image is blurred with a known kernel. In particular, we assume that this kernel is rectilinear, and that the image is oriented such that the "blurring" occurs purely horizontally. We consider the particular kernel for the Jth pixel in each column of the blurred image to be the uniformly weighted average of the Jth through J+31th pixels of the unblurred image.

[0110] accuracy A simple version of the RL method using LPHDR arithmetic was performed using the C programming language. The program loaded a test image, blurred it using the kernel as described above, and then deblurred the image using either the "fp+noise" or "lns" style of arithmetic. The RL method algorithm computed the sums as it convolved the kernel with an approximation of the current state of the deblurred image. To perform this computation, we used Kahan's method to compute these sums, as described at the beginning. Figure 7 shows the original state of the test image. The test image is a satellite image of the building used for Barack Obama's inauguration. Figure 8 shows an image that has been extremely blurred by the kernel. It is not possible to distinguish any particular object in the image. Figure 9 shows the result of deblurring using standard floating-point arithmetic. Figure 10 shows the result of deblurring using the "fp+noise" style of arithmetic. And Figure 11 shows the result of deblurring using the "lns" style operation. In all these cases, the image was resaved with buildings, roads, parking lots, and cars discernible.

[0111] In addition to displaying the images for human eye judgment, we also calculated a numerical characteristic of the deblurring performance by calculating, for every pixel in the image, the average difference between the original pixel value (a grayscale value between 0 and 255) and the corresponding pixel value in the image reproduced by the RL method algorithm. The resulting numerical characteristic is shown in Table 1 below.

[0112] [Table 1]

[0113] These results, and the subjective but important human visual judgment, show that LPHDR arithmetic provides substantial and useful deblurring compared to standard floating-point arithmetic. Furthermore, in this example, an extremely blurred image is chosen to better convey the visual impact and concept of deblurring using LPHDR arithmetic. With gentler, more general kernel blurring, the resulting blurred image is closer to the original image than the image in this case, and by reducing the kernel length and running the RL algorithm with LPHDR arithmetic on such an image, it becomes more general to see.

[0114] efficiency It is obvious to anyone skilled in the art that the Richardson-Lucy method with local kernels only requires local computation. The image to be deblurred can be loaded into an array of processing elements (PEs), one or more pixels per PE are stored, and the deconvolution process with the RL algorithm can be repeated tens or hundreds of times. The deblurred image can then be loaded back into the host processor. As long as the iterations are long enough, the machine can be used efficiently.

[0115] An extreme form of image deblurring is the iterative reconstruction method used in computer tomography. Reconstructing a 3D volumetric image from 2D projections is an extremely computationally intensive task. The method described above essentially generalizes to iterative reconstruction methods, making it machine efficient.

[0116] Advantages of embodiments of the invention may include one or more of the following.

[0117] The processing elements (PEs) implemented by certain embodiments of the present invention are relatively small in terms of the number of processing elements (PEs) that can perform operations. This means that there are many processing elements (PEs) per unit of resource (e.g., transistors, area, volume, etc.), which in turn means that there is a large amount of computational power per unit of resource. This allows larger problems to be solved for a given range of resources compared to traditional computer designs. For example, a digital embodiment of the present invention built as a large silicon chip assembled with state-of-the-art techniques can perform tens of thousands of operations per cycle, compared to a traditional GPU that can perform hundreds of operations per cycle, and a traditional multi-core CPU that can perform only a small number of operations per cycle. This ratio of operations reflects the architectural advantages of embodiments of the present invention, which remain as an assembly technology that is continually being improved, even as we move into nanotechnology and into the art of performing computations in digital and analog ways.

[0118] Generally speaking, performing operations with fewer resources, and as is clearly shown in the embodiments, means that the power used for the operations is smaller. As a result, machines implemented according to the embodiments of the present invention can be said to provide extremely high performance with reasonable power usage (e.g., tens of watts) or high performance with low power usage (e.g., a fraction of the power). This means that such embodiments are suitable for the full range of computers, from supercomputers to desktop computers to mobile computers. Similarly, since cost is generally related to the amount of resources available, the embodiments of the present invention can provide a relatively large amount of computing power per unit cost compared to conventional computing devices.

[0119] SIMD architectures are quite old and have been abandoned by most people in the art as a way of approaching computer design. However, SIMD architectures can be useful if they retain important features such as general computational power, and the processing elements of a SIMD machine can be made particularly small. The example presented here possesses exactly these qualities.

[0120] Despite the common perception that large-scale LPHDR operations are not useful, the discovery that large-scale LPHDR operations are useful as a very general computational framework can be exploited not just in SIMD machine implementations, but in any parallel processing machine (large-scale or not). Large-scale LPHDR operations can be used in FPGAs, FPAAs, GPUs / SIMT machines, and any kind of machine that uses compact computing elements to perform large amounts of computations using few resources (transistors, volume, etc.).

[0121] Another advantage of embodiments of the present invention is that they are useful not just because they can perform calculations efficiently, but because they can be used to tackle a variety of practical problems that would typically require high-precision computing elements, even if the embodiments of the present invention only have low-precision computing elements (or even if most of the computing elements are low-precision). Although some examples of such practical problems are described herein, and have been successfully used to calculate non-bonded force fields in molecular dynamics simulations and perform other tasks, these are merely illustrative and do not limit the range of practical problems that can be solved using embodiments of the present invention.

[0122] The disclosed embodiments are merely illustrative and not limiting of the invention, but rather, the embodiments of the invention can be practiced in a variety of other ways, such as:

[0123] For example, embodiments of the present invention may represent values ​​in any of a variety of ways, such as using digital or analog representations, fixed point, logarithmic, or floating point representations, voltage, current, charge, pulse width, pulse density, frequency, probability, spikes, timing, or combinations thereof. These inherent representations may be used individually or in combination to represent the LPHDR values. The LPHDR computation circuitry may be implemented in any of a variety of ways, such as various digital approaches (parallel or serial, pipelined or not), or analog approaches, or combinations thereof. The computation elements may be connected using various connection architectures, such as nearest four, nearest eight, various types of stepping stones, or triangular or grid architectures or not. Any method may be used to communicate between the computation elements, such as using parallel or serial, digital or analog, or combinations thereof. The computation elements may process synchronously or asynchronously, and may process either entirely simultaneously or not entirely simultaneously. The computing elements may be implemented on a single physical device, such as a silicon chip, or may be distributed across multiple devices, and embodiments constructed from multiple devices may have the computing elements connected in a variety of ways, including, for example, in a grid, truss, hypercube, tree, or other manner. The computing elements may be connected to a host machine in a variety of ways, based on cost, bandwidth, if any, and other requirements for a particular embodiment. For example, there may be many host machines connected to a collection of computing elements.

[0124] Although certain embodiments of the present invention are described as being implemented as a SIMD architecture, this is by way of example only and is not intended to be limiting. For example, embodiments of the present invention may be implemented as a reconfigurable architecture, such as, but not limited to, a programmable logic device, a field programmable analog array, or a field programmable gate array architecture, including designs in which existing multiplier blocks in an FPGA are replaced or supplemented with any of the types of LPHDR computing elements disclosed herein, or in which LPHDR computing elements are included in new or existing reconfigurable devices. As another example, embodiments of the present invention may be implemented as a GPU or SIMT type architecture incorporating any of the types of LPHDR computing elements disclosed herein, including, for example, LPHDR computing elements that may replace or supplement traditional computing elements used in current or new graphic processing unit designs. As another example, embodiments of the present invention may be implemented as a MIMD type architecture. The architecture may incorporate any type of LPHDR computing element disclosed herein, for example to replace or supplement traditional computing elements used in current or new MIMD computer system designs, and in another example, embodiments of the invention may be implemented as any type of machine, including a massively parallel processing machine. These massively parallel processing machines use compact computing elements to provide massive amounts of computing power using fewer resources (e.g., transistors, area, volume, etc.) than traditional architectures.

[0125] Although certain embodiments of the present invention are described herein as implementing software, this is by way of example only and is not intended to be limiting. For example, embodiments of the present invention may be implemented using microcode or hardware sequencers, state machines, or other controllers to control any of the types of LPHDR computing elements disclosed herein. For example, embodiments of the present invention may be implemented using hardwired, burned-in, or pre-programmed controllers to control any of the types of LPHDR computing elements disclosed herein.

[0126] Certain embodiments of the present invention have been described as being implemented using custom silicon as hardware, but this is by way of example only and is not intended to be limiting. For example, embodiments of the present invention may be implemented using FPGAs or other reconfigurable chips as the underlying hardware, and the FPGAs or other reconfigurable chips may be configured to perform the LPHDR processing disclosed herein. As another example, embodiments of the present invention may be implemented using programmable, conventional digital or analog computing architectures, including those using high precision computing elements or other types of non-LPHDR hardware to perform the LPHDR calculations, or those that are massively parallel, and the architectures may be programmed with software to perform the LPHDR processing disclosed herein. For example, embodiments of the present invention may be implemented using a software emulator of the functionality disclosed herein.

[0127] As yet another example, embodiments of the present invention, whether based on silicon chips or other technologies, can be implemented using 3D fabrication techniques. In some illustrated embodiments, a single memory chip is connected onto a processor or other device, or several memory chips and / or processor chips or other device chips are stacked together. 3D technology embodiments of the present invention are highly useful because they provide higher density than 2D technology embodiments and allow 3D information communication between processor units. The implementation using the technology has a high degree of efficiency compared to the implementation using the 2D technology. It is what makes the algorithm possible.

[0128] Although certain embodiments of the present invention have been described as being implemented using silicon chip fabrication techniques, this is by way of example only and is not intended to be limiting. Also, for example, embodiments of the present invention may be implemented using other types of technologies using conventional digital and analog computer processors and other devices. Examples of such technologies include various nanomechanical and nanoelectronic technologies, chemical-based technologies such as DNA computing, nanowire and nanotube based technologies, optical technologies, mechanical technologies, biological technologies, and other technologies, whether or not based on transistors, that may be capable of performing LPHDR operations of the type disclosed herein.

[0129] Some embodiments of the invention have been described as using "massively parallel" techniques. Although some embodiments of the invention may include thousands, millions, or more compute units, embodiments of the invention may also include a few (or a very few) compute units. For example, embodiments that include only a single LPHDR unit may be used in a serial processing unit or other device to provide a large amount of LPHDR processing power in a small, inexpensive processor or other device.

[0130] In some embodiments of the invention, even when performed exclusively using digital techniques, the computational process may not produce a result that is deterministic, repeatable, or the most accurate possible result in the selected low-precision representation. For example, for a particular input value, the computational process may produce a result that is not the closest value in the selected representation to the true computational result.

[0131] The degree of precision of a "low precision high dynamic range" computing element varies depending on the particular implementation. For example, in some embodiments, an LPHDR computing element produces results that include fractional numbers, i.e., numbers greater than 0 and less than 1. For example, in some embodiments, an LPHDR computing element produces results that are often (or always) more than 0.05% off the correct result (i.e., the absolute value of the difference between the result produced by the LPHDR computing element and the correct result is no more than 1 / 20th of 1% of the absolute value of the correct result). As another example, an LPHDR computing element may often (or even always) produce a result that is more than 0.1% off the correct result. As another example, an LPHDR computing element may often (or even always) produce a result that is more than 0.2% off the correct result. Furthermore, as another example, the LPHDR computing element often (or always) produces a result that is more than 0.5% off the correct result. Furthermore, as another example, the LPHDR computing element may often (or always) produce results that are 1%, or 2%, or 5%, or 10%, or 20% or more away from the correct result.

[0132] In addition to the various degrees of precision, the implementation of the calculations varies depending on the dynamic range of the space of numbers that the LPHDR calculation element operates on. For example, in one embodiment, the LPHDR calculation element operates on numbers in a range space having a range of approximately one part in a million to one million. As another example, in one embodiment, the LPHDR calculation element operates on numbers in a range space having a range of approximately one part in a billion to one billion. As yet another example, in one embodiment, the LPHDR calculation element operates on numbers in a range space having a range of approximately one part in a billion to one billion. As yet another example, in one embodiment, the LPHDR calculation element operates on numbers in a range space having a range of approximately one part in a billion to one billion. As yet another example, in one embodiment, the LPHDR calculation element operates on numbers in a range space having a range of approximately one part in a billion to one billion. As yet another example, in one embodiment, the LPHDR calculation element operates on numbers in a range space having a range of approximately one part in a billion to one billion. As yet another example, in one embodiment, the LPHDR calculation element operates on numbers in a range space having a range of approximately one part in a billion to one billion. As yet another example, an alternative embodiment of the LPHDR computing element may process numbers in a space having a dynamic range within or a combination of the ranges of the previous examples, such as a range ranging from approximately parts per billion to tens of millions. As with the alternative embodiments, in all of these exemplary embodiments of the present invention, the numbers discussed are signed, and the above discussion deals with the magnitude properties of the numbers involved.

[0133] The frequency with which an LPHDR element can produce only an approximation to a correct result depends on the type of operation being performed. For example, an embodiment may be one in which the LPHDR element is capable of performing one or more operations (perhaps involving, for example, trigonometric functions), where in each operation each of the LPHDR elements accepts a set of inputs taken from the range of valid numbers, and for a particular set of input values ​​the LPHDR element produces one or more output values ​​(e.g., simultaneously calculating both the sine and cosine of the input values). (such as computing a function with a certain set of input values) Consider the case where the error is deterministic or non-deterministic. In such an example embodiment, consider further the ratio F of valid inputs to the relative error magnitude E, which causes the result calculated by the LPHDR calculation element to differ from the mathematically correct result. In one embodiment of the invention, for at least one operation that the LPHDR calculation unit can perform, for at least a ratio F of acceptable valid inputs for that operation, the statistical average, determined over the entire set of operations performed repeatedly, for at least one output signal produced by that operation, in each of the LPHDR calculation elements, the statistical average of the numerical value represented by the output signal of the LPHDR calculation unit when the operation is performed for each input, differs by at least E from the correct mathematical calculation result for the same input value, where F is 1% and E is 0.05%. In some other embodiments, F is not 1%, but is any of 2%, 5%, 10%, 20%, or 50%. Each of these embodiments has some particular value for the value of F, and instead of a value of E of 0.05%, other embodiments have values ​​of E of 0.1%, or 0.2%, or 0.5%, or 1%, or 2%, or 5%, or 10%, or 20%. These various embodiments are merely illustrative and do not limit the invention.

[0134] In a device (such as a computer, processor, or other device) embodied in accordance with the present invention, the number of LPHDR computing elements in the device (e.g., computer, processor, or other device) exceeds the number (which may be zero) of computing elements in the device designed to perform high dynamic range arithmetic with conventional precision (i.e., floating point arithmetic with a word length of 32 bits or more). If NL is the total number of LPHDR computing elements in the device and NH is the total number of computing elements in the device designed to perform high dynamic range arithmetic with conventional precision, then NL exceeds T(NH), where T( ) denotes a function. Any of a variety of functions may be used as the function T( ). For example, in one embodiment, T(NH) is 20+3xNH, and the number of LPHDR computing elements in the device, if any, exceeds 20+3x[the number of computing elements in the device], where the device is designed to perform high dynamic range arithmetic with conventional precision. As another example, in one embodiment, the number of LPHDR computing elements in the device exceeds 50+5x[the number of computing elements in the device] if the computing elements were present in the device, where the device is designed to perform high dynamic range computations with conventional precision. As another example, in one embodiment, the number of LPHDR computing elements in the device exceeds 100+5x[the number of computing elements in the device] if the computing elements were present in the device, where the device is designed to perform high dynamic range computations with conventional precision. As another example, in one embodiment, the number of LPHDR computing elements in the device exceeds 1000+5x[the number of computing elements in the device] if the computing elements were present in the device, where the device is designed to perform high dynamic range computations with conventional precision.As another example, in one embodiment, the number of LPHDR computation elements in a device, if any, exceeds 5000 + 5x [the number of computation elements in the device], where the device is designed to perform high dynamic range computations with conventional precision. Some embodiments of the invention are implemented in a single physical device, such as, but not limited to, a silicon chip, or stacked chips, or chip package, or circuit board. Then, the number of LPHDR computing elements in a physical device, NL, and the number of computing elements in a physical device, NH, designed to perform high dynamic range computations with conventional precision, are the sum of the individual computing elements in the physical device. Some embodiments of the present invention are implemented in a computer system that includes one or more physical devices, including but not limited to a collection of silicon chips, or stacked chips, or chip packages, or circuit boards, coupled together and communicating with each other using various means (buses, switches, any type of network connection, or other communication means). In this case, the number of LPHDR computing elements in a computer system, NL, and the number of computing elements in a computer system, NH, designed to perform high dynamic range computations with conventional precision, are the sum of the individual computing elements in all of these coupled physical devices.

[0135] Some embodiments of the present invention may form a processor or a portion of a processor. The processor is a device capable of running software to perform calculations. Such a processor may include mechanisms for storing software, using the software to determine which operations to perform, executing these operations, storing large amounts of data, modifying the data with the software to perform specific operations, and communicating with devices connected to the processor. The processor may be a reconfigurable device such as, but not limited to, a field programmable array. The processor may be a co-processor to assist a host machine or may have the ability to perform computations independent of an external host machine. The processor may be formed as a collection of various types of host processor and co-processor components such as CPUs, GPUs, FPGAs, other processors, and other devices. This may be referred to as a heterogeneous processor design or a heterogeneous computer system, any or all of which components may be the same or variations of embodiments of the present invention.

[0136] However, embodiments of the invention may be implemented in devices in addition to a processor or in devices other than a processor. For example, a computer including a processor and other components (such as memory connected to the processor by a data path) is an example of an embodiment of the invention, where the processor includes components for performing LPHDR processing according to any of the methods disclosed herein. More generally, any device or combination of devices that performs the functions disclosed herein, whether or not falling within the scope of the term processor, constitutes an example of an embodiment of the invention.

[0137] More generally, any of the techniques disclosed herein may be implemented, for example, by hardware, software tangibly stored on a computer-readable medium, firmware, or a combination thereof. The techniques described herein may be implemented by one or more computer programs running on a programmable computer having a processor, a processor-readable storage medium (including, for example, volatile or non-volatile memory and / or storage elements), at least one input device, and at least one output device. The program code is entered using the input device to perform the functions described above and generate output. The output is provided to one or more output devices.

[0138] Each computer program within the scope of the claims below may be implemented in any programming language, such as assembly language, machine language, a high-level procedural programming language, or an object-oriented language, e.g., the programming language may be compiled or interpreted.

[0139] Each such computer program is implemented in the form of a computer program product tangibly embodied in a machine-readable storage device for execution by a computer processor. The methods of the invention are implemented by a computer processor running a program tangibly embodied in a computer-readable storage medium to perform the functions of the invention by processing input and producing output. Suitable processors include, for example, both general-purpose and special-purpose microprocessors. Typically, the processor receives instructions and data from a read-only memory and / or a random access memory. Suitable storage devices for tangibly embodying computer program instructions include, for example, semiconductor memory devices including EPROMs and EEPROMs, flash memory devices, magnetic disks such as internal hard disks and removable disks, optical-magnetic disks, and all types of non-volatile memories such as CR-ROMs. Any of the above may be incorporated and executed by specially designed ASICs (Application-Specific Integrated Circuits) and FPGAs (Field-Programmable Gate Arrays). The computer also typically receives programs and data from a storage medium such as an internal hard disk (not shown) or a removable disk. These elements may be found in conventional desktop or workstation computers and other computers suitable for running computer programs that perform the methods described herein. These elements may be used in conjunction with digital print or marking engines, display monitors, and other raster output devices capable of outputting color or gray scale pixels onto paper, film, a display screen, or other output medium.

Claims

1. A device having a silicon chip the silicon chip includes a plurality of execution units; the plurality of execution units comprises a first plurality of custom silicon computing elements; At least one of the first plurality of custom silicon computing elements comprises: one or more first input signals representing a first numerical value using a floating point representation having a signed binary mantissa of not more than 11 bits and a signed binary exponent of at least 6 bits; and configured to perform a first multiplication operation on one or more second input signals representing second numerical values ​​using a floating-point representation; a total number of the first plurality of custom silicon computing elements in the silicon chip configured to perform a first multiplication operation is at least three times greater than a total number of a second plurality of custom silicon computing elements in the silicon chip configured to perform a conventional high-precision multiplication operation on floating-point numbers that are at least 32 bits wide in each cycle by a factor of at least 20; the first plurality of custom silicon computing elements are collectively configured to perform at least tens of thousands of first multiplication operations per cycle; device.

2. The device of claim 1 , wherein at least two of the first plurality of custom silicon computing elements share circuitry.

3. The device of claim 1 or 2, wherein at least two of the execution units share circuitry.

4. 4. The device of claim 1, wherein at least one of the plurality of execution units further comprises a computing element implemented using reconfigurable field programmable gate array (FPGA) logic configured to perform computations.

5. each of the plurality of execution units is configured to perform a second operation on one or more third input signals representing one or more third numerical values ​​to generate one or more output signals representing fourth numerical values; a dynamic range of the third numerical values ​​represented by at least one of the third input signals has a width of at least 1 / 1,000,000 to 1,000,000; 5. The device of claim 1, wherein for each of at least X=10% of permissible valid inputs to the second process, the numerical value represented by the one or more output signals differs from the exact mathematical calculation result of the second process for that numerical input by at least Y=.05%.

6. each of the plurality of execution units is configured to perform a second operation on one or more third input signals representing one or more third numerical values ​​to generate one or more output signals representing fourth numerical values; a dynamic range of the third numerical values ​​represented by at least one of the third input signals has a width of at least 1 / 1,000,000 to 1,000,000; 5. The device of claim 1, wherein the second process is non-deterministic and a statistical average of the numerical values ​​represented by the one or more output signals of the execution unit executing the second process for each of at least X=10% of acceptable valid inputs to the second process, the statistical average across repeated executions of the second process for each particular input of the at least X% of acceptable valid inputs to the second process differs from an exact mathematical calculation result of the second process for the same numerical input value by at least Y=.05%.

7. 7. The device of claim 1, wherein each of the first plurality of custom silicon computing elements uses a smaller number of transistors compared to each of the second plurality of custom silicon computing elements.

8. The device according to any one of claims 1 to 7, wherein the first multiplication operation is part of determining a weighted sum.

9. The device according to claim 1 , wherein the first multiplication operation is part of a convolution of a kernel.

10. 10. The device of claim 1, further comprising a processor capable of executing software, the processor configured to control the processing of at least one of the plurality of execution units, and wherein the first multiplication process is performed as part of the processor executing software programmed to perform seeing, hearing, or understanding.

Citation Information

Patent Citations

  • Large capacity parallel array processing system

    JP1988233459A

  • Multiplying circuit

    JP1989076223A

  • Recognizing device using neural network

    JP1994096048A

  • Floating-point data processing means

    JP1998105377A

  • Device and method for parallel computation

    JP2000293494A