踩坑:
离线环境安装过程中因为无法连接github遇到download e649baaa95efeb61517c06cc783287d4942ffe0e.zip失败的提示。
解决方法:
- 先执行一遍./phoronix-test-suite install pts/svt-av1-2.16.0
- 在可联网机器上下载e649baaa95efeb61517c06cc783287d4942ffe0e.zip并上传至服务器放在~/.phoronix-test-suite/installed-tests/pts/svt-av1-2.16.0/SVT-AV1-v3.0.0/Build/linux/Release/_deps/cpuinfo-subbuild/cpuinfo-populate-prefix/src/.下
- 修改~/.phoronix-test-suite/test-profiles/pts/svt-av1-2.16.0/install.sh,将里面的7z解压及SVT-AV1-v3.0.0.tar.bz2解压语句全部注释,以便后续修改make文件
- 修改~/.phoronix-test-suite/installed-tests/pts/svt-av1-2.16.0/SVT-AV1-v3.0.0/Build/linux/build.sh,将build()中的make clean语句全部去掉
- 修改~/.phoronix-test-suite/installed-tests/pts/svt-av1-2.16.0/SVT-AV1-v3.0.0/Build/linux/Release/_deps/cpuinfo-subbuild/cpuinfo-populate-prefix/src/cpuinfo-populate-stamp/download-cpuinfo-populate.cmake,去掉里面的download文件步骤
- 按照3步骤里的install.sh语句,手动执行"./build.sh release --enable-lto --enable-avx512",编译完成
- 修改~/.phoronix-test-suite/installed-tests/pts/svt-av1-2.16.0/pts-install.json
{ "test_installation": { "status": "INSTALLED", "environment": { "test_identifier": "pts\/svt-av1-2.16.0", "test_version": "2.16.0", "install_checksum": "42634b7083ba84a746bb89da55d227b0", "system_hash": "QU1EIFJ5emVuIDcgOTcwMFggOC1Db3JlX19VYnVudHUgMjQuMDRfX0dDQyAxMy4zLjBfXw==", "compiler_data": { "compiler-type": "CXX", "compiler": "g++", "compiler-options": "-march=native -mno-avx -mavx2 -mavx512f -mavx512bw -mavx512dq" }, "install_footnote": null }, "history": { "install_date_time": "2025-04-29 02:53:49", "last_run_date_time": "2025-05-09 02:59:39", "install_time_length": 505, "times_run": 16, "average_runtime": 219, "latest_runtime": 111, "per_run_times": { "all": { "values": [ 33, 33, 108, 109, 34, 105, 33, 33, 108, 109, 31, 31, 108, 108, 36, 144 ], "total_times": 16, "avg": 73 }, "0dd5723583ee9bbdfd8e304f19ca44d4438bab90": { "values": [ 108, 109, 105, 108, 109, 108, 108, 144 ], "total_times": 8, "desc": "Encoder Mode: Preset 5 - Input: Bosphorus 4K", "avg": 113 }, "3c4e31fd10ca813bd548622a8b8fd0a08b7c7130": { "values": [ 36 ], "total_times": 1, "desc": "Encoder Mode: Preset 13 - Input: Bosphorus 4K", "avg": 36 }, "534a0cefe4de4b72b731626603f51007c7ef973b": { "values": [ 33, 33, 34, 33, 33, 31, 31 ], "total_times": 7, "desc": "Encoder Mode: Preset 8 - Input: Bosphorus 4K", "avg": 33 } } } } }
8. 执行 ./phoronix-test-suite run pts/svt-av1-2.16.0,可正常运行