mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 11:11:47 +02:00
Add an env var to turn off use of SIMD instructions
This commit is contained in:
@@ -230,3 +230,8 @@ Variables that kitty sets when running child programs
|
|||||||
|
|
||||||
Set to ``1`` when kitty is running a shell because of the ``--hold`` flag. Can
|
Set to ``1`` when kitty is running a shell because of the ``--hold`` flag. Can
|
||||||
be used to specialize shell behavior in the shell rc files as desired.
|
be used to specialize shell behavior in the shell rc files as desired.
|
||||||
|
|
||||||
|
.. envvar:: KITTY_NO_SIMD
|
||||||
|
|
||||||
|
Set it to any value to prevent kitty from using SIMD CPU vector
|
||||||
|
instructions.
|
||||||
|
|||||||
@@ -143,6 +143,9 @@ init_simd(void *x) {
|
|||||||
do_check();
|
do_check();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
if (getenv("KITTY_NO_SIMD")) {
|
||||||
|
has_avx2 = false; has_sse4_2 = false;
|
||||||
|
}
|
||||||
|
|
||||||
#undef do_check
|
#undef do_check
|
||||||
if (has_avx2) {
|
if (has_avx2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user