Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: BipartiteGraph and Hopcroft-Karp algorithm in C++ #1481

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions CMakeLists.txt
Expand Up @@ -41,10 +41,10 @@ endif()
# Enable C++11 support in all compilers. SymEngine will not compile unless
# the C++11 support is enabled.
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|Intel")
set(CXX11_OPTIONS "-std=c++11")
set(CXX11_OPTIONS "-std=c++17")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "PGI")
# pgcpp
set(CXX11_OPTIONS "--gnu --c++11 -D__GXX_EXPERIMENTAL_CXX0X__")
set(CXX11_OPTIONS "--gnu --c++17 -D__GXX_EXPERIMENTAL_CXX0X__")
endif ()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CXX11_OPTIONS}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${CXX11_OPTIONS}")
Expand Down Expand Up @@ -666,6 +666,8 @@ if (BUILD_BENCHMARKS)
add_subdirectory(benchmarks)
endif()

add_subdirectory(matchpygen)

# At the end we print a nice summary

message("--------------------------------------------------------------------------------")
Expand Down
23 changes: 23 additions & 0 deletions matchpygen/CMakeLists.txt
@@ -0,0 +1,23 @@
project(matchpygen)

include_directories(BEFORE ${symengine_SOURCE_DIR})
include_directories(BEFORE ${symengine_BINARY_DIR})
include_directories(BEFORE ${teuchos_SOURCE_DIR})
include_directories(BEFORE ${teuchos_BINARY_DIR})

# find_package(Boost REQUIRED) # 1.65.1 COMPONENTS coroutine2 context REQUIRED)
#find_package(Boost COMPONENTS system filesystem coroutine context REQUIRED)
#include_directories(${Boost_INCLUDE_DIR})
#link_directories(${Boost_LIBRARY_DIR})

#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lboost_context -lboost_coroutine ")
#set(CMAKE_VERBOSE_MAKEFILE on)

#link_directories(${Boost_LIBRARY_DIRS})
#include_directories(${Boost_INCLUDE_DIR})

#set(BOOST_PARAMS "-I/usr/include/ -lboost_context -lboost_coroutine")
#message(WARNING ${BOOST_PARAMS})

add_executable(test_bipartite test_bipartite.cpp)
target_link_libraries(test_bipartite symengine)
Empty file added matchpygen/bipartite.cpp
Empty file.