get detailed cpu information

This commit is contained in:
edoapra 2025-03-17 15:23:14 -07:00
parent b9f1e3a4d2
commit 2fbcf486b1
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA
2 changed files with 11 additions and 3 deletions

View file

@ -498,9 +498,7 @@ jobs:
- name: Get Instruction
id: get-simd
run: |
if [[ $(uname -s) == Linux ]]; then
echo "SIMD " $(lscpu | grep -i flags | sort | uniq)
fi
./travis/cpuinfo.sh
echo "simd=$(./travis/guess_simd.sh)" >> $GITHUB_ENV
shell: bash
- name: Setup cache

10
travis/cpuinfo.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
git clone https://github.com/pytorch/cpuinfo
cd cpuinfo
mkdir build && cd build
cmake ..
make -j3
./isa-info
./cpu-info
cd ../..
rm -rf cpuinfo