kinu-garage / hut_10sqft

Computer setup tools for my own environment, and public discussion place holder.
2 stars 1 forks source link

Setting up Sonnet eGPU Breakaway Box 650W + p16s + RTX 4060-ti dual #1120

Open 130s opened 16 hours ago

130s commented 16 hours ago

Implementing the plan from https://github.com/kinu-garage/hut_10sqft/issues/866

130s commented 16 hours ago

Understanding GPU/eGPU power requirement tailored to a home office setting.

130s commented 15 hours ago

Integrating GPU (via eGPU) to p16s (Thinkpad laptop w/Ubuntu)

Sonnet eGPU + RTX4060-ti dual. See https://github.com/kinu-garage/hut_10sqft/issues/1120

My p16s comes with Thunderbolt gen4 https://github.com/kinu-garage/hut_10sqft/issues/866#issuecomment-2113074376the, which is backed by it coming w/SSD w/PCIe gen4 (from product spec):

Solid State Drive 1 TB SSD M.2 2280 PCIe Gen4 Performance TLC Opal

Setting up Ubuntu Following https://developer.nvidia.com/blog/accelerating-machine-learning-on-a-linux-laptop-with-an-external-gpu/

GPU nor eGPU not detected.

$ lspci | grep -i “nvidia”
$ lsmod | grep -i “nvidia”
$

$ apt-cache policy nvidia-cuda-toolkit
nvidia-cuda-toolkit:
  Installed: (none)
  Candidate: 11.5.1-1ubuntu1
  Version table:
     11.5.1-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages

Since nvidia-cuda-toolkit seems to be missing, installing it.

Whopping 5GB disk space is required, might as well do it. ``` $ sudo apt install nvidia-cuda-toolkit [sudo] password for n130s: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libaccinj64-11.5 libcub-dev libcublas11 libcublaslt11 libcudart11.0 libcufft10 libcufftw10 libcuinj64-11.5 libcupti-dev libcupti-doc libcupti11.5 libcurand10 libcusolver11 libcusolvermg11 libcusparse11 libnppc11 libnppial11 libnppicc11 libnppidei11 libnppif11 libnppig11 libnppim11 libnppist11 libnppisu11 libnppitc11 libnpps11 libnvblas11 libnvidia-ml-dev libnvjpeg11 libnvrtc-builtins11.5 libnvrtc11.2 libnvtoolsext1 libnvvm4 libthrust-dev libvdpau-dev node-html5shiv nsight-compute nsight-compute-target nsight-systems nsight-systems-target nvidia-cuda-dev nvidia-cuda-gdb nvidia-cuda-toolkit-doc nvidia-opencl-dev nvidia-profiler nvidia-visual-profiler ocl-icd-opencl-dev opencl-c-headers opencl-clhpp-headers openjdk-8-jre openjdk-8-jre-headless Suggested packages: libvdpau-doc nodejs opencl-clhpp-headers-doc fonts-nanum fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei fonts-wqy-zenhei Recommended packages: libnvcuvid1 The following NEW packages will be installed: libaccinj64-11.5 libcub-dev libcublas11 libcublaslt11 libcudart11.0 libcufft10 libcufftw10 libcuinj64-11.5 libcupti-dev libcupti-doc libcupti11.5 libcurand10 libcusolver11 libcusolvermg11 libcusparse11 libnppc11 libnppial11 libnppicc11 libnppidei11 libnppif11 libnppig11 libnppim11 libnppist11 libnppisu11 libnppitc11 libnpps11 libnvblas11 libnvidia-ml-dev libnvjpeg11 libnvrtc-builtins11.5 libnvrtc11.2 libnvtoolsext1 libnvvm4 libthrust-dev libvdpau-dev node-html5shiv nsight-compute nsight-compute-target nsight-systems nsight-systems-target nvidia-cuda-dev nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-cuda-toolkit-doc nvidia-opencl-dev nvidia-profiler nvidia-visual-profiler ocl-icd-opencl-dev opencl-c-headers opencl-clhpp-headers openjdk-8-jre openjdk-8-jre-headless 0 upgraded, 52 newly installed, 0 to remove and 0 not upgraded. Need to get 1,895 MB of archives. After this operation, 5,058 MB of additional disk space will be used. Do you want to continue? [Y/n] ```
130s commented 15 hours ago

Afterwards, boot into runlevel 3 by appending 3 to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub:

Unclear what this is instructing. So trying:

/etc/default/grub

#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash 4"

Doing this now... :crossed_fingers:

sudo update-grub
sudo shutdown --reboot
130s commented 13 hours ago

Rebooting the OS then I see it stuck at BIOS. I do see Ubuntu icon pops up under the Lenovo logo, also I am able to ssh-in so Ubuntu is started. Just graphics/desktop manager issue I think. Will look later into the syslog I captured.