I’m trying to profile my program which is using UM. Unfortunately, I cannot profile the memory copy process…
When I add the flag “–unified-memory-profiling per-process-device” I get the Error:
Error: unified memory profiling failed.
I am aware of the following posts:
But I do not have root permissions on the server I am profiling on.
Is there a solution for this error?
I’m using CUDA 8.0 and a K40m on Ubuntu 16.04.4 LTS.
Thanks in advance,
Before the error printed, have you seen any warning about uvm ?
I’m afraid you system do not meet uvm profiling system requirements. Then you get such error.
Thanks for your reply!
No, I do not get a warning.
This is all I get when I execute my program:
/usr/local/cuda-8.0/bin/nvprof --unified-memory-profiling per-process-device ./build/mb_bandwidth_unified_v5
==3569== NVPROF is profiling process 3569, command: ./build/mb_bandwidth_unified_v5
======== Error: unified memory profiling failed.
I checked my system with the requirements listed here:
Since I’m using a x86_64 Ubuntu and a card with sm 3.5 it should work.
As the devtalk link you provided before, we can not reproduce this issue on CUDA 8.0.
- Upgrade your toolkit/driver to latest version, for current stage, it is 9.1. 9.2 will out soon
- Check if it is sample specific, you can try SDK sample 0_Simple/UnifiedMemoryStreams to see if it works
If all not work, I’ll check with dev if we have this GPU support issue.
I faced the same situation as unified memory profiling failed, try adding the cuda path to the sudoers list in the following way,
2.modify the defauslt secure path int he following way
now try to run the command/application
sudo nvprof ./matmul
Great. Thanks for the info.
You don’t need root access to fix this. Since you are using Cuda 8.0 this should be working. The problem lies in the ‘iBUS’ config. All you have to do is delete the folder /home/[user]/.config/ibus/bus and the problem will be gone.
Any specific reason for this issue related to bus?