gpu-kernel-benchmark / python-gpu
code-roamer's picture
Publish GPU Kernel Benchmark v0.8.1 public edition
5d12def verified
Raw History Blame Contribute Delete
721 Bytes
#!/usr/bin/env bash
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" "$@"