From 427d88cc42bfcaa3d8af0e0d35a69e4a2c60f120 Mon Sep 17 00:00:00 2001 From: Paul Pham Date: Sat, 5 Aug 2023 13:11:20 -0700 Subject: [PATCH] Add run of clinfo and bash history so far. --- bash_history.txt | 241 +++++++++++++++++++++++++++++++++++++++++++++++ clinfo.txt | 23 +++++ 2 files changed, 264 insertions(+) create mode 100644 bash_history.txt create mode 100644 clinfo.txt diff --git a/bash_history.txt b/bash_history.txt new file mode 100644 index 0000000..9c31c41 --- /dev/null +++ b/bash_history.txt @@ -0,0 +1,241 @@ + 1 sudo apt update + 2 mkdir src/ + 3 cd src/ + 4 mkdir arcologos-infra + 5 cd arcologos-infra/ + 6 uname -m && cat /etc/*release + 7 uname -a + 8 dpkg -l | grep linux-image + 9 dpkg -l | grep linux-headers + 10 sudo apt purge linux-image-6.2.0-26-generic + 11 sudo vi /etc/default/grub + 12 sudo update-grub + 13 sudo vi /etc/default/grub + 14 sudo update-grub + 15 sudo reboot + 16 uname -a + 17 sudo vi /etc/default/grub + 18 lsb_release + 19 lsb_release -i + 20 lsb_release -a + 21 sudo update-grub + 22 sudo reboot + 23 ls + 24 uname -a + 25 sudo apt purge linux-image-6.2.0-26-generic + 26 sudo apt purge linux-headers-6.2.0-26-generic + 27 lspci -a + 28 # Make the directory if it doesn't exist yet. + 29 # This location is recommended by the distribution maintainers. + 30 sudo mkdir --parents --mode=0755 /etc/apt/keyrings + 31 # Download the key, convert the signing-key to a full + 32 # keyring required by apt and store in the keyring directory + 33 wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null + 34 # Kernel driver repository for jammy + 35 sudo tee /etc/apt/sources.list.d/amdgpu.list <<'EOF' + 36 deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/latest/ubuntu jammy main + 37 EOF + 38 # ROCm repository for jammy + 39 sudo tee /etc/apt/sources.list.d/rocm.list <<'EOF' + 40 deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/debian jammy main + 41 EOF + 42 # Prefer packages from the rocm repository over system packages + 43 echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600 + 44 sudo apt update + 45 wget https://repo.radeon.com/amdgpu-install/5.6/ubuntu/jammy/amdgpu-install_5.6.50600-1_all.deb + 46 sudo apt install ./amdgpu-install_5.6.50600-1_all.deb + 47 apt install rocm-opencl-runtime + 48 sudo apt install rocm-opencl-runtime + 49 sudo amdgpu-install --no-dkms --usecase=opencl + 50 lspci -a + 51 lspci + 52 clinfo + 53 sudo reboot + 54 ls + 55 lspci + 56 clinfo + 57 clinfo -l + 58 uname -a + 59 cat /etc/OpenCL/vendors/amdocl64_50600_67.icd + 60 sudo clinfo -l + 61 uname -a + 62 amdgpu-install -h + 63 lsmod + 64 lsmod | grep gpu + 65 ls /etc/modules/ + 66 ls /etc/modules + 67 cat /etc/modules + 68 lsmod + 69 id + 70 sudo usermod -G video -a $USER + 71 sudo usermod -G render -a $USER + 72 sudo vi /etc/grub.d/10_linux + 73 sudo vi /boot/grub/grub.cfg + 74 vi /etc/default/grub + 75 sudo apt install -y wget apt-transport-https + 76 ‍ + 77 sudo wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg + 78 ‍ + 79 echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | sudo tee /etc/apt/sources.list.d/element-io.list + 80 sudo apt update + 81 sudo apt install element-desktop + 82 element-desktop + 83 clinfo -l + 84 sudo clinfo -l + 85 lspci + 86 sudo amdgpu-install --no-dkms --usecase=opencl + 87 sudo apt autoremove + 88 clinfo + 89 sudo clinfo + 90 sudo dmesg + 91 sudo dmesg | grep amd + 92 sudo vi /etc/grub.d/10_linux + 93 sudo vi /etc/grub.d/README + 94 sudo vi /etc/grub.d/10_linux_zfs + 95 sudo vi /etc/default/grub + 96 sudo update-grub + 97 sudo reboot + 98 clinfo -l + 99 sudo clinfo -l + 100 sudo dmesg + 101 sudo dmesg | grep amd + 102 ls /usr/lib/firmware/amdgpu + 103 sudo amdgpu-uninstall + 104 ls + 105 cd ~/Downloads/ + 106 ls + 107 sudo dpkg -i ./amdgpu-install_5.5.50502-1_all.deb + 108 sudo amdgpu-install --usecase=workstation --opencl=legacy,rocr -y --vulkan=pro + 109 sudo reboot + 110 lspci -k | grep -EA3 'VGA|3D|Display' + 111 lspci -k | less + 112 htop + 113 top + 114 sudo dmesg | grep amd + 115 lsmod -k + 116 lsmod + 117 lspci -k + 118 cd ~/Downloads/ + 119 ls + 120 unzip amdvbflash_linux_4.71.zip + 121 ls + 122 chmod +x ./amdvbflash + 123 ./amdvbflash + 124 sudo ./amdvbflash + 125 cd ~/src/arcologos-infra/ + 126 ls + 127 sudo ./amdvbflash -i + 128 mv ~/Downloads/amdvbflash . + 129 ls + 130 touch README.md + 131 git init + 132 git checkout -b main + 133 git add README.md + 134 git commit -m "first commit" + 135 git remote add origin http://199.170.132.91:3000/learner-long-life/arcologos-infra.git + 136 git push -u origin main + 137 sudo apt install git + 138 ls + 139 git status + 140 touch README.md + 141 git init + 142 git checkout -b main + 143 git add README.md + 144 git commit -m "first commit" + 145 git remote add origin http://199.170.132.91:3000/learner-long-life/arcologos-infra.git + 146 git push -u origin main + 147 git config --global user.email "paulpham@yahoo.com" + 148 git config --global user.name "Paul Pham" + 149 git commit --amend + 150 git push -u origin main + 151 git push + 152 git push --set-upstream origin main + 153 git commit -m "First commit" + 154 git push -u origin main + 155 ls + 156 vi README.md + 157 history + 158 ls + 159 ./amdvbflash -i + 160 sudo ./amdvbflash -i + 161 mkdir GPUs + 162 sudo ./amdvbflash -i > GPUs/ai-gpu-01.txt + 163 cd GPUs/ + 164 ls + 165 mkdir infos + 166 mkdir firmwares + 167 mv ~/Downloads/Gigabyte.R9390.8192.150605_1.rom firmwares/ + 168 cd .. + 169 ls + 170 mv amdvbflash GPUs/ + 171 cd GPUs/ + 172 ls + 173 mv amdvbflash amdvbflash-linux + 174 ls + 175 sudo ./amdvbflash-linux + 176 sudo ./amdvbflash-linux -pcie + 177 sudo ./amdvbflash-linux -ai + 178 sudo ./amdvbflash-linux -ai > infos/ai-gpu-01.txt + 179 sudo ./amdvbflash-linux -h + 180 sudo ./amdvbflash-linux -h | grep dump + 181 sudo ./amdvbflash-linux -h | grep save + 182 sudo ./amdvbflash-linux -h | grep output + 183 ls + 184 mkdir firmwares/originals + 185 mkdir firmwares/current + 186 sudo ./amdvbflash-linux -p 0 firmwares/current/ai-gpu-01.bin + 187 sudo ./amdvbflash-linux -h | less + 188 sudo ./amdvbflash-linux -s 0 firmwares/current/ai-gpu-01.bin + 189 cat infos/ai-gpu-01.txt + 190 cat ai-gpu-01.txt + 191 mkdir runs + 192 vi runs/ai-gpu-01.log + 193 ls + 194 cat ai-gpu-01.txt + 195 rm ai-gpu-01.txt + 196 git status + 197 git add ../README.md + 198 cd .. + 199 git add GPUs/ + 200 git status + 201 git commit -m "Add amdvbflash binary and BIOS dump and stats from ai-gpu-01." + 202 git push + 203 ls + 204 cd GPUs/ + 205 ls + 206 ls .. + 207 ls firmwares/ + 208 git mv firmwares/Gigabyte.R9390.8192.150605_1.rom firmwares/originals/ + 209 ls + 210 ls infos/ + 211 ls runs/ + 212 # sudo ./amdvbflash-linux -f 0 ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom + 213 ls firmwares/current/ + 214 ls -lh firmwares/current/ + 215 git status + 216 sudo ./amdvbflash-linux -f 0 ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom --logappend + 217 sudo ./amdvbflash-linux ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom --logappend -f 0 + 218 sudo ./amdvbflash-linux ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom --logappend -f + 219 sudo ./amdvbflash-linux -f + 220 sudo ./amdvbflash-linux -p 0 ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom + 221 sudo ./amdvbflash-linux -p 0 ./firmwares/originals/Gigabyte.R9390.8192.150605_1.rom -fv --logappend + 222 ls + 223 vi runs/ai-gpu-01.log + 224 git add -u . + 225 git status + 226 git commit -m "Commit log of flashing ai-gpi-01.txt" + 227 git push + 228 git status + 229 sudo reboot + 230 cd src/ + 231 ls + 232 cd arcologos-infra/ + 233 ls + 234 cd GPUs/ + 235 ls + 236 sudo dmesg + 237 sudo dmesg | grep amd + 238 which clinfo + 239 sudo amdgpu-install --usecase=workstation --opencl=legacy,rocr -y --vulkan=pro + 240 sudo apt install opencl + 241 history > ~/src/arcologos-infra/bash_history.txt diff --git a/clinfo.txt b/clinfo.txt new file mode 100644 index 0000000..d37c313 --- /dev/null +++ b/clinfo.txt @@ -0,0 +1,23 @@ +Number of platforms 1 + Platform Name AMD Accelerated Parallel Processing + Platform Vendor Advanced Micro Devices, Inc. + Platform Version OpenCL 2.1 AMD-APP (3558.0) + Platform Profile FULL_PROFILE + Platform Extensions cl_khr_icd cl_amd_event_callback + Platform Extensions function suffix AMD + Platform Host timer resolution 1ns + + Platform Name AMD Accelerated Parallel Processing +Number of devices 0 + +NULL platform behavior + clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform + clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform + clCreateContext(NULL, ...) [default] No platform + clCreateContext(NULL, ...) [other] + clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform + clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform + clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform + clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform + clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform + clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform