首页> 外国专利> METHOD AND APPARATUS FOR CONTROLLING SYNCHRONIZATION OF CPU THREADS AND GPU THREADS

METHOD AND APPARATUS FOR CONTROLLING SYNCHRONIZATION OF CPU THREADS AND GPU THREADS

机译:控制CPU线程和GPU线程的同步的方法和装置

摘要

A method and apparatus for controlling the synchronization of central processing unit (CPU) threads and graphics processing unit (GPU) threads, and a computer-readable storage medium, wherein said method comprises: when image frames are rendered by a GPU, creating GPU barriers for GPU threads, the initial state of the GPU barriers being a closed state (S101); creating signal events for CPU threads, the initial state of the signal events being a no signal state (S102); binding the GPU barriers and the signal events together (S103); calling a preset function to suspend the CPU threads, and waiting for the signal events to be changed to a signaled state (S104); when the image frames have been completely rendered by the GPU, opening the GPU barriers, and setting the signal events to a signaled state, thus waking up the CPU threads by means of the preset functions (S105). The described method has the technical effect of synchronizing program logic on Direct3D 12 with program images.
机译:一种用于控制中央处理单元(CPU)线程和图形处理单元(GPU)线程的同步的方法和装置以及计算机可读存储介质,其中,所述方法包括:当图像帧由GPU渲染时,创建GPU屏障对于GPU线程,GPU屏障的初始状态为关闭状态(S101);为CPU线程创建信号事件,该信号事件的初始状态为无信号状态(S102);将GPU屏障和信号事件绑定在一起(S103);调用预设函数以挂起CPU线程,并等待信号事件变为信号状态(S104);当图像帧已由GPU完全渲染时,打开GPU壁垒,并将信号事件设置为已发出信号的状态,从而借助预设功能唤醒CPU线程(S105)。所描述的方法具有使Direct3D 12上的程序逻辑与程序映像同步的技术效果。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号