Skip to content

Installing unigpu on a Chromebook

ChromeOS runs Linux programs in its Linux development environment, a Debian container. No GPU computing interface (CUDA, OpenCL) reaches the GPU from it: unigpu runs there on the simulator and with OpenCL on the CPU. For a GPU, use Google Colab in the browser (guide).

The general steps are explained in INSTALL.md.

1. Turn on Linux

Settings → About ChromeOS → Developers → Linux development environment → Set up (on older versions: Settings → Advanced → Developers). A Terminal opens once the installation is complete. Some school-managed Chromebooks do not allow it: Colab remains possible.

2. Python, git, code

In the Terminal:

sudo apt update
sudo apt install -y python3-venv python3-pip git
git clone https://github.com/laveneau/unigpu.git
cd unigpu
python3 -m venv .venv
source .venv/bin/activate          # again in every new terminal
python -m pip install --upgrade pip
pip install -e .                   # the simulator

Without git: see INSTALL.md.

3. OpenCL on the CPU

uname -m gives the processor of the Chromebook.

  • x86_64 (Intel, AMD):

    pip install -e ".[opencl-cpu]"
    
  • aarch64 (ARM): POCL comes from Debian instead.

    sudo apt install -y pocl-opencl-icd
    pip install -e ".[opencl]"
    

4. Check

python -m unigpu.selftest all
python examples/00_discovery.py

The simulator and the OpenCL device of the processor must each end with 11/11 checks passed.

Problems

Symptom What to do
no Developers section in the settings the Chromebook is managed (school): use Colab
opencl: no OpenCL driver installed ARM Chromebook: install pocl-opencl-icd (step 3)
cuda, hip, metal: not installed expected: no GPU in the Linux environment of ChromeOS