Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 29 additions & 6 deletions script/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MLCommons Automation Scripts

*Last updated: 2026-10-01 05:17:29*
*Last updated: 2026-10-03 04:34:53*

This directory contains automation scripts for MLPerf benchmarks, AI/ML workflows, and development operations.

Expand All @@ -10,6 +10,7 @@ This directory contains automation scripts for MLPerf benchmarks, AI/ML workflow
- [AI/ML frameworks](#aiml-frameworks)
- [AI/ML models](#aiml-models)
- [AI/ML optimization](#aiml-optimization)
- [Agentic Benchmarks](#agentic-benchmarks)
- [Benchmarking](#benchmarking)
- [CUDA automation](#cuda-automation)
- [Cloud automation](#cloud-automation)
Expand Down Expand Up @@ -39,6 +40,7 @@ This directory contains automation scripts for MLPerf benchmarks, AI/ML workflow
- [TinyML automation](#tinyml-automation)
- [Uncategorized](#uncategorized)
- [Utilities](#utilities)
- [Vector Search Benchmarks](#vector-search-benchmarks)
- [XPU automation](#xpu-automation)
- [lstopo infragraph automation](#lstopo-infragraph-automation)
- [lstopo topology automation](#lstopo-topology-automation)
Expand Down Expand Up @@ -276,11 +278,23 @@ This directory contains automation scripts for MLPerf benchmarks, AI/ML workflow
- prune-bert-models
- Tags: `prune`, `bert-models`, `bert-prune`, `prune-bert-models`

## Agentic Benchmarks

- **[app-gaia-benchmark](app-gaia-benchmark/)**
- app-gaia-benchmark
- Tags: `app`, `agentic`, `agent`, `benchmark`, `gaia`, `general-ai-assistant`
- **[app-hotpotqa](app-hotpotqa/)**
- app-hotpotqa
- Tags: `app`, `agentic`, `agent`, `benchmark`, `qa`, `multi-hop`, `hotpotqa`
- **[app-webarena](app-webarena/)**
- app-webarena
- Tags: `app`, `agentic`, `agent`, `benchmark`, `web-agent`, `webarena`
- **[app-webvoyager](app-webvoyager/)**
- app-webvoyager
- Tags: `app`, `agentic`, `agent`, `benchmark`, `web-agent`, `webvoyager`

## Benchmarking

- **[benchmark-hpc](benchmark-hpc/)**
- benchmark-hpc
- Tags: `benchmark`, `hpc`, `benchmark-hpc`
- **[benchmark-program-coremark](benchmark-program-coremark/)**
- benchmark-program-coremark
- Tags: `benchmark`, `coremark`, `cpu`, `benchmark-coremark`, `benchmark-program-coremark`
Expand Down Expand Up @@ -578,6 +592,9 @@ This directory contains automation scripts for MLPerf benchmarks, AI/ML workflow
- **[get-openssl](get-openssl/)**
- get-openssl
- Tags: `get`, `openssl`, `lib`, `lib-openssl`
- **[get-phoronix-test-suite](get-phoronix-test-suite/)**
- get-phoronix-test-suite
- Tags: `get`, `install`, `phoronix-test-suite`, `phoronix`, `pts`
- **[get-rclone](get-rclone/)**
- get-rclone
- Tags: `get`, `rclone`
Expand Down Expand Up @@ -1575,6 +1592,12 @@ This directory contains automation scripts for MLPerf benchmarks, AI/ML workflow
- send-mail
- Tags: `send`, `mail`, `email`

## Vector Search Benchmarks

- **[benchmark-hnswlib](benchmark-hnswlib/)**
- benchmark-hnswlib
- Tags: `benchmark`, `hnswlib`, `ann`, `approximate-nearest-neighbor`, `vector-search`

## XPU automation

- **[get-xpu-devices](get-xpu-devices/)**
Expand All @@ -1597,8 +1620,8 @@ This directory contains automation scripts for MLPerf benchmarks, AI/ML workflow

## Statistics

- **Total Scripts**: 480
- **Categories**: 36
- **Total Scripts**: 485
- **Categories**: 38

## Usage

Expand Down
3 changes: 2 additions & 1 deletion script/app-athena/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def postprocess(i):
env = i['env']

src_path = env.get('MLC_ATHENA_SRC_PATH', '')
bin_dir = os.path.join(src_path, 'bin')
compiler_tag = env.get('MLC_COMPILER_FAMILY', '') or 'default'
bin_dir = os.path.join(src_path, 'bin-' + compiler_tag)

binary = os.path.join(bin_dir, 'athena')
if not os.path.isfile(binary):
Expand Down
43 changes: 43 additions & 0 deletions script/app-athena/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,49 @@ variations:
env:
MLC_GIT_CHECKOUT_TAG: v24.0


# ---- Compiler variations (CC/CXX/FC + MPI wrappers via get-compiler-paths-amd) ----
gcc:
group: compiler
env:
MLC_COMPILER_FAMILY: gcc
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
aocc:
group: compiler
env:
MLC_COMPILER_FAMILY: aocc
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
llvm:
group: compiler
env:
MLC_COMPILER_FAMILY: llvm
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
amdclang:
group: compiler
env:
MLC_COMPILER_FAMILY: amdclang
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
oneapi:
group: compiler
env:
MLC_COMPILER_FAMILY: oneapi
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths

# Tests
tests:
run_inputs:
Expand Down
9 changes: 8 additions & 1 deletion script/app-athena/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ fi
SRC="${MLC_ATHENA_SRC_PATH}"
CORES="${MLC_HOST_CPU_TOTAL_PHYSICAL_CORES:-$(nproc)}"
PYTHON="${MLC_PYTHON_BIN_WITH_PATH:-python3}"
COMPILER_TAG="${MLC_COMPILER_FAMILY:-default}"
case "${COMPILER_TAG}" in
oneapi) ATH_CXX=icpx ;;
gcc|default) ATH_CXX=g++ ;;
*) ATH_CXX=clang++ ;;
esac

cd "${SRC}"

echo "Configuring Athena++ (shock_tube problem)..."
"${PYTHON}" configure.py --prob=shock_tube
"${PYTHON}" configure.py --prob=shock_tube --cxx "${ATH_CXX}"

echo "Building Athena++ with ${CORES} cores..."
make clean || true
Expand All @@ -30,4 +36,5 @@ echo "Running Athena++ smoke test (Sod shock tube, 5 steps)..."
mkdir -p athena_smoke_out
./bin/athena -i inputs/hydro/athinput.sod time/nlim=5 -d athena_smoke_out

mkdir -p "bin-${COMPILER_TAG}" && cp bin/athena "bin-${COMPILER_TAG}/athena"
echo "Athena++ built and smoke-tested successfully."
43 changes: 43 additions & 0 deletions script/app-bigdft/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,49 @@ variations:
env:
MLC_GIT_CHECKOUT_TAG: '1.9.5'


# ---- Compiler variations (CC/CXX/FC + MPI wrappers via get-compiler-paths-amd) ----
gcc:
group: compiler
env:
MLC_COMPILER_FAMILY: gcc
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
aocc:
group: compiler
env:
MLC_COMPILER_FAMILY: aocc
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
llvm:
group: compiler
env:
MLC_COMPILER_FAMILY: llvm
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
amdclang:
group: compiler
env:
MLC_COMPILER_FAMILY: amdclang
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
oneapi:
group: compiler
env:
MLC_COMPILER_FAMILY: oneapi
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths

# Tests
tests:
run_inputs: []
3 changes: 2 additions & 1 deletion script/app-castro/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def preprocess(i):
def postprocess(i):
env = i['env']
src_path = env.get('MLC_CASTRO_SRC_PATH', '')
hits = glob.glob(os.path.join(src_path, 'Exec', 'hydro_tests', 'Sedov', '*.ex'))
compiler_tag = env.get('MLC_COMPILER_FAMILY', '') or 'default'
hits = glob.glob(os.path.join(src_path, 'install-' + compiler_tag, 'bin', '*.ex'))
if not hits:
return {'return': 1, 'error': f'Castro executable not found under {src_path}'}
bin_dir = os.path.dirname(hits[0])
Expand Down
43 changes: 43 additions & 0 deletions script/app-castro/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,49 @@ variations:
env:
MLC_GIT_CHECKOUT_TAG: 26.09


# ---- Compiler variations (CC/CXX/FC + MPI wrappers via get-compiler-paths-amd) ----
gcc:
group: compiler
env:
MLC_COMPILER_FAMILY: gcc
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
aocc:
group: compiler
env:
MLC_COMPILER_FAMILY: aocc
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
llvm:
group: compiler
env:
MLC_COMPILER_FAMILY: llvm
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
amdclang:
group: compiler
env:
MLC_COMPILER_FAMILY: amdclang
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
oneapi:
group: compiler
env:
MLC_COMPILER_FAMILY: oneapi
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths

# Tests
tests:
run_inputs:
Expand Down
9 changes: 8 additions & 1 deletion script/app-castro/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ export PATH="${SRC}/.pybin:${PATH}"

# AMReX and Microphysics ship as git submodules under external/.
cd "${SRC}/Exec/hydro_tests/Sedov"
make -j"${CORES}" COMP=gnu USE_MPI=FALSE DIM=2 \
COMPILER_TAG="${MLC_COMPILER_FAMILY:-default}"
case "${COMPILER_TAG}" in gcc|default) CMP=gnu ;; oneapi) CMP=intel ;; *) CMP=llvm ;; esac
# AMReX names the binary with ${CMP}, so different compilers do not clobber.
# Override the actual compilers with the selected toolchain (gnu/llvm flag style).
make -j"${CORES}" COMP=${CMP} USE_MPI=FALSE DIM=2 \
${CXX:+CXX="${CXX}"} ${CC:+CC="${CC}"} ${FC:+FC="${FC}"} ${FC:+F90="${FC}"} \
AMREX_HOME="${SRC}/external/amrex" \
MICROPHYSICS_HOME="${SRC}/external/Microphysics"

if ! ls *.ex >/dev/null 2>&1; then
echo "Castro executable not built"
exit 1
fi
mkdir -p "${SRC}/install-${COMPILER_TAG}/bin"
cp "$(ls -t *.ex | head -1)" "${SRC}/install-${COMPILER_TAG}/bin/Castro.ex"

echo "Castro build step completed."
3 changes: 2 additions & 1 deletion script/app-cloverleaf/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def postprocess(i):
env = i['env']

src_path = env.get('MLC_CLOVERLEAF_SRC_PATH', '')
install_dir = os.path.join(src_path, 'install')
compiler_tag = env.get('MLC_COMPILER_FAMILY', '') or 'default'
install_dir = os.path.join(src_path, 'install-' + compiler_tag)
bin_dir = os.path.join(install_dir, 'bin')

clover_bin = os.path.join(bin_dir, 'clover_leaf')
Expand Down
43 changes: 43 additions & 0 deletions script/app-cloverleaf/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,49 @@ variations:
env:
MLC_GIT_CHECKOUT: master


# ---- Compiler variations (CC/CXX/FC + MPI wrappers via get-compiler-paths-amd) ----
gcc:
group: compiler
env:
MLC_COMPILER_FAMILY: gcc
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
aocc:
group: compiler
env:
MLC_COMPILER_FAMILY: aocc
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
llvm:
group: compiler
env:
MLC_COMPILER_FAMILY: llvm
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
amdclang:
group: compiler
env:
MLC_COMPILER_FAMILY: amdclang
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths
oneapi:
group: compiler
env:
MLC_COMPILER_FAMILY: oneapi
deps:
- tags: get,compiler,paths,amd
names:
- compiler-paths

# Tests
tests:
run_inputs:
Expand Down
7 changes: 5 additions & 2 deletions script/app-cloverleaf/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ if [[ -z "${MLC_CLOVERLEAF_SRC_PATH}" ]]; then
fi

SRC="${MLC_CLOVERLEAF_SRC_PATH}"
INSTALL_DIR="${SRC}/install"
COMPILER_TAG="${MLC_COMPILER_FAMILY:-default}"
INSTALL_DIR="${SRC}/install-${COMPILER_TAG}"
case "${COMPILER_TAG}" in oneapi) CLV=INTEL ;; *) CLV=GNU ;; esac
CORES="${MLC_HOST_CPU_TOTAL_PHYSICAL_CORES:-$(nproc)}"

echo "Building CloverLeaf-ref..."
Expand All @@ -17,7 +19,8 @@ echo "Source: ${SRC}"
cd "${SRC}"

# CloverLeaf-ref uses Makefile with MPI Fortran
make COMPILER=GNU MPI_COMPILER=mpif90 C_MPI_COMPILER=mpicc -j${CORES}
make clean >/dev/null 2>&1 || true
make COMPILER=${CLV} MPI_COMPILER=mpif90 C_MPI_COMPILER=mpicc -j${CORES}

# Install binary
mkdir -p "${INSTALL_DIR}/bin"
Expand Down
5 changes: 3 additions & 2 deletions script/app-dalton/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ def preprocess(i):
def postprocess(i):
env = i['env']
src_path = env.get('MLC_DALTON_SRC_PATH', '')
binary = os.path.join(src_path, 'build', 'dalton.x')
compiler_tag = env.get('MLC_COMPILER_FAMILY', '') or 'default'
binary = os.path.join(src_path, 'build-' + compiler_tag, 'dalton.x')
if not os.path.isfile(binary):
return {'return': 1, 'error': f'DALTON binary not found at {binary}'}
bin_dir = os.path.dirname(binary)
env['MLC_DALTON_INSTALL_PATH'] = os.path.join(src_path, 'build')
env['MLC_DALTON_INSTALL_PATH'] = os.path.join(src_path, 'build-' + compiler_tag)
env['MLC_DALTON_BIN_PATH'] = bin_dir
env['+PATH'] = [bin_dir]
return {'return': 0}
Loading
Loading