See also: https://danieldk.eu/Posts/2020-08-31-MKL-Zen.html
Compile this:
int mkl_serv_intel_cpu_true() {
return 1;
}
into a shared library: gcc -shared -fPIC -o libfakeintel.so fakeintel.c
# Detect the correct TERM value for new sessions. | |
# if-shell uses /bin/sh, so bashisms like [[ do not work. | |
if "[ $(tput colors) = 16777216 ]" { | |
set -g default-terminal "tmux-direct" | |
} { | |
if "[ $(tput colors) = 256 ]" { | |
set -g default-terminal "tmux-256color" | |
} { | |
set -g default-terminal "tmux" | |
} |
See also: https://danieldk.eu/Posts/2020-08-31-MKL-Zen.html
Compile this:
int mkl_serv_intel_cpu_true() {
return 1;
}
into a shared library: gcc -shared -fPIC -o libfakeintel.so fakeintel.c