Datasets:
Download container-system.sh from code-roamer/gpu-kernel-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 939 Bytes
-
https://huggingface.co/datasets/code-roamer/gpu-kernel-benchmark/resolve/main/container-system.sh
- Command line
-
hf download hf://datasets/code-roamer/gpu-kernel-benchmark/container-system.sh
-
curl -L -o container-system.sh https://huggingface.co/datasets/code-roamer/gpu-kernel-benchmark/resolve/main/container-system.sh
939 Bytes
| # 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' | |