NWChem/travis/cpuinfo.sh

16 lines
521 B
Bash
Raw Permalink Normal View History

2025-03-17 15:23:14 -07:00
#!/usr/bin/env bash
2025-03-21 17:27:00 -07:00
git clone -q https://github.com/pytorch/cpuinfo
2025-03-17 15:23:14 -07:00
cd cpuinfo
mkdir build && cd build
2025-10-23 22:26:36 -07:00
CC=gcc CMAKE_POLICY_VERSION_MINIMUM=3.5 cmake .. >& cmake.log
2025-10-01 12:04:34 -07:00
tail -20 cmake.log
2025-03-21 15:41:34 -07:00
make -j3 >& make.log
tail -3 make.log
2025-03-17 15:23:14 -07:00
./isa-info
./cpu-info
2025-10-23 18:19:47 -07:00
./cpu-info |grep -A 1 Microa|tail -1 |cut -d ' ' -f 2-3 | sed -e "s/ //"
rm -f /tmp/microarch_$(id -u).txt
./cpu-info |grep -A 1 Microa|tail -1 |cut -d ' ' -f 2-3 | sed -e "s/ //"> /tmp/microarch_$(id -u).txt
2025-03-17 15:23:14 -07:00
cd ../..
2025-10-23 18:19:47 -07:00
if [[ $(uname -s) == Linux ]]; then /usr/bin/lscpu ; fi