ec436095dd
Book-CI / test (macos-latest) (push) Has been cancelled
Book-CI / test (ubuntu-latest) (push) Has been cancelled
Book-CI / test (windows-latest) (push) Has been cancelled
Release Fake Tag / publish (push) Has been cancelled
Deploy / deploy (macos-latest) (push) Has been cancelled
Deploy / deploy (ubuntu-latest) (push) Has been cancelled
Deploy / deploy (windows-latest) (push) Has been cancelled
Release to PyPI / Build & publish sglang-kt (push) Has been cancelled
Release to PyPI / Build kt-kernel (Python 3.11) (push) Has been cancelled
Release to PyPI / Build kt-kernel (Python 3.12) (push) Has been cancelled
Release to PyPI / Publish kt-kernel to PyPI (push) Has been cancelled
18 lines
460 B
Bash
Executable File
18 lines
460 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 进入脚本所在的目录
|
|
cd "$(dirname "$0")" || { echo "Failed to enter the script's directory"; exit 1; }
|
|
|
|
# 进入 ../build 目录
|
|
cd ../build || { echo "Failed to enter ../build directory"; exit 1; }
|
|
|
|
# 设置线程数列表
|
|
threads=(1 2 4 8 16 24 36 48 72)
|
|
|
|
# 遍历每个线程数并运行命令
|
|
for t in "${threads[@]}"; do
|
|
echo "Running with OMP_NUM_THREADS=$t"
|
|
OMP_NUM_THREADS=$t numactl -N 0 ./la/amx-test
|
|
sleep 1s
|
|
done
|