Closed leiless closed 2 years ago
You could modify the multi-binary dispatcher scripts to not test for it or run other versions instead. For example, remove the blocks of ~6 instructions labeled.
include/multibinary.asm: ;; Test for AVX2
But I don't suggest. Note that isa-l_crypto sticks to "light" AVX2 instructions.
Note that isa-l_crypto sticks to "light" AVX2 instructions.
Thanks! And what does this mean?
You could modify the multi-binary dispatcher scripts to not test for it or run other versions instead. For example, remove the blocks of ~6 instructions labeled.
include/multibinary.asm:
;; Test for AVX2
But I don't suggest. Note that isa-l_crypto sticks to "light" AVX2 instructions.
diff --git a/include/reg_sizes.asm b/include/reg_sizes.asm
index 717dd05..f1fbcae 100644
--- a/include/reg_sizes.asm
+++ b/include/reg_sizes.asm
@@ -44,9 +44,9 @@
%define FLAG_CPUID1_ECX_AESNI (1<<25)
%define FLAG_CPUID1_ECX_OSXSAVE (1<<27)
%define FLAG_CPUID1_ECX_AVX (1<<28)
-%define FLAG_CPUID1_EBX_AVX2 (1<<5)
+%define FLAG_CPUID1_EBX_AVX2 (0)
-%define FLAG_CPUID7_EBX_AVX2 (1<<5)
+%define FLAG_CPUID7_EBX_AVX2 (0)
%define FLAG_CPUID7_EBX_AVX512F (1<<16)
%define FLAG_CPUID7_EBX_AVX512DQ (1<<17)
%define FLAG_CPUID7_EBX_AVX512IFMA (1<<21)
FYI, This seems also works for me.
Hi, all. My CPU is i5-9400F (Intel® SSE4.1, Intel® SSE4.2, Intel® AVX2), which supports AVX and AVX2.
But I wanna build
isa-l_crypto
to use AVX only, not to use AVX2. How can I do that?https://www.intel.com/content/www/us/en/products/sku/190883/intel-core-i59400f-processor-9m-cache-up-to-4-10-ghz/specifications.html