Method and apparatus for processing data associated with a computer accelerator
The method and apparatus provide data integrity protection and error correction for computational acceleration devices by generating and verifying verification values, addressing data integrity challenges in data-flow-based operations and ensuring efficient, error-free data processing.
Patent Information
- Application Number
- US19/690589
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-06-03
- Filing Date
- 2026-05-28
- Publication Date
- 2026-12-03
AI Technical Summary
Existing computational acceleration devices lack effective methods for ensuring data integrity and protection during data processing, particularly in data-flow-based operations, which are prone to errors and misconfigurations.
A method and apparatus that utilize integrity protection mechanisms, such as ECC and hash methods, to generate and verify verification values associated with data elements, ensuring data integrity by generating a second piece of information that characterizes the configuration and address information of the computational acceleration device, allowing for safeguarding and correction of data.
Ensures end-to-end data integrity protection with verification of runtime behavior, detecting and correcting errors, and enabling separate execution of independent applications on shared memory while maintaining integrity protection across all units.
Smart Images

Figure US20260386901A1-D00000_ABST
Abstract
Description
FIELD
[0001] The present disclosure relates to a method for processing data associated with a computational acceleration device.
[0002] The present disclosure further relates to an apparatus for processing data associated with a computational acceleration device.SUMMARY
[0003] Some examples relate to a method, for example a computer-implemented method, for processing data associated with a computational acceleration device, wherein, for example, the computational acceleration device is designed to operate in a data-flow-based manner, and wherein the method comprises: providing a first piece of information that characterizes a configuration of the computational acceleration device, wherein the configuration is associated with at least one data element to be processed by means of the computational acceleration device; generating a second piece of information that characterizes at least one verification value, which can be ascertained, for example, by means of an integrity protection method, based on the first piece of information and optionally based on at least one of the following elements: a) the at least one data element to be processed, or b) address information associated with the at least one data element to be processed and / or with the computational acceleration device, and optionally assigning the second piece of information to the at least one data element to be processed. In some examples, this allows for the safeguarding of the information to be processed by means of the computational acceleration device, for example data, such as input data for the computational acceleration device, for example with regard to a configuration associated with the data, for example input data.
[0004] In some examples, the computational acceleration device is at least one of the following elements: a) a data flow acceleration device, or b) an in-memory computing device, for example for in-memory computing (“IMC”), for example for performing computational operations that can be used for neural network inference. For example, the computational acceleration device may be designed and / or configured as a vector matrix multiplier device.
[0005] In some examples, “data-flow-based operation” refers to an operating mode of a computational acceleration device in which the processing of data is not controlled, for example, by a central sequential command control, but rather by the arrival and availability of data, so that processing units of the computational acceleration device can, for example, forward and process data directly and in an event-driven manner, thereby allowing, for example, parallel and low-latency data processing.
[0006] In some examples, the first piece of information is intended to characterize the configuration of the computational acceleration device at a time or time interval at which the at least one data element is processed by means of the computational acceleration device.
[0007] In some examples, generating the second piece of information comprises at least one of the following elements: a) using an integrity protection method, for example of the ECC (error correction code) type, or b) using a scatter value method, for example a hash method, to ascertain a hash value.
[0008] In some examples, assigning the second piece of information to the at least one data element to be processed involves generating a data packet, wherein the data packet comprises the at least one data element to be processed and the second piece of information.
[0009] In some examples, providing the first piece of information comprises at least one of the following elements: a) generating, for example locally generating, the first piece of information, for example in an apparatus for the computational acceleration device, or b) receiving the first piece of information from at least one other device.
[0010] In some examples, the method comprises at least one of the following elements: a) providing at least the second piece of information, for example the second piece of information together with the at least one data element to be processed, to the computational acceleration device and / or an apparatus associated with the computational acceleration device, or b) verifying the second piece of information, for example based on at least one of the data elements to be processed (e.g., using an appropriate checksum and an appropriate data element) and / or an actual and / or current configuration and / or state of the computational acceleration device and / or on actual and / or current address information associated with the computational acceleration device and / or other aspects, for example features or parts, of the first piece of information, wherein, for example, the verification comprises at least one of the following elements: b1) verifying the second piece of information before the at least one data element to be processed is processed by the computational acceleration device, or b2) verifying the second piece of information during the processing of the at least one data element to be processed by the computational acceleration device, or b3) verifying the second piece of information after the at least one data element to be processed has been processed by the computational acceleration device, or c) for example, based on the verification, correcting, discarding, or using the at least one data element to be processed.
[0011] In some examples, the first piece of information comprises at least one of the following elements: a) information that characterizes a processing sequence, or b) information that characterizes a processing element or a group of processing elements of the computational acceleration device for processing the at least one data element to be processed, or c) information that characterizes a processing operation, for example one that is currently active, or d) information that characterizes a lifetime for the at least one data element to be processed, or e) information that characterizes a partition.
[0012] Some examples relate to a method, for example a computer-implemented method, for processing data associated with a computational acceleration device, wherein, for example, the computational acceleration device is designed to operate in a data-flow-based manner, wherein a first piece of information characterizes a configuration of the computational acceleration device, wherein the configuration is associated with at least one data element to be processed by means of the computational acceleration device, and wherein the method comprises: receiving a second piece of information that characterizes at least one verification value, which can be ascertained, for example, by means of an integrity protection method, wherein the second piece of information can be generated and / or is generated based on the first piece of information and optionally based on at least one of the following elements: a) the at least one data element to be processed by means of the computational acceleration device, or b) address information associated with the at least one data element to be processed and / or with the computational acceleration device.
[0013] In some examples, the method comprises: verifying the second piece of information, for example, based on an actual and / or current configuration of the computational acceleration device and / or on actual and / or current address information associated with the computational acceleration device, wherein, for example, the verification comprises at least one of the following elements: b1) verifying the second piece of information (for example, based on at least one of the data elements to be processed and / or an actual and / or current configuration or state of the computational acceleration device and / or on actual and / or current address information associated with the computational acceleration device and / or other features of the first piece of information) before the computational acceleration device processes the at least one data element to be processed, or b2) verifying the second piece of information during the processing of the at least one data element to be processed by the computational acceleration device, or b3) verifying the second piece of information after the computational acceleration device has processed the at least one data element to be processed.
[0014] In some examples, the method comprises: for example, based on the verification, correcting, discarding, or using the at least one data element to be processed.
[0015] Some examples relate to an apparatus for processing data associated with a computational acceleration device, wherein the apparatus for implementing the method is designed according to the present disclosure.
[0016] In some examples, the apparatus is implemented by means of a hardware circuit, for example in a purely hardware-based manner. Some examples relate to a system comprising at least one computational acceleration device and at least one apparatus according to the present disclosure. In some examples, at least one component of the system makes it possible to provide the second piece of information locally, for example.
[0017] Some examples relate to a computer-readable storage medium comprising commands that, when executed by a computer, cause said computer to perform the method according to the present disclosure.
[0018] Some examples relate to a computer program comprising commands that, when the program is executed by a computer, cause said computer to perform the method according to the present disclosure.
[0019] Some examples relate to a computer-implemented data structure comprising at least one of the following elements: a) a first piece of information that characterizes a configuration of a computational acceleration device, wherein the configuration is associated with at least one data element to be processed by means of the computational acceleration device, or b) a second piece of information that characterizes at least one verification value, which can be ascertained, for example, by means of an integrity protection method, wherein the second piece of information can be generated and / or is generated based on the first piece of information and optionally based on at least one of the following elements: b1) the at least one data element to be processed, or b2) address information associated with the at least one data element to be processed and / or with the computational acceleration device, or c) the at least one data element to be processed.
[0020] Some examples relate to a data carrier signal that transfers and / or characterizes at least one of the following elements: a) the computer program according to the present disclosure, or b) the data structure according to the present disclosure.
[0021] Further examples relate to the use of the method according to the present disclosure and / or of the apparatus according to the present disclosure, and / or of the system according to the present disclosure and / or of the computer-readable storage medium according to the present disclosure and / or of the computer program according to the present disclosure and / or of the data structure according to the present disclosure and / or of the data carrier signal according to the present disclosure for at least one of the following elements: a) extending end-to-end protection, for example, for data to be processed by means of the computational acceleration device and / or information associated with data to be processed by means of the computational acceleration device, for example regarding a configuration of the computational acceleration device; or b) combining end-to-end data protection with verifiability, for example verification, of the correctness of the runtime behavior of the computational acceleration device; or c) providing a method for protecting the integrity of input data for the computational acceleration device; or d) allowing a protection scheme that includes a plurality of units, for example all units, for example processing units, for example processing elements, on a data path of the computational acceleration device and / or maintains a predefinable integrity protection level; or e) detecting errors in the region of at least one of the following elements: e1) data, or e2) memory addressing, or e3) runtime state, or e4) configuration of the computational acceleration device, for example at a level of processing elements of the computational acceleration device, or f) allowing separate execution of a plurality of independent applications and / or partitions in parallel on a computational acceleration device, for example with a shared memory, for example by identifying the applications and / or partitions and detecting possible interference between the applications and / or partitions, or g) using at least one sequencing pattern, for example having predefinable sequence values, that can be used for protecting a runtime state and / or configuration of the computational acceleration device.
[0022] Further features, possible applications and advantages can be found in the following description of examples, which are shown in the figures. All features described or shown form the subject matter of the present disclosure individually or in any combination, regardless of their wording or representation in the description or in the figures.BRIEF DESCRIPTION OF THE DRAWINGS
[0023] FIG. 1 schematically shows a flow chart, according to an example embodiment.
[0024] FIG. 2 schematically shows a block diagram, according to an example embodiment.
[0025] FIG. 3 schematically shows a flow chart, according to an example embodiment.
[0026] FIG. 4A schematically shows a flow chart, according to an example embodiment.
[0027] FIG. 4B schematically shows a flow chart, according to an example embodiment.
[0028] FIG. 5 schematically shows a flow chart, according to an example embodiment.
[0029] FIG. 6 schematically shows a data flow, according to an example embodiment.
[0030] FIG. 7A schematically shows a block diagram, according to an example embodiment.
[0031] FIG. 7B schematically shows a block diagram, according to an example embodiment.
[0032] FIG. 7C schematically shows a block diagram, according to an example embodiment.
[0033] FIG. 7D schematically shows a block diagram, according to an example embodiment.
[0034] FIG. 7E schematically shows a block diagram, according to an example embodiment.
[0035] FIG. 8 schematically shows a block diagram, according to an example embodiment.
[0036] FIG. 9 schematically shows aspects of uses, according to an example embodiment.DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
[0037] Some examples (see, e.g., FIGS. 1, 2) relate to a method, for example a computer-implemented method, for processing data associated with a computational acceleration device 10 (FIG. 2), wherein, for example, the computational acceleration device 10 is designed to operate in a data-flow-based manner, wherein the method comprises: providing 100 (FIG. 1) a first piece of information I-1 that characterizes a configuration CFG (FIG. 2) of the computational acceleration device 10, wherein the configuration CFG is associated with at least one data element DE-1 to be processed by means of the computational acceleration device 10; generating 102 (for example locally generating or ascertaining, for example receiving) a second piece of information I-2 that characterizes at least one verification value PW, which can be ascertained, for example, by means of an integrity protection method, based on the first piece of information I-1 and optionally based on at least one of the following elements: a) the at least one data element DE-1 to be processed, or b) address information I-ADR associated with the at least one data element DE-1 to be processed and / or with the computational acceleration device 10, and optionally assigning 104 the second piece of information I-2 to the at least one data element DE-1 to be processed. In some examples, this allows for the safeguarding of the information to be processed by means of the computational acceleration device 10, for example data, such as input data DE-1 for the computational acceleration device 10, for example, with regard to a configuration CFG associated with the data, for example input data. In some examples, the second piece of information I-2 can be received from at least one other device instead of being generated locally.
[0038] In some examples, shown in FIG. 2, the computational acceleration device 10 is at least one of the following elements: a) a data flow acceleration device, or b) an in-memory computing device, for example for in-memory computing, for example for performing computational operations that can be used for neural network inference. For example, the computational acceleration device may be designed and / or configured as a vector matrix multiplier device. An internal memory of the computational acceleration device 10, according to some examples, is symbolized by the dashed block 14.
[0039] In some examples, shown in FIG. 2, the first piece of information I-1 characterizes the configuration CFG of the computational acceleration device 10 at a time or time interval at which the at least one data element DE-1 is processed by means of the computational acceleration device 10.
[0040] In some examples, shown in FIG. 1, the generation 102 of the second piece of information I-2 comprises at least one of the following elements: a) using 102a an integrity protection method, for example of the ECC (error correction code) type, or b) using 102b a scatter value method, for example a hash method, to ascertain a hash value. For example, the ECC method may allow for the correction of data in at least some error cases, whereas the hash value allows for at least error detection, but not, for example, correction.
[0041] In some examples, shown in FIG. 1, assigning 104 the second piece of information I-2 to the at least one data element DE-1 to be processed involves generating 104a a data packet DP, see also FIG. 4A, wherein the data packet DP comprises the at least one data element DE-1 to be processed and the second piece of information I-2. In the example of FIG. 4A, block E1 symbolizes, for example, an implementation of an integrity protection method, for example of the ECC type.
[0042] In some examples, shown in FIG. 1, the provision 100 of the first piece of information I-1 comprises at least one of the following elements: a) generating 100a, for example locally generating, the first piece of information I-1, for example in an apparatus 200 (FIGS. 2, 8) for the computational acceleration device 10, or b) receiving 100b the first piece of information I-1 from at least one further device 20, wherein, for example, the at least one further device 20 is configured to specify the configuration CFG for the computational acceleration device 10.
[0043] In some examples, shown in FIG. 3, the method comprises at least one of the following elements: a) providing 110 at least the second piece of information I-2, for example the second piece of information I-2 together with the at least one data element DE-1 to be processed, for example in the form of a data packet DP (FIG. 4A), for the computational acceleration device 10 and / or an apparatus 200 associated with the computational acceleration device 10, or b) verifying 112 the second piece of information I-2, for example, based on an actual and / or current configuration CFG′ of the computational acceleration device 10 and / or on actual and / or current address information I-ADR′ associated with the computational acceleration device, wherein, for example, the verifying 112 comprises at least one of the following elements: b1) verifying112a the second piece of information I-2 before processing of the at least one data element DE-1 to be processed by the computational acceleration device, or b2) verifying 112b the second piece of information I-2 during processing of the at least one data element DE-1 to be processed by the computational acceleration device, or b3) verifying 112c the second piece of information I-2 after processing of the at least one data element DE-1 to be processed by the computational acceleration device, or c) for example, based on the verification 112, correcting 114a, discarding 114b, or using 114c (e.g., if verifying 112 indicates no error) the at least one data element DE-1 to be processed. Collectively, reference numeral 114 thus symbolizes control of an operation, for example the computational acceleration device 10 and / or an associated apparatus 200, for example based on the verification 112.
[0044] FIG. 4B schematically shows a data packet DP according to some examples, comprising the at least one data element DE-1 and associated second piece of information I-2, for example obtained by block El according to FIG. 4A. Block CFG′ according to FIG. 4B symbolizes an actual configuration of the computational acceleration device 10 (FIG. 2), and block I-ADR′ symbolizes actual and / or current address information associated with the computational acceleration device 10, which can be verified by means of block E1′. For example, block E1′ symbolizes an implementation of an integrity protection method, for example at least similar to block E1 according to FIG. 4A, for ascertaining the information I-2′, based, for example, on at least some of the elements DE-1, I-2, I-ADR', CFG′. If the information I-2′ matches the second piece of information I-2 of the data packet DP, in some examples it can be concluded that there is no error, for example the actual configuration CFG′ is correct, i.e., as indicated by the first piece of information I-1 (and / or that e.g., the relevant address(es) and / or data are also correct). In this case, the at least one data element, DE-1, can be used directly. Otherwise, if, for example, a (correctable) error is present, the at least one data element DE-1 can first be corrected and then used by means of block E2, which, for example, provides error correction according to an ECC method.
[0045] In some examples, shown in FIG. 2, the first piece of information I-1 comprises at least one of the following elements: a) information I-1a that characterizes a processing sequence (e.g., associated with the at least one data element DE-1), or b) information I-1b that characterizes a processing element (not shown) or a group of processing elements of the computational acceleration device 10 for processing the at least one data element DE-1 to be processed, or c) information I-1c that characterizes a processing operation, for example one that is currently active, or d) information I-1d that characterizes a lifetime for the at least one data element DE-1 to be processed, or e) information I-1e that characterizes a partition.
[0046] The aspects described above with reference to FIG. 1 to 4B can be implemented, for example, by means of at least one apparatus 200 (FIG. 2) for a computational acceleration device 10.
[0047] Some examples, shown in FIG. 5, relate to a method, for example a computer-implemented method, for processing data associated with a computational acceleration device 10 (FIG. 2), wherein, for example, the computational acceleration device 10 is designed to operate in a data-flow-based manner, wherein a first piece of information I-1 characterizes a configuration CFG of the computational acceleration device 10, wherein the configuration CFG is associated with at least one data element DE-1 to be processed by means of the computational acceleration device 10, wherein the method comprises: receiving 150 a second piece of information I-2 that characterizes at least one verification value PW, which can be ascertained, for example, by means of an integrity protection method, wherein the second piece of information I-2 can be generated and / or is generated based on the first piece of information I-1 and optionally based on at least one of the following elements (see also block 102 according to FIG. 1): a) the at least one data element DE-1 to be processed by means of the computational acceleration device, or b) address information I-ADR associated with the at least one data element to be processed and / or with the computational acceleration device.
[0048] In some examples, shown in FIG. 5, the method comprises: verifying 152 the second piece of information I-2, for example, based on an actual and / or current configuration CFG′ (see also FIGS. 3, 4A) of the computational acceleration device and / or on actual and / or current address information I-ADR′ associated with the computational acceleration device and / or at least one data element DE-1 to be processed, wherein, for example, the verification 152 comprises at least one of the following elements: b1) verifying 152a the second piece of information I-2 before processing of the at least one data element to be processed by the computational acceleration device, or b2) verifying 152b the second piece of information I-2 during processing of the at least one data element to be processed by the computational acceleration device, or b3) verifying 152c the second piece of information I-2 after processing of the at least one data element to be processed by the computational acceleration device.
[0049] In some examples, shown in FIG. 5, the method comprises: for example, based on the verification 152, correcting 154a, discarding 154b, or using 154c the at least one data element DE-1 to be processed.
[0050] The aspects described above with reference to FIGS. 2, 5 can be implemented, for example, by means of at least one apparatus 200, 200′ for a computational acceleration device 10, wherein, for example, the second piece of information I-2 has not been generated by the apparatus 200 or locally in the apparatus 200, but has been generated, for example, by another apparatus 200′ and sent to the apparatus 200. In some examples, the further apparatus 200′ may be designed at least similarly to the apparatus 200.
[0051] Further aspects and examples are described below, which, in further examples, can each be combined individually or in any combination with one another with at least one of the aspects and / or examples described above.
[0052] In some examples, shown in FIG. 2, the principle according to the present disclosure can be used to provide an integrity protection scheme for a data input for the computational acceleration device 10, for example in the form of at least one data element DE-1, which can, for example, utilize a data flow from IMC-based accelerators (and / or from other data flow architectures) and which allows the detection of, for example, runtime errors (such as processing incorrect data or misconfiguration of the processing units).
[0053] For example, the data input for the computational acceleration device 10 may consist of activations and / or weights, for example for neural network inference.
[0054] As already indicated above, the principle according to the present disclosure allows the realization of a method for combining end-to-end data integrity protection with a verification of the correctness of the runtime behavior. In the event of data corruption, for example, a correction is also possible. In some examples, shown in FIGS. 2, 6, a protected data path P comprises, for example, at least one of the following elements: a) data written to a memory 12 associated with the computational acceleration device 10 which are, for example, directly or indirectly accessible; or b) data stored in memory 12 and / or 14; or c) data read from memory 12 (and / or 14) ; or d) data transferred from memory 12 (and / or 14) to the computational acceleration device 10 and / or to processing elements PE (not shown in FIGS. 2, 6; see, for example, FIG. 7E) of the computational acceleration device 10; or e) data entering the computational acceleration device 10 and / or its processing elements (e.g., from memory 12 and / or 14).
[0055] In some examples, the memory 12 is not, for example, exclusively assigned to the computational acceleration device 10, but rather associated therewith. In some examples, the memory 12 may be, for example, a memory that the computational acceleration device 10 can access, at least temporarily. In other words, “memory 12 associated with the computational acceleration device 10” may, in some examples, mean that the memory 12 is a memory that the computational acceleration device 10 can access at least temporarily, but which is not, for example, specifically and / or exclusively, associated with the computational acceleration device 10.
[0056] In some examples, the principle according to the present disclosure allows an efficient method for protecting the integrity of input data for data flow accelerators, for example of the ICM type, but not limited to the ICM type.
[0057] In some examples, the principle according to the present disclosure allows a protection scheme that includes a plurality of, for example all, units on a data path of the architecture of the computational acceleration device 10 (such as network-on-chip (“NOC”) or SRAM buffer, etc.) while maintaining the level of integrity protection provided by the principle according to the present disclosure.
[0058] In some examples, shown in FIG. 6, a first and last apparatus or entity, for example computational acceleration devices 10a and 10b, can encode (e.g., generate the second piece of information; see also block 102 according to FIG. 1) or decode (e.g., verify the second piece of information I-2; see, for example, block 112 according to FIG. 3) the protection scheme. Other entities 10′ that may be involved in a data path P between the computational acceleration devices 10a and 10b do not need to encode and / or decode the data and / or check for damage in some examples (but can do so in some examples, e.g., if necessary). In some examples, the other entities 10′ that may be involved in a data path P can support the protection according to the present disclosure, for example, by transporting the data DE-1 including the protection information, for example the second piece of information I-2, for example in the form of the at least one data packet DP; see also FIGS. 4A, 4B.
[0059] In some examples, the principle according to the present disclosure allows the provision of methods and systems that, in addition to monitoring data for errors, can also, for example, detect errors in memory addressing (e.g., address errors; see, for example, the information I-ADR (FIG. 4A) ) and / or furthermore, for example, in the runtime state / in a configuration (e.g., incorrect data received with a different destination, or skipped data, old data, incorrect operations, etc.) at a level of processing elements (e.g., IMC macro or PE (FIGS. 7D, 7E) ) of computational acceleration devices 10, 10a, 10b, 10′ (see also FIGS. 2, 6), for example by protecting the input values DE-1 by means of the second piece of information I-2.
[0060] In some examples, the principle according to the present disclosure allows a separate execution of a plurality of independent applications or partitions in parallel on a computational acceleration device 10 (FIG. 2) such as a data flow accelerator, for example with shared memory 12 and / or 14, for example, by identifying applications and / or detecting interference between the applications.
[0061] In some examples, the principle according to the present disclosure allows the use of, for example, arbitrary sequencing patterns (e.g., values that increase or decrease or are constant, etc.) of values that are used, for example, to protect the runtime state / configuration CFG.
[0062] The following are terms and definitions that, in some examples, can describe at least some aspects related to the present disclosure.
[0063] Processing element (PE). For example, it forms a part of the computational acceleration device 10, which performs the calculations.
[0064] Partition: for example, an independent or dependent part of an application or workload (e.g., “work package”) that can be executed independently with or without separation on the computational acceleration device 10. Different partitions may, for example, require different configurations CFG for the data processing and the computational acceleration device, and thus be associated with different first and / or second pieces of information I-1, I-2.
[0065] Input data: for example, such data that are processed or used by the computational acceleration device to calculate a result; see, for example, the at least one data element DE-1. The input data may consist of, for example, activations and / or weights and / or kernel configurations, etc.
[0066] Data element: for example a portion of the input data that is processed or used by the computational acceleration device in one or more steps may also be referred to as “original data.”
[0067] Sideband data: for example additional data or information that are used, for example, to protect the integrity of the original data and / or to protect the runtime state, for example address or status information. In some examples, the sideband data are not part of the data packets DP and are provided (if necessary) via another channel. In some examples, the second piece of information I-2 may be derived from the sideband data. In some examples, the sideband data may be part of at least one data packet DP.
[0068] Verification value PW: value that is calculated, for example, by an integrity protection algorithm (e.g., ECC) that encrypts, characterizes, or encodes the original data (e.g., data element DE-1) and the sideband data. It is used, for example, to protect all inputs (e.g., data element DE-1 and sidebar data) from data corruption that may occur between a calculation of the verification value PW and a verification; see, for example, block 112 according to FIG. 3.
[0069] Data packet DP: contains, for example, one or more data elements DE-1 (e.g., “original data”) and, for example, the verification value for (data and / or runtime) integrity protection, for example in the form of the second piece of information I-2; see FIG. 4A. In some examples, a data packet DP contains a single data element DE-1, or a plurality of data elements, for example organized in the form of at least one vector, wherein the data element(s) is / are consumed, for example, used by, for example, one or more processing elements of the computational acceleration device, for example during the calculation(s).
[0070] Verification: for example a comparison of the verification value PW supplied in the data packet DP, for example in the form of the second piece of information I-2, for example to an expected verification value I-2′ (e.g., ascertained, e.g., calculated, based on the received data DE-1, DP and the local sideband data CFG′, I-ADR′ (FIG. 4B) ). Or, in some (other) examples, another method for evaluating the correctness of the integrity of the data packet DP based on its verification value PW.
[0071] Provisioning algorithm: an algorithm (e.g., implementable in software and / or hardware) that configures the computational acceleration device 10 so as to calculate the results for the input data. In some examples, the provisioning algorithm can be executed offline, for example before runtime, and / or as part of runtime, for example by any software and / or hardware method. In some examples, the provisioning algorithm creates “provisioning information,” for example in the form of the first piece of information I-1, and / or possibly other data, for example configuration data.
[0072] Provisioning information: for example in the form of the first piece of information I-1, for example characterizing the configuration CFG of the computational acceleration device 10 at a time or time range of the use of the at least one data element DE-1. In some examples the configuration is known a priori by the (e.g., provisioning) algorithm, which configures the computational acceleration device 10, for example before each (e.g., new) operation (e.g., neural network layer).
[0073] Runtime status: for example a current configuration of the computational acceleration device, for example during runtime. For example, it reflects the setting that was ascertained by the (e.g., provisioning) algorithm before the execution of the current process (e.g., neural network layer). In some examples, the runtime state may be part of the actual and / or current configuration CFG′.
[0074] Verification of runtime behavior: In some examples, the runtime behavior of the computational acceleration device is considered correct when the intended configuration (e.g., characterized by the “provisioning information,” e.g., in the form of the first piece of information I-1) and the actual configuration (CFG′, e.g., “runtime status”) match; see, for example, blocks I-2, I-2′ according to FIG. 4B or the verification 112, 152 according to FIGS. 3, 5. Otherwise, an error may have occurred (e.g., due either to data corruption or misconfiguration).
[0075] The following describes, with reference to FIG. 7A to 7E, a process for providing any workload (e.g., a neural network) to any computational acceleration device, for example a data flow hardware accelerator, for configuring the computational acceleration device, and for executing, i.e., processing, the workload according to some examples.
[0076] In FIG. 7A, block E10 symbolizes a memory comprising input data E11 (e.g., consisting of or having activations and / or kernel configuration). The input data E11 are stored, for example, in the memory E10 designed as a local memory E10, or in some examples, information about the memory location of the input data E11 (e.g., addresses for activations and / or kernel configurations) is stored in the local memory E10. The memory E10 is, for example, either part of the computational acceleration device 10 (see, e.g., element 14 according to FIG. 2) or can be accessed, for example, directly or indirectly by the computational acceleration device; see also block 12 according to FIG. 2.
[0077] FIG. 7B shows a provisioning algorithm E12, which knows the form of the input data DE-1, . . . and the architecture of the computational acceleration device 10, and which ascertains, for example, an assignment of the input data to the computational acceleration device 10 and / or its internal memory 14 (FIG. 2) and / or, for example, directly or indirectly accessible memory 12. In some examples, the provisioning algorithm E12 includes, among other things, the creation of the configuration data for the memory layout of the internal accelerator memory 14 and / or the directly or indirectly accessible memory 12, and a configuration of the processing elements of the computational acceleration device 10, as well as, for example, the configuration of the data path within, for example, the elements (10a, 10b, 10′) and / or processing elements PEs and / or internal memory 14 of the computational acceleration device 10, as well as, for example, the configuration of the data path from the computational acceleration device 10 to the directly or indirectly accessible memory 12. This configuration (e.g., “provisioning information”), see element E12a, controls, for example, the behavior of the computational acceleration device and manifests itself, for example, in a configuration of the computational acceleration device at runtime. It should be noted that in some examples, the aforementioned provisioning by means of the provisioning algorithm E12 can be executed offline by the algorithm E12 before runtime or during runtime, for example by any software and / or hardware mechanism. Element E12b according to FIG. 7B symbolizes information about an organization of the input data in a storage domain (e.g., internal memory 14 or associated memory 12) of the computational acceleration device 10. The elements E12a, E12b can, for example, generate the configuration CFG according to the present disclosure and be stored at least temporarily in the memory E10.
[0078] FIG. 7C shows as an example aspects of an encoding E14 that can be used to protect the original data (e.g., “data elements”) using the results of the provisioning algorithm E12 (e.g., “provisioning information” and / or address information). For example, one or more data packets DP (see also FIG. 4A) are created, which contain the original data E11 and a “verification value” or the second piece of information I-2, which is ascertained, for example, from the original data E11 and the sideband data, including, for example, the “provisioning information,” as shown in FIG. 4A. This protects the original data, for example, until they are later used by the computational acceleration device; see FIG. 7E. It should be noted that in some examples the data and sideband information are fully protected, for example, regardless of intermediate actions (e.g., transmission and / or storage and / or loading and / or copying, etc.) that may be performed by hardware and / or software, for example between the encoding (FIG. 7C) and a verification (FIG. 7E). A data packet DP may, for example, contain at least one single data element or a vector of data elements, for example original data elements, which are consumed by, for example used by, for example, the processing elements of the computational acceleration device during the calculation. It should be noted that in some examples, data packets DP in a memory region may be created, for example, by direct (e.g., in a continuous memory region) or indirect (e.g., by assigning “data elements” and “verification values” from different memory regions) combination of the data elements and the verification value. In some examples, data encoding may be performed during runtime or before runtime, for example, for at least one data packet DP.
[0079] In some examples, shown in FIG. 7D, a configuration, for example in the form of a configuration step, is executed on the computational acceleration device 10 before the execution of a new operation (e.g., a different kernel configuration or different input data). In some examples, the configuration of the computational acceleration device 10 comprises, among other things, setting an execution level and / or active partitions and / or a process and / or activating / deactivating / configuring the various processing elements PE, and / or configuring the memories 12, 14 (FIG. 2) and / or connections / buses (not shown). The configuration is carried out, for example, by applying the (e.g., previously ascertained; see FIG. 7B) configuration CFG (e.g., also “provisioning information”), for example, via the provisioning algorithm E12 to the computational acceleration device 10.
[0080] FIG. 7E schematically shows aspects of a computing step of the computational acceleration device 10 according to some examples, in which the operation assigned to the computational acceleration device is performed, for example, using the input data stored in local memory 14 or associated memory 12 and the configuration CFG. In some examples, multiple calculations can be performed until a calculation step is completed. During the computing, the computational acceleration device 10 maintains its status, generates local addresses, for example to obtain the input data, and tracks the runtime state CFG′ (e.g., execution stage, operation sequence, active partitions, etc.). During the processing of each data packet DP (which contains, for example, a single data element or a vector of original data elements), in some examples its integrity can be verified using the principle according to the present disclosure (see also, for example, FIG. 4B), and errors can be detected and corrected if necessary; see FIG. 4B. Because this integrity check may comprise the address of the data to be processed and the provisioning / runtime configuration of the computational acceleration device 10, this sideband information is also covered by the integrity check, for example. During the integrity check of the incoming data packets, the correctness of the runtime behavior of the computational acceleration device 10 (e.g., encoded by the sideband data) is also verified.
[0081] In some examples, a sequence of the aspects described above with reference to FIG. 7A to 7E may also be different from what is shown in the present examples. For example, in some examples, aspects of FIG. 7A to 7E can be rearranged, for example without affecting the principle according to the present disclosure. Furthermore, in some examples, a plurality of aspects or steps can be combined or divided into sub-steps, for example without affecting the principle according to the present disclosure.
[0082] The principle according to the present disclosure allows end-to-end protection of the data E11 and the associated provisioning information (e.g., HW configuration or workload status) of each data packet DP, for example, from a configuration step to a data consumption.
[0083] In some examples, the provisioning information, for example in the form of the first piece of information I-1, can either be appended to the data packet DP (FIG. 4A) and / or provided via another channel or calculated separately by the processing elements PE and maintained, for example, as a runtime status;
[0084] see, for example, FIG. 7A to 7E. In all three cases, the integrity of the provisioning information I-1 (and thus, for example, the runtime configuration / runtime behavior) can be verified by the integrity verification value attached to the data packet DP, for example in the form of the second piece of information I-2.
[0085] The principle according to the present disclosure allows, in some examples, the detection and / or correction of input data errors, for example in the region of the computational acceleration device 10. Address errors (e.g., incorrect address for loading, saving, or selecting data at any point in the end-to-end path) can also be detected in some examples.
[0086] In some examples, for example for verifying runtime behavior, fault coverage depends on the sideband data included in the protection algorithm. The sideband data for runtime verification (e.g., “provisioning information”), for example in the form of the first piece of information I-1, see also FIG. 2, and the further optional elements I-1a, I-1b, I-1c, I-1d, I-1e, may in some examples contain one or more of the following elements: a) operation sequence ID: Identifier for a current sequence ID of the currently active operation. An unintentional use of outdated (but generally correct) data can be detected, for example, by embedding of this field. If the calculation of a workload takes place in multiple phases, the operation sequence ID can, for example, also ensure that the correct application phase is used for the data, or b) target processing element ID or target compute group ID: Depending on the type of operation, data elements may only be used by one processing element or a group of processing elements. By embedding this information, for example misdirected data packets or incorrectly configured processing elements PE can be detected, or c) operations ID: identifier of the currently active operation, which can be used to verify the configuration of each individual processing element, or d) lifetime: for example, defining a lifetime counter that invalidates the data after a set time or after a set number of cycles. This can be used, for example, to detect congestion on the data path P (FIG. 6) or runtime management problems of the computational acceleration device and to detect violations of an application's timing requirements, or e) partition ID: The provisioning is not limited, for example, to creating a single assignment for the HW accelerator. When providing multiple applications or workloads (or operations of the same workload) on a computational acceleration device, each provided operation can, for example, be encoded with a partition ID. This allows, for example, seamless interference-free processing of different workloads in parallel. It should be noted that in some examples, a specific order can be configured in the computational acceleration device and / or the provisioning algorithm for all the options listed above. Thus, it is possible, for example, to have any sequence of values during a runtime (e.g., values increase, decrease, are constant, etc.). In some examples, the described method only verifies consistency between the runtime value and an encoded value in the data packet DP (e.g., as part of the protection).
[0087] It should be noted that the described method for detecting runtime behavior / configuration errors has a comparatively low overhead compared to conventional approaches (e.g., dual-core lockstep) in some examples, as it is embedded in end-to-end integrity protection and requires only a comparatively low overhead, for example, in terms of verification logic.
[0088] Some examples, shown in FIG. 8, relate to an apparatus 200 for processing data associated with a computational acceleration device 10, wherein the apparatus 200 is configured to perform the method according to the present disclosure. The aspects described below also refer, in some examples, to the further apparatus 200′ according to FIG. 2.
[0089] In further examples, shown in FIG. 8, the apparatus comprises 200: a computing device (“computer”) 202 comprising at least one computing core 202a, a memory device 204 associated with the computing device 202 for at least temporarily storing at least one of the following elements: a) data DAT, b) computer program PRG, for example for performing the method according to the embodiments. For example, the data DAT characterize at least one of the elements: a) I-1, or b) I-2, or c) CFG, or d) DP and / or at least one other piece of information according to the present disclosure.
[0090] In further exemplary embodiments, shown in FIG. 8, the memory device 204 has a volatile memory (e.g., working memory (RAM)) 204a, and / or a non-volatile (NVM) memory (e.g., flash EEPROM) 204b, or a combination thereof or with other types of memory not explicitly mentioned.
[0091] In some examples, shown in FIG. 8, the apparatus 200 is implemented by means of a hardware circuit, for example in a purely hardware-based manner. For example, the apparatus 200 can also be integrated into the computational acceleration device 10 or a system 1000 comprising the computational acceleration device 10 (FIG. 2).
[0092] Further examples, shown in FIG. 8, relate to a computer-readable storage medium SM comprising commands PRG that, when executed by a computer 202, cause said computer to perform the method according to the present disclosure.
[0093] Further examples, shown in FIG. 8, relate to a computer program PRG comprising commands that, when the program PRG is executed by a computer 202, cause said computer to perform the method according to the present disclosure.
[0094] In some examples, the computer program PRG is designed to implement the provisioning algorithm E12.
[0095] Some examples, shown in FIG. 2, relate to a system 1000 comprising at least one computational acceleration device 10 and at least one apparatus 200, 200′ according to the present disclosure.
[0096] Further examples, shown in FIG. 8, relate to a computer-implemented data structure DS comprising at least one of the following elements: a) a first piece of information I-1 that characterizes a configuration of a computational acceleration device, wherein the configuration is associated with at least one data element to be processed by means of the computational acceleration device, or b) a second piece of information I-2 that characterizes at least one verification value, which can be ascertained, for example, by means of an integrity protection method, wherein the second piece of information can be generated and / or is generated based on the first piece of information and optionally based on at least one of the following elements: b1) the at least one data element to be processed, or b2) address information associated with the at least one data element to be processed and / or with the computational acceleration device, or c) the at least one data element DE-1 to be processed.
[0097] Some examples, shown in FIG. 8, refer to a data carrier signal DCS that transmits and / or characterizes at least one of the following elements: a) the computer program PRG according to the present disclosure, or b) the data structure DS according to the present disclosure. In some examples, shown in FIG. 8, the data carrier signal DCS can be transmitted via an optional data interface 206.
[0098] In some examples, it is possible that the first piece of information I-1 (FIG. 2) is created, for example before the runtime of the computational acceleration device, for example by a provisioning algorithm E12 (FIG. 7B), wherein the provisioning algorithm E12 is realizable, for example implementable, by means of the computer program PRG according to the present disclosure. In other words, the provisioning 100 (FIG. 1) may, in some examples, involve providing the first piece of information I-1 (FIG. 2) before the runtime of the computational acceleration device, for example by means of a provisioning algorithm E12 (FIG. 7B), wherein the provisioning algorithm E12 can be implemented, for example, by means of the computer program PRG.
[0099] In some examples, it is possible that the second piece of information I-2 is generated, for example, by means of the further apparatus 200′ and sent to the apparatus 200, for example in time before or during the runtime of the computational acceleration device. In other words, according to the present disclosure, the method may thus comprise, for example: generating the second piece of information I-2, for example by means of the further apparatus 200′, and sending the second piece of information I-2 from the further apparatus 200′ to the apparatus 200 and / or to the computational acceleration device.
[0100] Some examples, shown in FIG. 9, relate to the use 300 of the method according to the present disclosure and / or of the apparatus 200, 200′ according to the present disclosure, and / or of the system 1000 according to the present disclosure and / or of the computer-readable storage medium SM according to the present disclosure and / or of the computer program PRG according to the present disclosure and / or of the data structure DS according to the present disclosure and / or of the data carrier signal DCS according to the present disclosure for at least one of the following elements: a) extending 301 end-to-end protection, for example, for data to be processed by means of the computational acceleration device and / or information associated with data to be processed by means of the computational acceleration device, for example regarding a configuration of the computational acceleration device; or b) combining 302 end-to-end data protection with verifiability, for example verification of the correctness of the runtime behavior of the computational acceleration device; or c) providing 303 a method for protecting the integrity of input data for the computational acceleration device; or d) allowing 304 a protection scheme that includes a plurality of units, for example all units, for example processing units, for example processing elements, for example memory elements on a data path of the computational acceleration device (e.g., all memory elements between 10a and 10b; see FIG. 6) and / or maintains a predefinable integrity protection level; or e) detecting 305 errors in the region of at least one the following elements: e1) data, or e2) memory addressing, or e3) runtime state, or e4) configuration of the computational acceleration device, for example at a level of processing elements of the computational acceleration device, or f) allowing 306 separate execution of a plurality of independent applications and / or partitions in parallel on a computational acceleration device, for example with a shared memory, for example by identifying the applications and / or partitions and detecting possible interference between the applications and / or partitions, or g) using 307 at least one sequencing pattern, for example having predefinable sequence values, that can be used for protecting a runtime state and / or configuring the computational acceleration device.
Claims
1-19. (canceled)20. A computer-implemented method for processing data associated with a computational acceleration device, wherein the computational acceleration device is configured to operate in a data-flow-based manner, the method comprising:providing a first piece of information that characterizes a configuration of the computational acceleration device, wherein the configuration is associated with at least one data element to be processed using the computational acceleration device; andgenerating a second piece of information that characterizes at least one verification value which can be ascertained using an integrity protection method, based on the first piece of information.
21. The method according to claim 20, wherein the second piece of information is generated based on at least one of the following elements: a) the at least one data element to be processed, or b) address information associated with the at least one data element to be processed and / or with the computational acceleration device.
22. The method according to claim 20, further comprising assigning the second piece of information to the at least one data element to be processed.
23. The method according to claim 20, wherein the computational acceleration device is at least one of the following: a) a data flow acceleration device, or b) an in-memory computing device for performing computational operations for neural network inference.
24. The method according to claim 20, wherein the first piece of information characterizes the configuration of the computational acceleration device at a time or time interval at which the at least one data element is processed using the computational acceleration device.
25. The method according to claim 20, wherein the generating of the second piece of information includes at least one of the following steps: a) using the integrity protection method, wherein the integrity protection method is of an ECC type, or b) using a scatter value method to ascertain a hash value.
26. The method according to claim 20, further comprising assigning the second piece of information to the at least one data element to be processed, wherein the assigning of the second piece of information to the at least one data element to be processed includes generating a data packet, wherein the data packet includes the at least one data element to be processed and the second piece of information.
27. The method according to claim 20, wherein the providing of the first piece of information includes at least one of the following steps: a) locally generating the first piece of information, or b) receiving the first piece of information from at least one other device.
28. The method according to claim 20, further comprising at least one of the following steps:a) providing the second piece of information together with the at least one data element to be processed to the computational acceleration device and / or to an apparatus associated with the computational acceleration device, orb) verifying the second piece of information based on at least one of: (i) an actual and / or current configuration of the computational acceleration device, or (ii) actual and / or current address information associated with the computational acceleration device, wherein the verifying includes at least one of the following steps: b1) verifying the second piece of information before processing of the at least one data element to be processed by the computational acceleration device, b2) verifying the second piece of information during processing of the at least one data element to be processed by the computational acceleration device, or b3) verifying the second piece of information after processing of the at least one data element to be processed by the computational acceleration device, and wherein based on the verifying of the second piece of information, correcting, discarding, or using the at least one data element to be processed.
29. The method according to claim 20, wherein the first piece of information includes at least one of the following elements:a) information that characterizes a processing sequence,b) information that characterizes a processing element or a group of processing elements of the computational acceleration device for processing the at least one data element to be processed,c) information that characterizes a processing operation that is currently active,d) information that characterizes a lifetime for the at least one data element to be processed, ore) information that characterizes a partition.
30. A computer-implemented method for processing data associated with a computational acceleration device, wherein the computational acceleration device is configured to operate in a data-flow-based manner, wherein a first piece of information characterizes a configuration of the computational acceleration device, wherein the configuration is associated with at least one data element to be processed by the computational acceleration device, the method comprising:receiving a second piece of information that characterizes at least one verification value which can be ascertained using an integrity protection method, wherein the second piece of information is generated based on the first piece of information.
31. The method according to claim 30, wherein the second piece of information is generated based on at least one of the following: a) the at least one data element to be processed by the computational acceleration device, or b) address information associated with the at least one data element to be processed and / or with the computational acceleration device.
32. The method according to claim 30, further comprising:verifying the second piece of information based on at least one of: (i) an actual and / or current configuration of the computational acceleration device, or (ii) actual and / or current address information associated with the computational acceleration device, wherein the verifying includes at least one of the following steps: (a) verifying the second piece of information before processing of the at least one data element to be processed by the computational acceleration device, (b) verifying the second piece of information during processing of the at least one data element to be processed by the computational acceleration device, or (c) verifying the second piece of information after processing of the at least one data element to be processed by the computational acceleration device.
33. The method according to claim 32, further comprising: based on the verifying, correcting, discarding, or using the at least one data element to be processed.
34. An apparatus for processing data associated with a computational acceleration device, wherein the apparatus is configured to perform a method for processing data associated with a computational acceleration device, wherein the computational acceleration device is configured to operate in a data-flow-based manner, the method comprising:providing a first piece of information that characterizes a configuration of the computational acceleration device, wherein the configuration is associated with at least one data element to be processed using the computational acceleration device; andgenerating a second piece of information that characterizes at least one verification value which can be ascertained using an integrity protection method, based on the first piece of information.
35. The apparatus according to claim 34, wherein the apparatus is implemented by a hardware circuit in a purely hardware-based manner.
36. A system, comprising:at least one computational acceleration device; andat least one apparatus for processing data associated with the at least one computational acceleration device, wherein the apparatus is configured to perform a method for processing data associated with the at least one computational acceleration device, wherein the at least one computational acceleration device is configured to operate in a data-flow-based manner, the method comprising:providing a first piece of information that characterizes a configuration of the at least one computational acceleration device, wherein the configuration is associated with at least one data element to be processed using the at least one computational acceleration device; andgenerating a second piece of information that characterizes at least one verification value which can be ascertained using an integrity protection method, based on the first piece of information.
37. A non-transitory computer-readable storage medium on which are stored commands for processing data associated with a computational acceleration device, wherein the computational acceleration device is configured to operate in a data-flow-based manner, the commands, when executed by a computer, causing the computer to perform the following steps:providing a first piece of information that characterizes a configuration of the computational acceleration device, wherein the configuration is associated with at least one data element to be processed using the computational acceleration device; andgenerating a second piece of information that characterizes at least one verification value which can be ascertained using an integrity protection method, based on the first piece of information.
38. The method according to claim 20, wherein the method is used for at least one of the following:a) extending end-to-end protection for at least one of: (i) data to be processed using the computational acceleration device, or (ii) information regarding a configuration of the computational acceleration device, the information being associated with data to be processed using the computational acceleration device;b) combining end-to-end data protection with verification of a correctness of a runtime behavior of the computational acceleration device;c) protecting integrity of input data to the computational acceleration device;d) allowing a protection scheme that includes a plurality of processing elements on a data path of the computational acceleration device and / or maintains a predefinable integrity protection level;e) detecting errors in a region of at least one of the following: e1) data, e2) memory addressing, e3) runtime state, or e4) configuration of the computational acceleration device;f) allowing separate execution of a plurality of independent applications and / or partitions in parallel on the computational acceleration device with a shared memory, by identifying the applications and / or partitions and detecting possible interference between the applications and / or partitions; org) using at least one sequencing pattern having predefinable sequence values, that can be used for protecting a runtime state and / or configuring the computational acceleration device.
