如何分析cuda内核的全局内存事务数量?

时间:2012-03-22 16:58:08

标签: cuda profiling gpu

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

1 个答案:

答案 0 :(得分:2)

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

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