Nvidia Cuda是否调度器产量? [英] Does Nvidia Cuda warp Scheduler yield?

查看:132
本文介绍了Nvidia Cuda是否调度器产量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我浏览了 Cuda节目指南但仍不清楚翘曲是否会屈服于其他随时可执行的翘曲?任何解释或指针请?如果是,在什么条件下,翘曲产量?

I have gone through Cuda programming guide but still not clear whether a warp will yield in favor of other ready-to-execute warp? Any explanation or pointer please? If yes, in what condition does a warp yield?

推荐答案

是的,片上调度器交错执行warp。调度策略有意未指定,因为调度策略可能会更改。 NVIDIA不希望CUDA开发人员编写依赖于当前调度策略但在较新的GPU上失败的代码。

Yes, the on-chip scheduler interleaves the execution of warps. The scheduling policy is intentionally left unspecified, because the scheduling policy may be changed. NVIDIA does not want CUDA developers to write code that relies on the current scheduling policies but fails on newer GPUs.

一般来说,拥有多个warp的目的是,线程等待指令完成执行,另一个线程可以准备好执行而不等待。因此,当执行诸如全局加载或慢浮点操作的长延迟指令时,翘曲可能会屈服。某些体系结构(如Fermi)会同时执行多个经线( http:// www.nvidia.com/content/PDF/fermi_white_papers/NVIDIA_Fermi_Compute_Architecture_Whitepaper.pdf 第10页)。

Generally speaking, the purpose of having multiple warps is that while one thread waits for an instruction to finish executing, another thread may be ready to execute without waiting. So it is likely that a warp will yield when a long-latency instruction such as a global load or a slow floating-point operation is executed. Some architectures, such as Fermi, execute multiple warps at the same time ( http://www.nvidia.com/content/PDF/fermi_white_papers/NVIDIA_Fermi_Compute_Architecture_Whitepaper.pdf page 10).

这篇关于Nvidia Cuda是否调度器产量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆