發表文章

目前顯示的是 9月 5, 2021的文章

Prepare a development environment for executing docker image with GPU support

圖片
1. Install Docker Engine [1] $ sudo apt-get remove docker docker-engine docker.io containerd runc $ sudo apt-get update   $ sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" $ sudo apt-get update $ sudo apt-get install docker-ce docker-ce-cli containerd.io 2. Add your account into docker group $ sudo gpasswd -a $USER docker $ sudo reboot 3. Install nvidia-container-runtime [2] $ curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | sudo apt-key add - $ distribution=$(. /etc/os-release;echo $ID$VERSION_ID) $ curl -s -L https://nvidia.github.io/nvidia-container-runtime/$distribution/nvidia-container-runtime.list | sudo tee /etc/apt/sources.list.d/nvidia-container-runtime.list $ sudo apt update $ sudo apt install nvidia-con

Install GPU driver and CUDA on the ubuntu system

圖片
 1. Check your GPU driver version https://www.nvidia.com/Download/index.aspx ex: Driver 470 is suitable for my note PC (GS65 Stealth 9SE) 2. Open a new terminal $ ubuntu-drivers devices $ sudo apt install nvidia-driver-470 $ sudo apt install nvidia-cuda-toolkit (--fix-missing) $ reboot 3. Check $ nvidia-smi $ nvcc -V

Hardware upgrade & Setup up dual system for msi GS65 Stealth 9SE

圖片
1. Hardware upgrade Memory:  DDR4-2666(PC4-21300) 16GB×2枚 SSD:  インテル®SSD660Pシリーズ SSDPEKNW010T8X1 Before After 2. Setup up dual system (1) Create a USB disk of Ubuntu  Ubuntu image:  https://ubuntu.com/download/desktop Rufus:  https://rufus.ie/zh_TW/ 資料分割配置: GPT 目標系統: UEFI 檔案系統: NTFS  (2) Modify computer configuration and insert the USB Hard Disk, then reboot Fast Startup: Disable Fast Boot: Disable, Boot option: USB Hard Disk Secure Boot: Disable (3) Follow the instruction to install the ubuntu system swap: 48GB ( swap setting ), Logical, Beginning of this space /: the rest of the whole free space, Primary , Beginning of this space, Ext4 *Remember to select the correct bootloader device (4) Use cmd windows to enable grub boot menu ( Run as administrator!!! ) $ bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi Reference: [1]  https://www.cnblogs.com/klchang/p/14322667.html [2]  https://www.youtube.com/watch?v=hT4m71ghD6A [3]  https://www.techiediaries.com/fixing-dual-booting-windows-1