【问题标题】:How to profile the number of global memory transactions for cuda kernels?如何分析 cuda 内核的全局内存事务数量?
【发布时间】:2012-03-22 16:58:08
【问题描述】:

如何在 cuda 命令行分析器中为“uncached_global_load_transaction”计数器启用分析?

【问题讨论】:

    标签: cuda profiling gpu


    【解决方案1】:

    使用以下环境变量控制命令行分析器 -

    COMPUTE_PROFILE: is set to either 1 or 0 (or unset) to enable or disable profiling.
    COMPUTE_PROFILE_CONFIG: is used to specify a config file for enabling performance counters in the GPU and various other options.
    COMPUTE_PROFILE_LOG: is set to the desired file path for profiling output.
    

    在您的情况下,您可以将上述环境变量设置为 -

    COMPUTE_PROFILE=1
    COMPUTE_PROFILE_CONFIG=config.txt
    COMPUTE_PROFILE_LOG=profiler_output.txt
    

    config.txt 必须包含一个条目uncached_global_load_transaction

    【讨论】:

    • 谢谢。我做了同样的事情,但探查器无法识别 uncached_global_load_transaction 选项。可能我的卡不支持。
    猜你喜欢
    • 2016-02-21
    • 1970-01-01
    • 1970-01-01
    • 2014-04-06
    • 2015-01-28
    • 1970-01-01
    • 2015-09-30
    • 2014-07-21
    • 2013-11-09
    相关资源
    最近更新 更多