Browse Source

Order fixed.

master
Carlos Reding 1 month ago
parent
commit
7c3cca728f
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      smt.sh

+ 4
- 4
smt.sh View File

@@ -4,18 +4,18 @@ function hyperthreading {
pkexec tee /sys/devices/system/cpu/smt/control <<< off
# Update Julia settings
if [ -v $JULIA_NUM_THREADS ]; then
JULIA_NUM_THREADS=$(nproc)
else
exit 0;
else
JULIA_NUM_THREADS=$(nproc)
fi
;;
"ON")
pkexec tee /sys/devices/system/cpu/smt/control <<< on
# Update Julia settings
if [ -v $JULIA_NUM_THREADS ]; then
JULIA_NUM_THREADS=$(nproc);
exit 0;
else
exit 0
JULIA_NUM_THREADS=$(nproc);
fi
;;
*)

Loading…
Cancel
Save