Skip to content

Instantly share code, notes, and snippets.

View greerso's full-sized avatar

Greer greerso

  • Thompson's Station, TN
View GitHub Profile
@bluppfisk
bluppfisk / smos-nvidia.md
Last active November 21, 2018 01:31
SMOS Linux: what to do if not all GPUs are found

Intro

I recently helped a few friends install an ETH mining rig that they'd built on a wobbly Taipei rooftop in the middle of earthquake season. With a motherboard specially designed for mining, SMOS Linux, 3 GPUs and a fourth on the way, they seemed well set for success.

Except, only one GPU would be recognised by the mining program.

All GPUs lit up and spun up their fans. Each of them would also happily connect to our monitor. ls /dev/nvidia* would show three GPUs present. We were dumbstruck because the GPU that would work was one of two identical models in the rig: MSI GTX 1060s. We couldn't figure out why one of them was any different, but Nvidia's System Management Interface (nvidia-smi) indeed returned ERR! instead of the name of two of the cards.

When we left only one of the non-working cards in the system, we'd be told No AMD OPENCL or NVIDIA CUDA GPUs found, exit. Then we found out that one MSI was manufactured in 2017 and the other in early 2018. So something must be minutely different

#!/usr/bin/env bash
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)"
# (optional): Preparing the environment if you want to install zen from source:
# Once you get the VM up and running you need to login with your root account and run below commands.
# apt-get update && apt-get upgrade -y
# apt-get install -y build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake libgtk2.0-dev && apt-get autoremove -y