Following the excellent thread by Lblock: https://pixinsight.com/forum/index....ro-tools-eg-starxterminator-or-starnet.22163/ to get GPU acceleration under Linux, I had another go at getting not only PxI running under WSL but also GPU acceleration following his instructions.
I had tried this previously in 2022 and it worked but getting there was convoluted: https://pixinsight.com/forum/index....ning-well-in-wsl-cuda-next.17977/#post-110796. Ajay Narayanan made the instructions a lot simpler here: https://pixinsight.com/forum/index....cuda-and-libtensorflow-gpu-under-linux.18180/ for native Linux users but I didn't play much more with it as I got a newer, faster computer and PxI seemed fast enough under Win11.
I still wanted to test the new version of PxI (1.8.9-2 / Build 1597) in WSL to check if there was significant performance improvement versus Win11. After the steps below I got an improvement of around 25-30% in the benchmark score, with particular CPU out performance.
Before running the Linux specific steps set out in Lblock's tutorial, I ran the following commands prior to installing the NVDIA driver:
Before installing PxI, I loaded some Qt6 packages (just in case) and installed X11 apps to make sure everything was working, so from the command prompt:
Then went back to Lblock's tutorial from this point onwards: https://pixinsight.com/forum/index....have booted into it, open the Ubuntu terminal I actually installed the latest driver available (545) which seemed to work fine.
Once PxI was installed, it became visible in the "Recent apps" section of Win11's start menu. I can now run it from there without having to start WSL from the command window (it triggers WSL automatically, as do any X11 apps installed).
There is no need to install KDE or any desktop environment as WSL handles their appearance under Windows.
I got confirmation of GPU acceleration for PxI processes through Task Manager under Windows. For some reason nvtop under WSL didn't run but I am sure WSL is benefiting from the GPU acceleration. See here: https://pixinsight.com/forum/index....-starxterminator-or-starnet.22163/post-144907
Roberto
I had tried this previously in 2022 and it worked but getting there was convoluted: https://pixinsight.com/forum/index....ning-well-in-wsl-cuda-next.17977/#post-110796. Ajay Narayanan made the instructions a lot simpler here: https://pixinsight.com/forum/index....cuda-and-libtensorflow-gpu-under-linux.18180/ for native Linux users but I didn't play much more with it as I got a newer, faster computer and PxI seemed fast enough under Win11.
I still wanted to test the new version of PxI (1.8.9-2 / Build 1597) in WSL to check if there was significant performance improvement versus Win11. After the steps below I got an improvement of around 25-30% in the benchmark score, with particular CPU out performance.
Before running the Linux specific steps set out in Lblock's tutorial, I ran the following commands prior to installing the NVDIA driver:
- Install WSL. Follow Microsoft's guide here: https://learn.microsoft.com/en-us/windows/wsl/install#install From a PowerShell or CMD window,
wsl --install -d Ubuntu-22.04
- Reboot your PC, create a password for the user chosen and exit WSL. Shutdown the engine (again from the command prompt):
wsl --shutdown
followed by
A folder named Ubuntu-22.04 should be visible in File Explorer in your PC whenever WSL is running. You should be able to access the file structure of Linux using Explorer or any other file browser (see Nautilus below).wsl --update
Before installing PxI, I loaded some Qt6 packages (just in case) and installed X11 apps to make sure everything was working, so from the command prompt:
Followed by the following in bash:wsl
sudo apt-get install qt6-base && qt6-base-dev -y
sudo apt-get install x11-apps && nautilus -y
Then went back to Lblock's tutorial from this point onwards: https://pixinsight.com/forum/index....have booted into it, open the Ubuntu terminal I actually installed the latest driver available (545) which seemed to work fine.
Once PxI was installed, it became visible in the "Recent apps" section of Win11's start menu. I can now run it from there without having to start WSL from the command window (it triggers WSL automatically, as do any X11 apps installed).
There is no need to install KDE or any desktop environment as WSL handles their appearance under Windows.
I got confirmation of GPU acceleration for PxI processes through Task Manager under Windows. For some reason nvtop under WSL didn't run but I am sure WSL is benefiting from the GPU acceleration. See here: https://pixinsight.com/forum/index....-starxterminator-or-starnet.22163/post-144907
Roberto