Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在内部使用CUPTI函数时,无法使用nvprof分析cuda代码_Cuda_Metric_Nvprof - Fatal编程技术网

在内部使用CUPTI函数时,无法使用nvprof分析cuda代码

在内部使用CUPTI函数时,无法使用nvprof分析cuda代码,cuda,metric,nvprof,Cuda,Metric,Nvprof,我在做一个简单的实验。每个人都可能知道CUPTI的回调度量示例代码(位于CUPTI文件夹中:/usr/local/cuda/extras/CUPTI/sample/callback\u metric)。它只包含运行vectorAdd内核时读取度量的简单代码。当我编译并运行代码时,一切正常 但是,当我在nvprof命令(nvprof./callback\u metric)下运行此代码时,会收到一条错误消息: Error: incompatible CUDA driver version nvpr

我在做一个简单的实验。每个人都可能知道CUPTI的回调度量示例代码(位于CUPTI文件夹中:
/usr/local/cuda/extras/CUPTI/sample/callback\u metric
)。它只包含运行vectorAdd内核时读取度量的简单代码。当我编译并运行代码时,一切正常

但是,当我在nvprof命令(
nvprof./callback\u metric
)下运行此代码时,会收到一条错误消息:

Error: incompatible CUDA driver version

nvprof和其他基于CUPTI的代码可以单独工作。

探查器不打算以这种方式用于使用CUPTI的应用程序

这将记录在探查器中:

以下是Visual Profiler无法收集度量或事件信息的几个原因。 不止一个工具试图访问GPU。要解决此问题,请确保在任何给定点上只有一个工具使用GPU。工具包括CUDA命令行探查器、并行NSight分析工具和图形工具,以及使用CUPTI或PerfKit API(NVPM)读取事件值的应用程序