WSL2: Issue installing new kernel
1
vote
1
answer
2950
views
I will preface this by saying: I don't have a lot of experience in a Linux environment.
I am trying to install ROCm on WSL2 running Ubuntu. I will be using PyTorch for a class and I want to use my GPU for compute. ROCm installed fine, however, I kept getting the error
ROCk module is NOT loaded, possibly no GPU devices
.
I found this post which indicated that the problem could be that WSL doesn't allow you to install modules. That linked to a comment found here which showed how to install a new kernel. I followed the instructions, but I have run across an error when running make
.
The error is:
No rule to make target '/home//lkm_example.o', needed by '/home//lkm_example.mod'. Stop.
(`` is my username, I just didn't want it out here)
Through Google, I found several posts saying that I need to install linux-headers
. I tried running sudo apt-get install kernel-headers
, but that resulted in an error: E: Unable to locate package kernel-headers
How do I proceed?
Asked by Excelsior
(11 rep)
Sep 2, 2022, 06:00 AM
Last activity: May 29, 2025, 02:01 PM
Last activity: May 29, 2025, 02:01 PM