Just some code examples from OpenCLHowto.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

7 lines
137 B

#! /bin/bash
NCPUS=$(grep processor /proc/cpuinfo | wc -l)
for i in $(seq 0 $((NCPUS-1)) ); do
echo $i
cpufreq-set -g $1 -c $i
done