实现多线程同步执行的指令处理方法及相关装置

By adding write validity control and state update instructions to the jump instruction sequence, the problem of thread execution path differences in the SIMT system is solved, realizing synchronous execution of multiple threads and improving the correctness and performance of the computing system.

CN120631447BActive Publication Date: 2026-07-17AZURENGINE TECH ZHUHAI INC

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
AZURENGINE TECH ZHUHAI INC
Filing Date
2025-05-27
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In a single-instruction multithreaded (SIMT) parallel computing system, jump instructions cause differences in the instruction flow paths executed by different threads, affecting the correctness, stability, and performance of the computing system.

Method used

By adding write validity control to the jump instruction sequence, converting it into a state update instruction and an insert state reset instruction, and adding a write restriction flag to the intermediate instruction sequence, it is ensured that threads that meet the jump conditions do not execute intermediate instructions invalidally, while threads that do not meet the conditions execute intermediate instructions validly.

Benefits of technology

This allows different threads to execute instruction streams synchronously while maintaining the original semantics and execution results, thus improving the correctness, stability, and performance of the computing system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120631447B_ABST
    Figure CN120631447B_ABST
Patent Text Reader

Abstract

本申请提供了一种实现多线程同步执行的指令处理方法及相关装置,所述方法包括:获取原始指令流,原始指令流包括至少一个跳转指令序列,跳转指令序列包括跳转指令和中间指令序列;对跳转指令序列添加写入有效性控制,得到目标指令流,用于指示在第一线程中以无效执行的方式顺序执行中间指令序列,以及在第二线程中以有效执行的方式顺序执行中间指令序列,第一线程是指满足跳转指令所指示的跳转条件的线程,第二线程是指不满足跳转指令所指示的跳转条件的线程;输出目标指令流。如此,在保持原有语义和运行结果不变的情况下使不同线程能够以相同步调执行指令流,实现了多线程的同步执行,提高了计算系统的正确性、稳定性和性能。
Need to check novelty before this filing date? Find Prior Art