Skip to content

Commit

Permalink
changed native arch to avx512f
Browse files Browse the repository at this point in the history
Signed-off-by: Hari Hara Naveen S <[email protected]>
  • Loading branch information
Johan511 committed Sep 16, 2023
1 parent bad24e7 commit afcb2cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -561,16 +561,14 @@ hpx_option(

hpx_check_for_avx512f(DEFINITIONS HPX_HAVE_AVX512F)

if(NOT (HPX_WITH_AVX512F))
if(NOT HPX_WITH_AVX512F)
set(HPX_WITH_SIMD_SORT Off)
endif()


if(HPX_WITH_SIMD_SORT)
include(HPX_SetupSimdSort)
hpx_add_config_define(HPX_HAVE_SIMD_SORT)
add_compile_options(-mavx512f)
MESSAGE("HPX_WITH_SIMD_SORT : ${HPX_WITH_SIMD_SORT}")
endif()

# ##############################################################################
Expand Down
2 changes: 1 addition & 1 deletion cmake/HPX_AddConfigTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,6 @@ function(hpx_check_for_avx512f)
add_hpx_config_test(
HPX_WITH_AVX512F
SOURCE cmake/tests/avx512f.cpp
FILE ${ARGN} CXXFLAGS -mavx512f
FILE ${ARGN} CXXFLAGS -mavx512f
)
endfunction()
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,12 @@ namespace hpx::parallel::util {
return avx512_qsort(arr, arrsize);
}
} // namespace hpx::parallel::util
#else
namespace hpx::parallel::util {
template <typename T>
void simd_quicksort(T* arr, int64_t arrsize)
{
static_assert(false);
}
} // namespace hpx::parallel::util
#endif

0 comments on commit afcb2cd

Please sign in to comment.