cancel
Showing results for 
Search instead for 
Did you mean: 

Server Gurus Discussions

TJerry
Adept I

install uProf in WSL2

I am trying to install uProf https://developer.amd.com/amd-uprof/ for c++ code profiling in my machine with a AMD Ryzen ThreadRipper 3960X.

I downloaded the .deb file and tried to install with:

 

 

sudo dpkg --install amduprof_x.y-z_amd64.deb

 

 

However, I get the error:

 

 

ERROR: Linux headers is required for installing AMD Power Profiler driver.
Please install the sources using
sudo apt-get install linux-headers-5.10.60.1-microsoft-standard-WSL2
and then start the installation again.

 

 

I tried to install the headers and got:

 

 

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.10.60.1-microsoft-standard-WSL2
E: Couldn't find any package by glob 'linux-headers-5.10.60.1-microsoft-standard-WSL2'
E: Couldn't find any package by regex 'linux-headers-5.10.60.1-microsoft-standard-WSL2'

 

 

I tried to check the headers I am using with:

 

 

uname -r

 

 

and got:

 

 

5.10.60.1-microsoft-standard-WSL2

 

 

What is the problem here?

Kind regards

0 Likes
1 Reply

Hello,  Are you trying to profile your c++ code or you are doing power profile analysis?  For profiling your c++ application you don't need to install Power profile driver.  Since you are using uProf WSL - you need kernel files for that.  Can you please explain your setup?  i.e. you OS and Processor details?

0 Likes