gpu-kernel-benchmark / container-system.sh
code-roamer's picture
Publish GPU Kernel Benchmark v0.8.1 public edition
5d12def verified
Raw History Blame Contribute Delete
939 Bytes
#!/usr/bin/env bash
# System packages and CPython shared by the H100 and B200 images.
set -euo pipefail
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y --no-install-recommends build-essential gcc-12 g++-12 g++-13 \
ca-certificates curl git cmake ninja-build xz-utils openssh-client \
libelf-dev libdw-dev libnuma-dev libssl-dev zlib1g-dev libffi-dev \
libbz2-dev liblzma-dev libsqlite3-dev libreadline-dev libgdbm-dev uuid-dev
rm -rf /var/lib/apt/lists/*
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' EXIT
cd "$tmp"
curl -fsSL --retry 3 https://www.python.org/ftp/python/3.11.2/Python-3.11.2.tar.xz -o python.tar.xz
echo '29e4b8f5f1658542a8c13e2dd277358c9c48f2b2f7318652ef1675e402b9d2af python.tar.xz' | sha256sum -c -
tar -xf python.tar.xz
cd Python-3.11.2
./configure --prefix=/usr/local --with-ensurepip=install
make -j"${MAX_JOBS:-4}"
make altinstall
python3.11 -c 'import bz2, ctypes, lzma, sqlite3, ssl, venv'