发明名称 COOPERATIVE THREAD ARRAY GRANULARITY CONTEXT SWITCH DURING TRAP HANDLING
摘要 Techniques are provided for handling a trap encountered in a thread that is part of a thread array that is being executed in a plurality of execution units. In these techniques, a data structure with an identifier associated with the thread is updated to indicate that the trap occurred during the execution of the thread array. Also in these techniques, the execution units execute a trap handling routine that includes a context switch. The execution units perform this context switch for at least one of the execution units as part of the trap handling routine while allowing the remaining execution units to exit the trap handling routine before the context switch. One advantage of the disclosed techniques is that the trap handling routine operates efficiently in parallel processors.
申请公布号 US2014189329(A1) 申请公布日期 2014.07.03
申请号 US201213728784 申请日期 2012.12.27
申请人 NVIDIA CORPORATION 发明人 LUIZ Gerald F.;CUADRA Philip Alexander;DURANT Luke;GADRE Shirish;OHANNESSIAN Robert;SHAH Lacky V.;WANG Nicholas;DANSKIN Arthur
分类号 G06F9/38 主分类号 G06F9/38
代理机构 代理人
主权项 1. A method for executing a first trapping instruction encountered by a thread executing within a processing core, the method comprising: for each thread group included in a plurality of thread groups executing within the processing core, entering a trap handler routine in response to a first thread included in one of the thread groups executing the first trapping instruction; for each thread group included in the plurality of thread groups, determining whether a corresponding cooperative thread array (CTA) identifier is associated with a CTA that includes the first thread; and if the corresponding CTA identifier is not associated with the CTA that includes the first thread, then exiting the trap handler routine, or if the corresponding CTA identifier is associated with the CTA that includes the first thread, then executing one or more operations associated with the trap handler routine.
地址 Santa Clara CA US