Datasets:
Download python-gpu from code-roamer/gpu-kernel-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/datasets/code-roamer/gpu-kernel-benchmark/resolve/main/python-gpu
- Command line
-
hf download hf://datasets/code-roamer/gpu-kernel-benchmark/python-gpu
-
curl -L -o python-gpu https://huggingface.co/datasets/code-roamer/gpu-kernel-benchmark/resolve/main/python-gpu
721 Bytes
| set -euo pipefail | |
| root=$(cd -- "$(dirname -- "$0")" && pwd) | |
| py=${KERNELBENCH_BASE_PYTHON:-$root/.venv-kernelbench/bin/python} | |
| if [[ ! -x "$py" ]]; then | |
| echo "Create .venv-kernelbench or set KERNELBENCH_BASE_PYTHON to the Python 3.11 executable." >&2 | |
| exit 2 | |
| fi | |
| deps="$root/third_party" | |
| export PYTHONPATH="$deps/deepgemm-site:$deps/h100-expert-site:$deps/h100-dlpack-site:$deps/h100-deps:$deps/flashmla-build-deps:$deps/flashmla-site:$root" | |
| export LD_LIBRARY_PATH="$deps/h100-cxx-runtime${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" | |
| export PATH="$deps/h100-deps/bin:$deps/flashmla-build-deps/bin:$PATH" | |
| export PYTHONNOUSERSITE=1 PYTHONDONTWRITEBYTECODE=1 MAX_JOBS=${MAX_JOBS:-4} | |
| cd "$root" | |
| exec "$py" "$@" | |