That is just what the output of the script that is given by the OP when I copy and paste it directly. I basically pull the cuda13 container, compile and pasted the results back in.
The 1000 AI TOPS maybe be a combination of all the various cores working together versus a difference in theoretical vs true.
I used this AI generated script based upon my preferences and need for robust mirror retrying. I didn’t check the original code provided by the OP or tweak the benchmark settings
[code]
#!/usr/bin/env bash
set -euo pipefail
IMAGE=“nvidia/cuda:13.0.2-devel-ubuntu24.04”
CONTAINER_NAME=“mmapeak-cuda1302”
Optional: sanity check
if ! command -v docker >/dev/null 2>&1; then
echo “ERROR: docker not found in PATH.” >&2
exit 1
fi
echo “>>> Pulling CUDA image: ${IMAGE}”
docker pull “${IMAGE}”
echo “>>> Running container, building mmapeak, and executing it…”
NOTE: no -t here, only -i, because we are piping a here-doc into stdin.
docker run --rm -i
–gpus all
–name “${CONTAINER_NAME}”
“${IMAGE}”
bash -s <<‘IN_CONTAINER’
set -euo pipefail
export DEBIAN_FRONTEND=noninteractive
— APT helper functions with retries + Berkeley OCF fallback —
switch_to_berkeley_mirror() {
local ocf_ports=‘OCF Mirrors’
echo “>>> Switching apt sources to Berkeley OCF ubuntu-ports mirror: ${ocf_ports}”
if [ -f /etc/apt/sources.list ]; then
sed -i
-e ‘s|http://ports.ubuntu.com/ubuntu-ports|‘“${ocf_ports}”’|g’
-e ‘s|https://ports.ubuntu.com/ubuntu-ports|‘“${ocf_ports}”’|g’
/etc/apt/sources.list || true
fi
if ls /etc/apt/sources.list.d/.list >/dev/null 2>&1; then
sed -i
-e ‘s|http://ports.ubuntu.com/ubuntu-ports|‘“${ocf_ports}”’|g’
-e ‘s|https://ports.ubuntu.com/ubuntu-ports|‘“${ocf_ports}”’|g’
/etc/apt/sources.list.d/.list || true
fi
if ls /etc/apt/sources.list.d/.sources >/dev/null 2>&1; then
sed -i
-e ‘s|http://ports.ubuntu.com/ubuntu-ports|‘“${ocf_ports}”’|g’
-e ‘s|https://ports.ubuntu.com/ubuntu-ports|‘“${ocf_ports}”’|g’
/etc/apt/sources.list.d/.sources || true
fi
}
apt_update_with_retry() {
local max_tries=3
local try
for try in $(seq 1 “${max_tries}”); do
echo “>>> apt-get update (attempt ${try}/${max_tries}, default mirrors)…”
if apt-get update; then
return 0
fi
echo “>>> apt-get update failed (attempt ${try}), retrying in 5s…”
sleep 5
done
echo “>>> apt-get update failed with default mirrors. Switching to Berkeley OCF and retrying…”
switch_to_berkeley_mirror
for try in $(seq 1 “${max_tries}”); do
echo “>>> apt-get update (Berkeley mirror, attempt ${try}/${max_tries})…”
if apt-get update; then
return 0
fi
echo “>>> apt-get update (Berkeley) failed (attempt ${try}), retrying in 5s…”
sleep 5
done
echo “>>> ERROR: apt-get update failed even after switching to Berkeley mirror.” >&2
return 1
}
apt_install_with_retry() {
local pkgs=(“$@”)
local max_tries=3
local try
for try in $(seq 1 “${max_tries}”); do
echo “>>> apt-get install (attempt ${try}/${max_tries}, default mirrors): ${pkgs[*]}”
if apt-get install -y --no-install-recommends “${pkgs[@]}”; then
return 0
fi
echo “>>> apt-get install failed (attempt ${try}), retrying in 5s…”
sleep 5
done
echo “>>> apt-get install failed with default mirrors. Switching to Berkeley OCF and retrying…”
switch_to_berkeley_mirror
apt-get update
for try in $(seq 1 “${max_tries}”); do
echo “>>> apt-get install (Berkeley mirror, attempt ${try}/${max_tries}): ${pkgs[*]}”
if apt-get install -y --no-install-recommends “${pkgs[@]}”; then
return 0
fi
echo “>>> apt-get install (Berkeley) failed (attempt ${try}), retrying in 5s…”
sleep 5
done
echo “>>> ERROR: apt-get install failed even after switching to Berkeley mirror.” >&2
return 1
}
— APT setup & dependencies —
echo “>>> Updating package lists with retry/fallback…”
apt_update_with_retry
echo “>>> Installing build dependencies…”
apt_install_with_retry git build-essential cmake ca-certificates
— Clone, build, and run mmapeak —
echo “>>> Cloning mmapeak…”
git clone GitHub - ReinForce-II/mmapeak /opt/mmapeak
echo “>>> Building mmapeak with CMake…”
cd /opt/mmapeak
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j"$(nproc)"
echo “>>> Running ./mmapeak …”
./mmapeak
IN_CONTAINE[/code]