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

如何分析cuda内核的全局内存事务数?,cuda,profiling,gpu,Cuda,Profiling,Gpu,如何在cuda命令行探查器中为“未缓存的\u全局\u加载\u事务”计数器启用评测?命令行探查器使用以下环境变量进行控制- 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

如何在cuda命令行探查器中为“未缓存的\u全局\u加载\u事务”计数器启用评测?

命令行探查器使用以下环境变量进行控制-

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\u global\u load\u事务

谢谢。我做了同样的操作,但是探查器无法识别uncached_global_load_事务选项。也许我的卡不支持它。