Skip to content

Commit

Permalink
examples throwing linker error
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 13, 2023
1 parent 9e71f77 commit 88a8292
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
13 changes: 8 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -558,18 +558,21 @@ hpx_option(
ADVANCED
)

add_compile_options(-march=native)

# simd sort supports only avx-512 registers
if(__AVX512F__)
# if(__AVX512F__)
set(HPX_WITH_SIMD_SORT ON)
if(HPX_WITH_FETCH_SIMD_SORT)
include(HPX_SetupSimdSort)
else()
find_package(SimdSort)
endif()
else()
set(HPX_WITH_SIMD_SORT OFF)
set(HPX_WITH_FETCH_SIMD_SORT OFF)
endif()

# else()
# set(HPX_WITH_SIMD_SORT OFF)
# set(HPX_WITH_FETCH_SIMD_SORT OFF)
# endif()

# debug message to be removed before merge
message(WARNING "HPX_WITH_SIMD_SORT : ${HPX_WITH_SIMD_SORT}")
Expand Down
2 changes: 2 additions & 0 deletions cmake/templates/HPXConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ if("${HPX_WITH_DATAPAR_BACKEND}" STREQUAL "SVE")
endif()
endif()

include("${CMAKE_CURRENT_LIST_DIR}/HPXSimdSortTarget.cmake")

include("${CMAKE_CURRENT_LIST_DIR}/HPXInternalTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/HPXTargets.cmake")

Expand Down
1 change: 0 additions & 1 deletion libs/core/algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ set(algorithms_headers
hpx/parallel/algorithms/detail/sample_sort.hpp
hpx/parallel/algorithms/detail/search.hpp
hpx/parallel/algorithms/detail/set_operation.hpp
hpx/parallel/algorithms/detail/simd_sort.hpp
hpx/parallel/algorithms/detail/spin_sort.hpp
hpx/parallel/algorithms/detail/transfer.hpp
hpx/parallel/algorithms/detail/upper_lower_bound.hpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#pragma once

// #include <avx512-16bit-qsort.hpp>
// #include <avx512-32bit-qsort.hpp>
#include <avx512-64bit-qsort.hpp>

#include <type_traits>

#pragma once

namespace hpx::parallel::util {
// TODO : add support for _Float16
Expand Down

0 comments on commit 88a8292

Please sign in to comment.