Matrix operation-based parallel computing method
A matrix operation and parallel computing technology, applied in the field of computer parallel computing, can solve a large number of scheduling codes, performance differences and other problems, and achieve the effect of simple and clear thinking, reducing difficulty and simplifying parallelism
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] Embodiment 1, real number matrix multiplication.
[0073] Take the calculation of square matrix multiplication as an example: R=AB, where R, A, and B are all 1024×1024 square matrix. Using the method described in the present invention to realize calculation only needs about 10 lines of codes. However, using the parallel programming language OpenCL requires nearly 1,000 lines of scheduling code and 100 lines of OpenCL kernel code. The specific test comparison data are shown in Table 1 and Table 2.
[0074] Table 1 performance comparison
[0075]
[0076] Table 2 Comparison of code volume
[0077] platform
Embodiment 2
[0078] Embodiment 2 is a matrix operation expression for finding the maximum value of multiple elements.
[0079] The following takes finding the maximum value of multiple elements as an example to introduce how to use matrix operations to express specific algorithms. Given n elements a 1 , a 2 , a 3 ,...a n are real numbers. The specific implementation steps are as follows:
[0080] (1) Based on the above defined matrix operation formula, describe the algorithm to be described as a formula composed of at least two matrix operations
[0081] For the calculation purpose of this embodiment: to solve the problem of the maximum value of multiple elements, the algorithm to be described is described as: C=AB, which is described as an operation formula for multiplying matrix A and matrix B.
[0082] (2) Define the matrix and expression method involved in the operation
[0083] In this embodiment, vector A is defined as a row vector composed of ai and the number of elements is ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com