This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && \ | |
sudo apt install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
sudo apt update && \ | |
sudo apt install gcc-6 g++-6 -y && \ | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \ | |
gcc -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
typeset -i state | |
for i in /sys/devices/system/cpu/cpu[0-9]*; do | |
if [ -d ${i}/node1 ]; then | |
state="$(<${i}/online)" | |
echo -n "$((1-state))" > "${i}/online" | |
echo "switched ${i}/online to $((1-state))" | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
typeset -i core_id | |
typeset -i sibling_id | |
typeset -i state | |
for i in /sys/devices/system/cpu/cpu[0-9]*; do | |
core_id="${i##*cpu}" | |
sibling_id="-1" | |
if [ -f ${i}/topology/thread_siblings_list ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt update | |
sudo apt upgrade libstdc++6 -y | |
sudo apt dist-upgrade | |
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX |