Skip to content

Commit

Permalink
Various config fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wavefunction91 committed Oct 30, 2023
1 parent 3d21260 commit e068dc5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/macis/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

namespace macis {

namespace KokkosEx =
MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE;
namespace KokkosEx = Kokkos;
// MDSPAN_IMPL_STANDARD_NAMESPACE::MDSPAN_IMPL_PROPOSED_NAMESPACE;

template <typename T, size_t rank>
using col_major_span =
Expand Down
4 changes: 2 additions & 2 deletions src/sparsexx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ if( SPARSEXX_ENABLE_RANGES_V3 )
add_subdirectory(${range_v3_download_SOURCE_DIR} ${range_v3_download_BINARY_DIR})
add_library( ranges INTERFACE IMPORTED )
target_link_libraries( ranges INTERFACE range-v3 )
target_compile_definitions( ranges INTERFACE "SPARSEXX_ENABLE_RANGES_V3=1" )
#target_compile_definitions( ranges INTERFACE "SPARSEXX_ENABLE_RANGES_V3=1" )
endif()
list(APPEND SPARSEXX_EXTERNAL_LIBRARIES ranges)
endif()
Expand Down Expand Up @@ -128,7 +128,7 @@ endif()
if( TARGET OpenMP::OpenMP_CXX )
target_link_libraries( sparsexx PUBLIC OpenMP::OpenMP_CXX )
endif()
target_link_libraries ( sparsexx PRIVATE ${SPARSEXX_EXTERNAL_LIBRARIES} )
target_link_libraries ( sparsexx PUBLIC ${SPARSEXX_EXTERNAL_LIBRARIES} )
target_include_directories( sparsexx PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
Expand Down
9 changes: 5 additions & 4 deletions src/sparsexx/include/sparsexx/matrix_types/coo_matrix_ops.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

#include <iostream>

#include <sparsexx/sparsexx_config.hpp>
#include "coo_matrix.hpp"

#if SPARSEXX_ENABLE_RANGES_V3
#ifdef SPARSEXX_ENABLE_RANGES_V3
#include <range/v3/all.hpp>
#endif
#include <algorithm>
Expand All @@ -22,7 +23,7 @@ namespace sparsexx {

template <typename T, typename index_t, typename Alloc>
void coo_matrix<T, index_t, Alloc>::sort_by_row_index() {
#if SPARSEXX_ENABLE_RANGES_V3
#ifdef SPARSEXX_ENABLE_RANGES_V3
auto coo_zip = ranges::views::zip(rowind_, colind_, nzval_);

// Sort lex by row index
Expand Down Expand Up @@ -73,7 +74,7 @@ void coo_matrix<T, index_t, Alloc>::sort_by_row_index() {
template <typename T, typename index_t, typename Alloc>
void coo_matrix<T, index_t, Alloc>::expand_from_triangle() {

#if SPARSEXX_ENABLE_RANGES_V3
#ifdef SPARSEXX_ENABLE_RANGES_V3

auto idx_zip = ranges::views::zip(rowind_, colind_);

Expand Down Expand Up @@ -131,7 +132,7 @@ void coo_matrix<T, index_t, Alloc>::expand_from_triangle() {

template <typename T, typename index_t, typename Alloc>
void coo_matrix<T, index_t, Alloc>::sort_by_col_index() {
#if SPARSEXX_ENABLE_RANGES_V3
#ifdef SPARSEXX_ENABLE_RANGES_V3
auto coo_zip = ranges::views::zip(rowind_, colind_, nzval_);

// Sort lex by row index
Expand Down

0 comments on commit e068dc5

Please sign in to comment.