Skip to content

Commit

Permalink
Rename multiarch_avx512 to multiarch_avx512_vbmi2
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Apr 4, 2024
1 parent e224e6f commit c2dd191
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ endif()
# Check if compiler supports x64 multiarch ###########################

if(WITH_MULTIARCH)
include("${PROJECT_SOURCE_DIR}/cmake/multiarch_avx512.cmake")
if(multiarch_avx512)
include("${PROJECT_SOURCE_DIR}/cmake/multiarch_avx512_vbmi2.cmake")
if(multiarch_avx512_vbmi2)
set(MULTIARCH_AVX512 "MULTIARCH_AVX512")
endif()
endif()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ check_cxx_source_compiles("
public:
__attribute__ ((target (\"default\")))
void fillNextPrimes(uint64_t* primes64);
__attribute__ ((target (\"avx512f,avx512vbmi,avx512vbmi2,popcnt\")))
__attribute__ ((target (\"avx512f,avx512vbmi,avx512vbmi2\")))
void fillNextPrimes(uint64_t* primes64);
};
__attribute__ ((target (\"default\")))
void PrimeGenerator::fillNextPrimes(uint64_t* primes64)
{
primes64[0] = 2;
}
__attribute__ ((target (\"avx512f,avx512vbmi,avx512vbmi2,popcnt\")))
__attribute__ ((target (\"avx512f,avx512vbmi,avx512vbmi2\")))
void PrimeGenerator::fillNextPrimes(uint64_t* primes64)
{
__m512i bytes_0_to_7 = _mm512_setr_epi64(0, 1, 2, 3, 4, 5, 6, 7);
Expand All @@ -36,4 +36,4 @@ check_cxx_source_compiles("
p.fillNextPrimes(primes);
return 0;
}
" multiarch_avx512)
" multiarch_avx512_vbmi2)

0 comments on commit c2dd191

Please sign in to comment.