Skip to content

Commit

Permalink
fix(ricepp): only build cpu selector if we need to
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Feb 11, 2024
1 parent 21fc60f commit f3c85c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ricepp/ricepp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace {
detail::cpu_variant get_cpu_variant_init() {
#ifndef _WIN32
#if defined(__has_builtin)
#if __has_builtin(__builtin_cpu_supports)
#if __has_builtin(__builtin_cpu_supports) && (defined(RICEPP_CPU_BMI2) || defined(RICEPP_CPU_BMI2_AVX512))
__builtin_cpu_init();

bool const has_avx512vl = __builtin_cpu_supports("avx512vl");
Expand Down

0 comments on commit f3c85c8

Please sign in to comment.