hottub.patents
US 12,314,756 B2#3535681 Most CitedActiveUnited States (USPTO)Utility

Thread construction method and device

0Forward Citations (#3535681 Global)
0.0/yrCitation Velocity (#3535681 Global)
0.00Citation PageRank (#3535681 Global)
2Prior Art Cited
8Claims (1 Indep. · 7 Dep.)
0Drawings / Sheets

Abstract

Disclosed are a thread construction method and device. The method includes: a workload is divided into a plurality of work groups; for any work group, a pattern type that matches a size of the any work group is selected, a target thread construction pattern is determined from a plurality of candidate thread construction patterns corresponding to the pattern type; a plurality of threads are constructed according to the target thread construction pattern; the threads are composed of a plurality of consecutive work items in the any work group; the work item index corresponding to at least one key work item in the work item sequence of each thread is cached and the work item index of each thread is obtained, which is configured to schedule the any work item corresponding to the thread to the processing unit.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 0.

Claims (8 — 1 Independent, 7 Dependent)

  1. Claim 1Independent Claim

    A thread construction method, comprising: dividing a workload into a plurality of work groups; for any work group of the plurality of work groups, selecting a pattern type that matches a size of the any work group, and determining a target thread construction pattern from a plurality of candidate thread construction patterns corresponding to the pattern type; constructing a plurality of threads according to the target thread construction pattern; the plurality of threads being composed of a plurality of consecutive work items in the any work group; and caching a work item index corresponding to at least one key work item in the work item sequence of each of the plurality of threads, and obtaining a work item index of each of the plurality of threads, the work item index being configured for scheduling any work item of a corresponding thread to a processing unit responsible for processing the thread.

  2. Claim 2Depends on #1

    The method according to claim 1, wherein the determining the target thread construction pattern comprises: acquiring a step pitch of each of the candidate thread construction patterns in at least one direction in a computing space; and determining, according to each step pitch and the size of the work group, a candidate thread construction pattern, whose quantitative relationship between the step pitch and the size of the work group satisfies a preset condition, as the target thread construction pattern.

  3. Claim 3Depends on #2

    The method according to claim 2, wherein the plurality of work groups comprise a complete work group and a remainder work group; wherein a size of the complete work group is preset according to the step pitch, and a size of the remainder work group refers to a size of an incomplete work group remained after the workload is divided according to the step pitch.

  4. Claim 4Depends on #1

    The method according to claim 1, wherein the constructing the plurality of threads according to the target thread construction pattern comprises: acquiring a step pitch of the target thread construction pattern in at least one direction in a computing space; and constructing the plurality of consecutive work items in the any work group into the plurality of threads according to the step pitch.

  5. Claim 5Depends on #1

    The method according to claim 1, wherein the key work item is a first work item in each of the threads, and the caching the work item index corresponding to at least one key work item in the work item sequence of each of the plurality of threads to obtain the work item index of each of the plurality of threads comprises: acquiring a work group index, a local index and a global index corresponding to the first work item; determining a work item index corresponding to the key work item according to the work group index, the local index and the global index; and caching the key work item index to a cache unit.

  6. Claim 6Depends on #5

    The method according to claim 5, further comprising: reading a work item index of the thread in the cache unit; and determining the thread construction pattern configured to construct the thread, and determining a work item index corresponding to the any work item according to the thread construction pattern and the work item index of the thread; the work item index corresponding to the any work item is configured for scheduling the any work item to the processing unit responsible for processing the thread.

  7. Claim 7Depends on #6

    The method according to claim 6, wherein the determining the work item index corresponding the any work item comprises: acquiring a thread construction pattern type; determining offset information between the any work item and the first work item according to the thread construction pattern type; calculating a work item index corresponding to the any work item according to the offset information and the work item index corresponding to the first work item.

  8. Claim 8Depends on #1

    The method according to claim 1, wherein the pattern type is selected from a group consisting of a linear pattern and a tile pattern.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS The present application claims priority to Chinese patent application No. 202210756644.8, filed Jun. 30, 2022, entitled THREAD CONSTRUCTION METHOD AND DEVICE, the content of which is hereby incorporated by reference in its entirety. TECHNICAL FIELD The present disclosure relates to the technical field of graphics processors, and in particular, to a pattern-based thread construction method and device for general graphics processors. BACKGROUND With the rapid development of science and technology, the graphics processing unit (GPU) contains a large number of parallel processing units, which can be programmed to perform parallel computing of single instruction multiple data (SIMD), which makes GPU not only be capable of applying in hardware acceleration of graphics rendering, but also be capable of applying in parallel computing of general-purpose graphics processors, e.g., filtering and noise reduction of images, video compression, physical simulation, artificial intelligence, scientific computing, etc. The so-called GPGPU is short for general purpose computing on GPU in full name. With a rapid development of GPU in performance, the technology of using GPU to accelerate processing has gradually become a research hotspot. SUMMARY According to a first aspect, the present disclosure provides a thread construction method, including: dividing a workload into a plurality of work groups; for any work group of the plurality of work groups, selecting a pattern type that matches a size of the any work group, and determining a target thread construction pattern from a plurality of candidate thread construction patterns corresponding to the pattern type; constructing a plurality of threads according to the target thread construction pattern; the plurality of threads being composed of a plurality of consecutive work items in the any work group; and caching a work item index corresponding to at least one key work item in the work item sequenc

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (2)

PatentTitleYearCitations