如何找到活跃的SM? [英] how to find the active SMs?

查看:1359
本文介绍了如何找到活跃的SM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过任何方式了解空闲/活动SM的数量?还是至少要读取每个SM的电压/功率或温度值,才能知道其是否正常工作? (在gpu设备上执行某些作业时实时)。

Is there any way by which I can know the number of free/active SMs? Or atleast to read the voltage/power or temperature values of each SM by which I can know whether its working or not? (in real time while some job is getting executed on the gpu device).

%smid帮助我了解了每个SM的ID。

%smid helped me in knowing the Id of each SM. Something similar would be helpful.

感谢和问候,
Rakesh

Thanks and Regards, Rakesh

推荐答案

CUDA分析工具接口( CUPTI )包含事件API可以对GPU PM计数器进行运行时采样。 CUPTI SDK随CUDA Toolkit一起提供。有关采样的文档,请参见CUPTI Events API \ 采样事件

The CUDA Profiling Tools Interface (CUPTI) contains an Events API that enables run time sampling of GPU PM counters. The CUPTI SDK ships as part of the CUDA Toolkit. Documentation on sampling can be found in the section CUPTI Events API \ Sampling Events.

以下一个或多个计数器可以为您提供SM活动的好主意:

One or more of the following counters will provide you a good idea of SM activity:


  • active_cycles :多处理器具有至少一个活动扭曲的周期数。

  • active_warps :累积的活动数量每个周期活跃的经线。对于每个周期,它以周期
    中的活动经纱数量递增,范围在0到{48,64}之间。

  • active_cycles: Number of cycles a multiprocessor has at least one active warp.
  • active_warps: Accumulated number of active warps per cycle. For every cycle it increments by the number of active warps in the cycle which can be in the range 0 to {48,64}.

这篇关于如何找到活跃的SM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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