The present application claims the benefit of Indian Provisional Patent Application No. 201741030632, filed Aug. 30, 2017, and U.S. Provisional Patent Application No. 62/584,401, filed Nov. 10, 2017.
Unique values queries are typically performed by processors of a computing device to determine a presence of distinct or unique values in database. The unique values queries are often used to filter large database columns to obtain unique element values that are present in the database. However, processor-based implementations may require consumption of large amounts of power and other resources due to the amount of data that is required to be read into the processors.
Modern computing devices may include general-purpose processor cores as well as a variety of hardware accelerators for performing specialized tasks. Certain computing devices may include one or more accelerators embodied as field-programmable gate arrays (FPGAs), which may include programmable digital logic resources that may be configured by the end user or system integrator.
The concepts described herein are illustrated by way of example and not by way of limitation in the accompanying figures. For simplicity and clarity of illustration, elements illustrated in the figures are not necessarily drawn to scale. Where considered appropriate, reference labels have been repeated among the figures to indicate corresponding or analogous elements.
While the concepts of the present disclosure are susceptible to various modifications and alternative forms, specific embodiments thereof have been shown by way of example in the drawings and will be described herein in detail. It should be understood, however, that there is no intent to limit the concepts of the present disclosure to the particular forms disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives consistent with the present disclosure and the appended claims.
References in the specification to “one embodiment,” “an embodiment,” “an illustrative embodiment,” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may or may not necessarily include that particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described. Additionally, it should be appreciated that items included in a list in the form of “at least one A, B, and C” can mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B, and C). Similarly, items listed in the form of “at least one of A, B, or C” can mean (A); (B); (C); (A and B); (A and C); (B and C); or (A, B, and C).
The disclosed embodiments may be implemented, in some cases, in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on a transitory or non-transitory machine-readable (e.g., computer-readable) storage medium, which may be read and executed by one or more processors. A machine-readable storage medium may be embodied as any storage device, mechanism, or other physical structure for storing or transmitting information in a form readable by a machine (e.g., a volatile or non-volatile memory, a media disc, or other media device).
In the drawings, some structural or method features may be shown in specific arrangements and/or orderings. However, it should be appreciated that such specific arrangements and/or orderings may not be required. Rather, in some embodiments, such features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of a structural or method feature in a particular figure is not meant to imply that such feature is required in all embodiments and, in some embodiments, may not be included or may be combined with other features.
The illustrative data center 100 differs from typical data centers in many ways. For example, in the illustrative embodiment, the circuit boards (“sleds”) on which components such as CPUs, memory, and other components are placed for increased thermal performance In particular, in the illustrative embodiment, the sleds are shallower than typical boards. In other words, the sleds are shorter from the front to the back, where cooling fans are located. This decreases the length of the path that air must to travel across the components on the board. Further, the components on the sled are spaced further apart than in typical circuit boards, and the components are arranged to reduce or eliminate shadowing (i.e., one component in the air flow path of another component). In the illustrative embodiment, processing components such as the processors are located on a top side of a sled while near memory, such as DIMMs, are located on a bottom side of the sled. As a result of the enhanced airflow provided by this design, the components may operate at higher frequencies and power levels than in typical systems, thereby increasing performance Furthermore, the sleds are configured to blindly mate with power and data communication cables in each rack 102A, 102B, 102C, 102D, enhancing their ability to be quickly removed, upgraded, reinstalled, and/or replaced. Similarly, individual components located on the sleds, such as processors, accelerators, memory, and data storage drives, are configured to be easily upgraded due to their increased spacing from each other. In the illustrative embodiment, the components additionally include hardware attestation features to prove their authenticity.
Furthermore, in the illustrative embodiment, the data center 100 utilizes a single network architecture (“fabric”) that supports multiple other network architectures including Ethernet and Omni-Path. The sleds, in the illustrative embodiment, are coupled to switches via optical fibers, which provide higher bandwidth and lower latency than typical twisted pair cabling (e.g., Category 5, Category 5e, Category 6, etc.). Due to the high bandwidth, low latency interconnections and network architecture, the data center 100 may, in use, pool resources, such as memory, accelerators (e.g., graphics accelerators, FPGAs, ASICs, etc.), and data storage drives that are physically disaggregated, and provide them to compute resources (e.g., processors) on an as needed basis, enabling the compute resources to access the pooled resources as if they were local. The illustrative data center 100 additionally receives utilization information for the various resources, predicts resource utilization for different types of workloads based on past resource utilization, and dynamically reallocates the resources based on this information.
The racks 102A, 102B, 102C, 102D of the data center 100 may include physical design features that facilitate the automation of a variety of types of maintenance tasks. For example, data center 100 may be implemented using racks that are designed to be robotically-accessed, and to accept and house robotically-manipulatable resource sleds. Furthermore, in the illustrative embodiment, the racks 102A, 102B, 102C, 102D include integrated power sources that receive a greater voltage than is typical for power sources. The increased voltage enables the power sources to provide additional power to the components on each sled, enabling the components to operate at higher than typical frequencies.
In various embodiments, dual-mode optical switches may be capable of receiving both Ethernet protocol communications carrying Internet Protocol (IP packets) and communications according to a second, high-performance computing (HPC) link-layer protocol (e.g., Intel's Omni-Path Architecture's, InfiniBand™) via optical signaling media of an optical fabric. As reflected in
MPCMs 916-1 to 916-7 may be configured to provide inserted sleds with access to power sourced by respective power modules 920-1 to 920-7, each of which may draw power from an external power source 919. In various embodiments, external power source 919 may deliver alternating current (AC) power to rack 902, and power modules 920-1 to 920-7 may be configured to convert such AC power to direct current (DC) power to be sourced to inserted sleds. In some embodiments, for example, power modules 920-1 to 920-7 may be configured to convert 277-volt AC power into 12-volt DC power for provision to inserted sleds via respective MPCMs 916-1 to 916-7. The embodiments are not limited to this example.
MPCMs 916-1 to 916-7 may also be arranged to provide inserted sleds with optical signaling connectivity to a dual-mode optical switching infrastructure 914, which may be the same as—or similar to—dual-mode optical switching infrastructure 514 of
Sled 1004 may also include dual-mode optical network interface circuitry 1026. Dual-mode optical network interface circuitry 1026 may generally comprise circuitry that is capable of communicating over optical signaling media according to each of multiple link-layer protocols supported by dual-mode optical switching infrastructure 914 of
Coupling MPCM 1016 with a counterpart MPCM of a sled space in a given rack may cause optical connector 1016A to couple with an optical connector comprised in the counterpart MPCM. This may generally establish optical connectivity between optical cabling of the sled and dual-mode optical network interface circuitry 1026, via each of a set of optical channels 1025. Dual-mode optical network interface circuitry 1026 may communicate with the physical resources 1005 of sled 1004 via electrical signaling media 1028. In addition to the dimensions of the sleds and arrangement of components on the sleds to provide improved cooling and enable operation at a relatively higher thermal envelope (e.g., 250 W), as described above with reference to
As shown in
In another example, in various embodiments, one or more pooled storage sleds 1132 may be included among the physical infrastructure 1100A of data center 1100, each of which may comprise a pool of storage resources that is globally accessible to other sleds via optical fabric 1112 and dual-mode optical switching infrastructure 1114. In some embodiments, such pooled storage sleds 1132 may comprise pools of solid-state storage devices such as solid-state drives (SSDs). In various embodiments, one or more high-performance processing sleds 1134 may be included among the physical infrastructure 1100A of data center 1100. In some embodiments, high-performance processing sleds 1134 may comprise pools of high-performance processors, as well as cooling features that enhance air cooling to yield a higher thermal envelope of up to 250 W or more. In various embodiments, any given high-performance processing sled 1134 may feature an expansion connector 1117 that can accept a far memory expansion sled, such that the far memory that is locally available to that high-performance processing sled 1134 is disaggregated from the processors and near memory comprised on that sled. In some embodiments, such a high-performance processing sled 1134 may be configured with far memory using an expansion sled that comprises low-latency SSD storage. The optical infrastructure allows for compute resources on one sled to utilize remote accelerator/FPGA, memory, and/or SSD resources that are disaggregated on a sled located on the same rack or any other rack in the data center. The remote resources can be located one switch jump away or two-switch jumps away in the spine-leaf network architecture described above with reference to
In various embodiments, one or more layers of abstraction may be applied to the physical resources of physical infrastructure 1100A in order to define a virtual infrastructure, such as a software-defined infrastructure 1100B. In some embodiments, virtual computing resources 1136 of software-defined infrastructure 1100B may be allocated to support the provision of cloud services 1140. In various embodiments, particular sets of virtual computing resources 1136 may be grouped for provision to cloud services 1140 in the form of software-defined infrastructure (SDI) services 1138. Examples of cloud services 1140 may include—without limitation—software as a service (SaaS) services 1142, platform as a service (PaaS) services 1144, and infrastructure as a service (IaaS) services 1146.
In some embodiments, management of software-defined infrastructure 1100B may be conducted using a virtual infrastructure management framework 1150B. In various embodiments, virtual infrastructure management framework 1150B may be designed to implement workload fingerprinting techniques and/or machine-learning techniques in conjunction with managing allocation of virtual computing resources 1136 and/or SDI services 1138 to cloud services 1140. In some embodiments, virtual infrastructure management framework 1150B may use/consult telemetry data in conjunction with performing such resource allocation. In various embodiments, an application/service management framework 1150C may be implemented in order to provide QoS management capabilities for cloud services 1140. The embodiments are not limited in this context.
Referring now to
Subsequently, the accelerator 1204 may generate a write request for each element to access the corresponding bit-map output table to set a bit-map output bit that corresponds to the element value of the corresponding element. To do so, the accelerator 1204 may adjust the element width (N) of the input data by pre-processing the packed bit vector of column data. The pre-processing of the input data may support unique values queries on any bit-width of elements of the database based on a data path width of the accelerator 1240 and may also ensure that a largest number of elements are processed in each cycle. Since the input data is pre-processed and aligned with the bit-map output table, the accelerator 1204 may use a corresponding element value of each element as a write request address to issue the write request to the corresponding bit-map output bit. Alternatively, if the element width (N) is different than the hash width (K), the accelerator 1204 may perform the hash function on each element value to generate a hash value that is to be used as a write request address to access the bit-map output table to set the corresponding bit-map output bit. After multiple passes to process all elements of the input data, the accelerator 1204 may output the bit-map output table that includes 2K bit-map output bits, where each set bit-map output bit indicates a presence of a corresponding unique element value or hash value. The accelerator 1204 may then transfer the bit-map output table to the memory 1206 of the compute device 1202 for further analysis or processing by one or more processors 1208. By performing the unique values queries on the hardware accelerator 1204 instead of the processor 1208, the system 1200 may increase performance and power efficiency by avoiding moving a large amount of data to the processor(s) 1208 for the set membership queries.
For example, the database stored in the memory 1206 of the compute device 1202 includes a table with a list of names of people, their residency information, and their income. The processor 1208 requests the accelerator 1204 to find how many unique state(s) there are in the database. In response, the accelerator 1204 generates a bit-map output table, which is configured to store bit-map output bits for every possible state of the input data. In other words, the bit-map output table includes 50 bit-map output bits to represent 50 states. Subsequently, the accelerator 1204 receives the residency information column data from the memory 1206, determines the state that each element or people live in, and sets a bit-map output bit that corresponds to each state. For example, if a person lives in Indiana, the accelerator 1204 sets a bit-map output bit of the bit-map output table that corresponds to Indiana to 1. Accordingly, if there are 10 unique states in the database, meaning that all people live in one of those 10 states, the accelerator 1204 outputs the bit-map output table that includes 10 bit-map output bits that have value of 1.
The accelerator 1204 may be embodied as any coprocessor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), a system-on-a-chip (SOC), an application specific integrated circuit (ASIC), functional block, IP core, or other hardware accelerator of the compute device 1202 capable of performing the functions described herein. As discussed above, the accelerator 1204 is configured to determine unique element values from the database. To do so, as shown in
The decompressor 1212 may be embodied as any hardware component(s) or circuitry capable of decompressing the input data. Typically, the input data is compressed column data stored in the memory 1206. As such, the decompressor 1212 may determine whether the input data is compressed data and decompress the compressed input data in response to determining that the input data is compressed.
The input pre-processing unit 1214 may be embodied as any hardware component(s) or circuitry capable of pre-processing the input data to support unique values queries on any bit-width of elements of the database. To do so, the input pre-processing unit 1214 may determine a largest power of 2 elements (i.e., 2m elements) that is to be processed in each cycle as a function of an element width of the input data and a data path width of the accelerator 1204. The input pre-processing unit 1214 may align the elements of the uncompressed input data (e.g., the packed bit vector of column data) and prepend zero to each element of the input data based on the data path width in order to process the largest power of 2 elements per cycle. For example, if the accelerator 1204 has a 32 bit wide data path, the input pre-processing unit 1214 may process 32 elements for an element width of 1 bit, 16 elements for an element width of 2 bits, 8 elements for element widths 3 or 4 bits, 4 elements for element widths from 5 to 8 bits, and so on.
The write request generator unit 1216 may be embodied as any hardware component(s) or circuitry capable of generating a write request for each element of the input data to set a corresponding bit-map output bit of the bit-map output table which corresponds to an element value of the corresponding element. To do so, the write request generator unit 1216 may generate a write request address for the corresponding element to access a corresponding bit-map output bit of the bit-map output table. Since the input data is pre-processed, the write request generator unit 1216 may extract each element and use the corresponding element value as a write request address to issue a write request to the corresponding bit-map output table. Alternatively, if the hash width (K) is less than the element width (N), the write request generator unit 1216 may compute a K-bit hash value that corresponds to the element value of the corresponding element and use the hash value as a write request address for the corresponding element to access the bit-map output table. It should be appreciated that the hash function may be programmed based on the element width (N) of the input data and the hash width (K) indicated in the query configuration data. For example, the write request generator unit 1216 may extract K bits of the N-bit element by truncating a number of upper and/or lower bits of the N-bit element. In some embodiments, the hash function may be performed prior to pre-processing the input data.
The output processing unit 1218 may be embodied as any hardware component(s) or circuitry capable of outputting the bit-map output table, where each set bit-map output bit of the bit-map output table (e.g., a bit-map output bit that has a value of 1) indicates a presence of a unique element value corresponds to the bit-map output bit. The output processing unit 1218 may be further configured to accumulate the bit-map output bits until a width of the bit-map output bits reaches the data path width to transmit the bit-map output bits to the memory 1206 for further analysis by one or more processors 1208. In some embodiments, the output processing unit 1218 may directly communicate with one or more processors 1208 to transmit the bit-map output table.
The processor 1208 may be embodied as any type of processor capable of performing the functions described herein. For example, the processor 1208 may be embodied as a single or multi-core processor(s), digital signal processor, microcontroller, or other processor or processing/controlling circuit. Similarly, the memory 1206 may be embodied as any type of volatile or non-volatile memory or data storage capable of performing the functions described herein. In operation, the memory 1206 may store various data and software used during operation of the compute device 1202 such operating systems, applications, programs, libraries, and drivers. The memory 1206 is communicatively coupled to the processor 1208 via the input/output (I/O) subsystem (not shown), which may be embodied as circuitry and/or components to facilitate input/output operations with the processor 1208, the accelerator 1204, the memory 1206, the one or more storage devices 1210, and other components of the compute device 1202. For example, the I/O subsystem may be embodied as, or otherwise include, memory controller hubs, input/output control hubs, sensor hubs, firmware devices, communication links (i.e., point-to-point links, bus links, wires, cables, light guides, printed circuit board traces, etc.) and/or other components and subsystems to facilitate the input/output operations. In some embodiments, the I/O subsystem may form a portion of a system-on-a-chip (SoC) and be incorporated, along with the processor 1208, the memory 1206, and other components of the compute device 1202, on a single integrated circuit chip.
The memory 1206 may be embodied as any type of volatile (e.g., dynamic random access memory (DRAM), etc.) or non-volatile memory or data storage capable of performing the functions described herein. Volatile memory may be a storage medium that requires power to maintain the state of data stored by the medium. Non-limiting examples of volatile memory may include various types of random access memory (RAM), such as dynamic random access memory (DRAM) or static random access memory (SRAM). One particular type of DRAM that may be used in a memory module is synchronous dynamic random access memory (SDRAM). In particular embodiments, DRAM of a memory component may comply with a standard promulgated by JEDEC, such as JESD79F for DDR SDRAM, JESD79-2F for DDR2 SDRAM, JESD79-3F for DDR3 SDRAM, JESD79-4A for DDR4 SDRAM, JESD209 for Low Power DDR (LPDDR), JESD209-2 for LPDDR2, JESD209-3 for LPDDR3, and JESD209-4 for LPDDR4 (these standards are available at www.jedec.org). Such standards (and similar standards) may be referred to as DDR-based standards and communication interfaces of the storage devices that implement such standards may be referred to as DDR-based interfaces.
In one embodiment, the memory device is a block addressable memory device, such as those based on NAND or NOR technologies. A memory device may also include future generation nonvolatile devices, such as a three dimensional crosspoint memory device (e.g., Intel 3D XPoint™ memory), or other byte addressable write-in-place nonvolatile memory devices. In one embodiment, the memory device may be or may include memory devices that use chalcogenide glass, multi-threshold level NAND flash memory, NOR flash memory, single or multi-level Phase Change Memory (PCM), a resistive memory, nanowire memory, ferroelectric transistor random access memory (FeTRAM), anti-ferroelectric memory, magnetoresistive random access memory (MRAM) memory that incorporates memristor technology, resistive memory including the metal oxide base, the oxygen vacancy base and the conductive bridge Random Access Memory (CB-RAM), or spin transfer torque (STT)-MRAM, a spintronic magnetic junction memory based device, a magnetic tunneling junction (MTJ) based device, a DW (Domain Wall) and SOT (Spin Orbit Transfer) based device, a thyristor based memory device, or a combination of any of the above, or other memory. The memory device may refer to the die itself and/or to a packaged memory product.
In some embodiments, 3D crosspoint memory (e.g., Intel 3D XPoint™ memory) may comprise a transistor-less stackable cross point architecture in which memory cells sit at the intersection of word lines and bit lines and are individually addressable and in which bit storage is based on a change in bulk resistance. In some embodiments, all or a portion of the memory 1206 may be integrated into the processor 1208. In operation, the memory 1206 may store various software and data used during operation such as resource utilization data, resource availability data, application programming interface (API) data, applications, programs, and libraries.
The illustrative storage devices 1210 may be embodied as any type of devices configured for short-term or long-term storage of data such as, for example, memory devices and circuits, memory cards, hard disk drives, solid-state drives, or other data storage devices. Each storage device 1210 may include a system partition that stores data and firmware code for the storage device 1210. Each storage device 1210 may also include one or more operating system partitions that store data files and executables for operating systems.
Although illustrated in
Referring now to
In the illustrative environment 1300, the I/O communicator 1310 is configured to facilitate inbound and outbound network communications (e.g., network traffic, network packets, network flows, etc.) to and from the accelerator 1204, respectively. To do so, the I/O communicator 1310 is configured to receive and process data from the memory 1206 based on unique values queries received from a processor 1208 of the compute device 1202. The I/O communicator 1310 is further configured to transmit a bit-map output data to the memory 1206. In some embodiments, the accelerator 1204 may receive from or transmit to one or more storage devices 1210. Accordingly, in some embodiments, at least a portion of the functionality of the I/O communicator 1310 may be performed by communication circuitry of the compute device 1202.
The decompressor 1320, which may be embodied as hardware, firmware, software, virtualized hardware, emulated architecture, and/or a combination thereof as discussed above, is configured to decompress the input data. The decompressor 1212 is configured to determine whether the input data is compressed data and decompress the compressed input data in response to determining that the input data is compressed.
The complex filter 1330, which may be embodied as hardware, firmware, software, virtualized hardware, emulated architecture, and/or a combination thereof as discussed above, is configured to filter the input data to determine unique element values of the input data. To do so, the complex filter 1330 includes the bit-map table generator 1332, the input data pre-processor 1334, the write request generator 1336, and the bit-map output generator 1338.
The bit-map table generator 1332 is configured to generate a bit-map output table. As described above, the bit-map output table is configured to store bit-map output bits, where each bit-map output bit corresponds to a unique element value or hash value of the input data. As such, the bit-map output table has 2K number of bit-map output bits to represent 2K unique element values. In the illustrative embodiment, the bit-map table generator 1332 is configured to construct a different type of definition table (e.g., a small or large bit-map output table) on the accelerator 1240 based on the hash width (K). If the bit-map table generator 1332 determines that the hash width (K) is less than a predefined width, the bit-map table generator 1332 constructs a small bit-map output table that has many write ports as necessary to satisfy a target throughput based on the width of the data path of the accelerator 1204. For example, if the hash width (K) is less than 8 bits, the bit-map output bits are stored in a small bit-map output table with multiple write ports to provide multiple writes per cycle. To generate a bit-map output table that supports elements up to 8 bits, the bit-map table generator 1332 implements 256 flip flops to construct a small bit-map output table. In this example, if the width of the data path of the accelerator 1204 is 32 bit, the bit-map table generator 1332 constructs the small bit-map output table with 2 flip flops for 32 write ports of a 1 bit element (e.g., 2:1 multiplexers), 4 flip flops for 16 write ports of a 2 bit element (e.g., 4:1 multiplexers), 16 flip flops for 8 write ports of a 3 or 4 bit element (e.g., 16:1 multiplexers), and remaining flip flops for 4 write ports. Alternatively, if the hash width (K) is greater than 8 bits, the bit-map output bits are stored in a large bit-map output table. The accelerator 1204 may configure the large bit-map output table to store duplicate copies of the bit-map output bits to support parallel accesses. It should be appreciated that, in some embodiments, the accelerator 1204 may also configure the small bit-map output table to store multiple copies of the bit-map output bits to support multiple accesses.
The input data pre-processor 1334 is configured to pre-process the input data to support unique element values queries on any bit-width of elements of the database. To do so, the input data pre-processor 1334 is configured to determine a largest power of 2 elements (i.e., 2m elements) that is to be processed in each cycle as a function of an element width of the input data and a data path width of the accelerator 1204. The input data pre-processor 1334 is further configured to align the elements of the uncompressed input data (i.e., the packed bit vector of column data) and prepend zero to each element of the input data based on the data path width in order to process the largest power of 2 elements per cycle. For example, if the accelerator 1204 has a 32 bit wide data path, the input data pre-processor 1334 may process 32 elements for element with 1 bit, 16 elements for element width of 2 bits, 8 elements for element widths 3 or 4 bits, or 4 elements for element widths from 5 to 8 bits, and so on.
The write request generator 1336 is configured to generate a write request for each element of the input data to access the corresponding bit-map output table to set a corresponding bit-map output bit of the bit-map output table. To do so, the accelerator 1204 may generate a write request address for the corresponding element to access the bit-map output table. Since the input data is pre-processed and aligned with the bit-map output table, if the element width (N) and the hash width (K) are the same, the accelerator 1204 may extract each element and use the corresponding element value as a write request address to issue a write request to the corresponding bit-map output table. However, if the element width (N) is different than the hash width (K), the accelerator 1204 may extract each element and use a corresponding hash value as a write request address to issue a write request to the corresponding bit-map output table. To do so, the accelerator 1204 is configured to generate a hash value that corresponds to each element value for every element of the input data using a hash function that is configured based the element width (N) and the hash width (N).
The bit-map output generator 1338 is configured to output the bit-map output table that indicates unique element values that are present in the input data. As described above, in some embodiments, the bit-map output table may include duplicate copies of the bit-map output to support parallel accesses by mimicking multiple write ported memory. In such embodiments, the bit-map output generator 1338 may combine the corresponding bits from each copy of the bit-map output by using a logical OR operation to generate the true bit-map output bit of the bit-map output table. It should be appreciated that each bit-map output bit of the bit-map output table that has been set indicates a presence of a unique element value that corresponds to the bit-map output bit. As such, the bit-map output generator 1338 may be configured to determine a total number of unique element values that are present in the input data by adding a number of bit-map output bits that have been set. The bit-map output generator 1338 may be further configured to accumulate the bit-map output bit data until a width of the bit-map output reaches the data path width and transmit the bit-map output bit data to the memory 1206 for further analysis or processing by one or more processors 1208. In some embodiments, the bit-map output generator 1338 may directly communicate with one or more processors 1208 to transmit the bit-map output bit table.
Referring now to
In block 1406, the accelerator 1204 receives query configuration data from a requesting processor 1208 of the compute device 1202. For example, the accelerator 1204 may receive from the processor 1208 a pointer to query configuration data in the memory 1206. However, it should be appreciated that, in some embodiments, the query configuration data may be received from other components of the compute device 1202. As described above, the query configuration data may include a number of elements and an element width (N) of the input data and a hash width (K). Accordingly, in block 1408, the accelerator 1204 determines a number elements and an element width (N) of the input data. In some embodiments, in block 1410 the accelerator 1204 may determine a hash width (K) if the element width (N) of the input data is different from the hash width (K). Additionally, in block 1412, the accelerator 1204 determines a number of elements to be processed per cycle based on the element width (N) and a data path width of the accelerator 1204.
Subsequently, the accelerator 1204 constructs a bit-map output table that is configured to store bit-map output bits. The bit-map output bits represent all possible element values of the input data, such that each bit-map output bit represents a unique element value of the input data. Accordingly, the bit-map output table includes two to the hash width (K) power number of bit-map output bits. For example, the bit-map output bits for a 8-bit hash width includes 28 or 256 bits, the bit-map output bits for a 32-bit hash width includes 232 bits or 512 MB, and so on. It should be appreciated that, in the illustrative embodiment, all bit-map output bits stored in the bit-map output table are initially cleared (e.g., a default value of 0).
As described above, the accelerator 1240 configures a different bit-map output table on the accelerator 1240 based on the hash width (K). To do so, in block 1414, the accelerator 1204 determines whether the hash width (K) is greater than a predefined width. If the accelerator 1204 determines that the hash width (K) is smaller than the predefined threshold of element width, the method 1400 advances to block 1416. In block 1416, the accelerator 1204 constructs a small bit-map output table to store the bit-map output bits. The small bit-map output table is to support multiple write ports to provide multiple writes per cycle as indicated in block 1418. For example, if the element width is less than 8 bits, the bit-map output bits are stored in a small bit-map output table with multiple write ports to provide multiple writes per cycle.
Alternatively, if the accelerator 1204 determines that the hash width (K) is greater than the predefined threshold width in block 1414, the method 1400 advances to block 1420. In block 1420, the accelerator 1204 constructs a large bit-map output table to store the bit-map output bits. Although multiple write ports may be implemented to construct a small bit-map output table for processing data having a small element width, implementing multiple write ports for a large data having a large element width may be impractical and costly. As such, the accelerator 1204 may store duplicate copies of the bit-map output bits to support parallel accesses per cycle as indicated in block 1422. To do so, the bit-map output bits are stored in different banks such that each membership bit vector in each bank is accessed simultaneously, thereby supporting parallel accesses. For example, if the width of each element is greater than 8 bits, the accelerator 1204 may configure a large bit-map output table to store duplicate copies of the bit-map output bits to support parallel accesses.
Subsequent to constructing the bit-map output table, in block 1424, the accelerator 1204 determines whether the element width (N) equals to the hash width (K). If the accelerator 1204 determines that the element width (N) and the hash width (K) are the same, the method 1400 skips ahead to block 1428 shown in
Subsequently, in block 1428 shown in
In block 1434, the accelerator 1204 generates a write request for each element of the input data to access the corresponding bit-map output table to set a corresponding bit-map output bit of the bit-map output table. To do so, the accelerator 1204 may generate a write request address for the corresponding element to access the bit-map output table. Since the input data is pre-processed and aligned with the bit-map output table, if the element width (N) and the hash width (K) are the same, the accelerator 1204 may extract each element and use the corresponding element value as a write request address to issue a write request to the corresponding bit-map output table as indicated in block 1436. However, if the element width (N) is different than the hash width (K), the accelerator 1204 may use a corresponding hash value as a write request address to issue a write request to the corresponding bit-map output table as indicated in block 1438. To do so, in block 1440, the accelerator 1204 generates a hash value that corresponds to each element value for every element of the input data. In block 1442, the write request is transmitted to the corresponding bit-map output table. In response to generating the write requests for each element of the input data, in block 1444, the accelerator 1204 accesses the corresponding bit-map output table to set the corresponding bit-map output bits based on the write requests.
Subsequently, in block 1446, the accelerator 1204 output the bit-map output table that includes the bit-map output bits indicating unique element values that are present in the input data. As discussed above, each output bit of the bit-map output table that has been set corresponds to a presence of a unique element value. As such, in some embodiments, a total number of unique elements present in the input data may be determined by generating a population count by adding a number of bit-map output bits that have been set as indicated in block 1448. In some embodiments, in block 1450, the accelerator 1204 may accumulate the bit-map output table data until a width of the bit-map output table data reaches the data path width of the accelerator and transmit the bit-map output table to the memory 1206 for further processing by one or more processors 1208. In some embodiments, the bit-map output table may be directly transmitted to the processor 1208.
Illustrative examples of the technologies disclosed herein are provided below. An embodiment of the technologies may include any one or more, and any combination of, the examples described below.
Example 1 includes a compute device for determining unique values, the compute device comprising one or more accelerator devices, each accelerator device is to receive input data and query configuration data, the input data including a packed array of unsigned integers of column data from a database and the query configuration data including an element width of the input data; generate, in response to receiving the query configuration data, a bit-map output table based on the query configuration data; generate a write request for each element of the input data to set a corresponding bit-map output bit of the bit-map output table which corresponds to an element value of the corresponding element; set the corresponding bit-map output bit to indicate a presence of the corresponding element in response to generation of the write request; and output the bit-map output table indicative of unique elements that are present in the input data in response to setting of the corresponding bit-map output bit.
Example 2 includes the subject matter of Example 1, and wherein the each accelerator is further to decompress, in response to importation of the input data, the input data; and pre-process, in response to decompression of the input data, the decompressed input data.
Example 3 includes the subject matter of any of Examples 1 and 2, and wherein to pre-process the decompressed input data comprises to align elements of the packed bit vector of the input data based on a width of elements of the decompressed input data and prepend zeroes to match a data path width.
Example 4 includes the subject matter of any of Examples 1-3, and wherein the query configuration data further includes a hash width.
Example 5 includes the subject matter of any of Examples 1-4, and wherein the each accelerator is further to determine whether the element width is greater than the hash width; program, in response to a determination that the element width is greater than the hash width, a hash function to generate a hash value that corresponds to the element value of the corresponding element; and generate, in response to programming of the hash function, a hash value for each element value by performing the hash function on the input data.
Example 6 includes the subject matter of any of Examples 1-5, and wherein to generate the write request comprises to generate a write request address based on a hash value of the corresponding element.
Example 7 includes the subject matter of any of Examples 1-6, and wherein to generate the write request comprises to determine a write request address based on an element value of the corresponding element.
Example 8 includes the subject matter of any of Examples 1-7, and wherein to generate the bit-map output table based on the query configuration data comprises to determine whether the element width of the input data exceeds a threshold; construct, in response to a determination that the element width exceeds the threshold, a large bit-map output table to store the bit-map output bits; and construct, in response to a determination that the element width does not exceed the threshold, a small bit-map output table to store the bit-map output bits.
Example 9 includes the subject matter of any of Examples 1-8, and wherein the large bit-map output table supports parallel accesses by duplication of the bit-map output table and the small-sized table supports multiple accesses via multiple write ports and duplication of the bit-map output table.
Example 10 includes the subject matter of any of Examples 1-9, and wherein to set the corresponding bit-map output bit comprises to determine whether the element width exceeds a threshold; access, in response to a determination that the element width exceeds the threshold, the large bit-map output table to set the corresponding bit-map output bit; and access, in response to a determination that the element width does not exceed the threshold, the small bit-map output table to set the corresponding bit-map output bit.
Example 11 includes the subject matter of any of Examples 1-10, and wherein to output the bit-map output table comprises to generate a population count indicating a number of unique elements based on the bit-map output table.
Example 12 includes the subject matter of any of Examples 1-11, and wherein the each accelerator is further to accumulate the bit-map output table until a width of the bit-map output table matches a data path width.
Example 13 includes a method for determining unique values by a compute device, the method comprising receiving, by an accelerator of the compute device, input data and query configuration data, the input data including a packed array of unsigned integers of column data from a database and the query configuration data including an element width of the input data; generating, in response to receiving the query configuration data and by the accelerator, a bit-map output table based on the query configuration data; generating, by the accelerator, a write request for each element of the input data to set a corresponding bit-map output bit of the bit-map output table which corresponds to an element value of the corresponding element; setting, by the accelerator, the corresponding bit-map output bit to indicate a presence of the corresponding element in response to generating the write request; and outputting, by the accelerator, the bit-map output table indicative of unique elements that are present in the input data in response to setting the corresponding bit-map output bit.
Example 14 includes the subject matter of Example 13, and further including decompressing, in response to importing the input data and by the accelerator, the input data; and pre-processing, in response to decompressing the input data and by the accelerator, the decompressed input data.
Example 15 includes the subject matter of any of Examples 13 and 14, and wherein pre-processing the decompressed input data comprises aligning, by the accelerator, elements of the packed bit vector of the input data based on a width of elements of the decompressed input data and prepending, by the accelerator, zeroes to match a data path width.
Example 16 includes the subject matter of any of Examples 13-15, and wherein the query configuration data further includes a hash width.
Example 17 includes the subject matter of any of Examples 13-16, and further including determining, by the accelerator, whether the element width is greater than the hash width; programming, in response to a determination that the element width is greater than the hash width and by the accelerator, a hash function to generate a hash value that corresponds to the element value of the corresponding element; and generating, in response to programming the hash function and by the accelerator, a hash value for each element value by performing the hash function on the input data.
Example 18 includes the subject matter of any of Examples 13-17, and wherein generating the write comprises determining, by the accelerator, a write request address based on a hash value of the corresponding element.
Example 19 includes the subject matter of any of Examples 13-18, and wherein generating the write comprises determining, by the accelerator, a write request address based on an element value of the corresponding element.
Example 20 includes the subject matter of any of Examples 13-19, and wherein generating the bit-map output table based on the query configuration data comprises determining, by the accelerator, whether the element width of the input data exceeds a threshold; constructing, in response to a determination that the element width exceeds the threshold, a large bit-map output table to store the bit-map output bits; and constructing, in response to a determination that the element width does not exceed the threshold, a small bit-map output table to store the bit-map output bits.
Example 21 includes the subject matter of any of Examples 13-20, and wherein the large bit-map output table supports parallel accesses by duplicating the bit-map output table and the small-sized table supports multiple accesses via multiple write ports and duplicating the bit-map output table.
Example 22 includes the subject matter of any of Examples 13-21, and wherein setting the corresponding bit-map output bit comprises determining, by the accelerator, whether the element width exceeds a threshold; accessing, in response to a determination that the element width exceeds the threshold and by the accelerator, the large bit-map output table to set the corresponding bit-map output bit; and accessing, in response to a determination that the element width does not exceed the threshold and by the accelerator, the small bit-map output table to set the corresponding bit-map output bit.
Example 23 includes the subject matter of any of Examples 13-22, and wherein outputting the bit-map output table comprises generating, by the accelerator, a population count indicating a number of unique elements based on the bit-map output table.
Example 24 includes the subject matter of any of Examples 13-23, and further including accumulating, by the accelerator, the bit-map output table until a width of the bit-map output table matches a data path width.
Example 25 includes a compute device comprising means for performing the method of any of Examples 13-24.
Example 26 includes one or more machine-readable storage media comprising a plurality of instructions stored thereon that, in response to being executed, cause a compute device to perform the method of any of Examples 13-24.
Example 27 includes a compute device comprising a compute engine to perform the method of any of Examples 13-24.
Example 28 includes a compute device for determining unique values, the compute device comprising one or more accelerator devices, each accelerator device comprising means for receiving input data and query configuration data, the input data including a packed array of unsigned integers of column data from a database and the query configuration data including an element width of the input data; means for generating, in response to receiving the query configuration data, a bit-map output table based on the query configuration data; means for generating a write request for each element of the input data to set a corresponding bit-map output bit of the bit-map output table which corresponds to an element value of the corresponding element; means for setting the corresponding bit-map output bit to indicate a presence of the corresponding element in response to generating the write request; and means for outputting the bit-map output table indicative of unique elements that are present in the input data in response to setting the corresponding bit-map output bit.
Example 29 includes the subject matter of Example 28, and wherein the each accelerator device further comprises means for decompressing, in response to importing the input data, the input data; and means for pre-processing, in response to decompressing the input data, the decompressed input data.
Example 30 includes the subject matter of any of Examples 28 and 29, and wherein the means for pre-processing the decompressed input data comprises means for aligning elements of the packed bit vector of the input data based on a width of elements of the decompressed input data and means for prepending zeroes to match a data path width.
Example 31 includes the subject matter of any of Examples 28-30, and wherein the query configuration data further includes a hash width.
Example 32 includes the subject matter of any of Examples 28-31, and wherein the each accelerator further comprises means for determining whether the element width is greater than the hash width; means for programming, in response to a determination that the element width is greater than the hash width, a hash function to generate a hash value that corresponds to the element value of the corresponding element; and means for generating, in response to programming the hash function, a hash value for each element value by performing the hash function on the input data.
Example 33 includes the subject matter of any of Examples 28-32, and wherein the means for generating the write comprises means for determining a write request address based on a hash value of the corresponding element.
Example 34 includes the subject matter of any of Examples 28-33, and wherein the means for generating the write comprises means for determining a write request address based on an element value of the corresponding element.
Example 35 includes the subject matter of any of Examples 28-34, and wherein the means for generating the bit-map output table based on the query configuration data comprises means for determining whether the element width of the input data exceeds a threshold; means for constructing, in response to a determination that the element width exceeds the threshold, a large bit-map output table to store the bit-map output bits; and means for constructing, in response to a determination that the element width does not exceed the threshold, a small bit-map output table to store the bit-map output bits.
Example 36 includes the subject matter of any of Examples 28-35, and wherein the large bit-map output table supports parallel accesses by duplicating the bit-map output table and the small-sized table supports multiple accesses via multiple write ports and duplicating the bit-map output table.
Example 37 includes the subject matter of any of Examples 28-36, and wherein the means for setting the corresponding bit-map output bit comprises means for determining whether the element width exceeds a threshold; means for accessing, in response to a determination that the element width exceeds the threshold, the large bit-map output table to set the corresponding bit-map output bit; and means for accessing, in response to a determination that the element width does not exceed the threshold, the small bit-map output table to set the corresponding bit-map output bit.
Example 38 includes the subject matter of any of Examples 28-37, and wherein the means for outputting the bit-map output table comprises means for generating a population count indicating a number of unique elements based on the bit-map output table.
Example 39 includes the subject matter of any of Examples 28-38, and wherein the each accelerator further comprises means for accumulating the bit-map output table until a width of the bit-map output table matches a data path width.
Number | Date | Country | Kind |
---|---|---|---|
201741030632 | Aug 2017 | IN | national |
Number | Date | Country | |
---|---|---|---|
62584401 | Nov 2017 | US |