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

implement ArcSort and refactor IsConnect with ConnectCore #19

Merged
merged 2 commits into from
Apr 29, 2020

Conversation

qindazhu
Copy link
Collaborator

No description provided.

@qindazhu
Copy link
Collaborator Author

mm.. guys, can you kindly help to review this?

@csukuangfj
Copy link
Collaborator

I will review this to-night.

@danpovey
Copy link
Collaborator

danpovey commented Apr 29, 2020 via email

k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
k2/csrc/fsa_algo.cc Outdated Show resolved Hide resolved
@csukuangfj
Copy link
Collaborator

+2

@csukuangfj csukuangfj merged commit 20a7f80 into k2-fsa:master Apr 29, 2020
@qindazhu qindazhu deleted the haowen-fsa-algo branch April 29, 2020 12:05
@qindazhu
Copy link
Collaborator Author

Thanks!

@@ -1,6 +1,7 @@
add_library(properties properties.cc)
target_include_directories(properties PUBLIC ${CMAKE_SOURCE_DIR})
target_compile_features(properties PUBLIC cxx_std_11)
target_link_libraries(properties PUBLIC fsa_algo)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying to add

target_link_libraries(fsa_algo PUBLIC properties)

since I want to use IsConnected() in TopSort;
but this results in circular dependencies:

CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
  "properties" of type SHARED_LIBRARY
    depends on "fsa_algo" (weak)
  "fsa_algo" of type SHARED_LIBRARY
    depends on "properties" (weak)
At least one of these targets is not a STATIC_LIBRARY.  Cyclic dependencies are allowed only among static libraries.

Should we remove all add_library and write a single add_library like the following

add_library(fsa
  fsa_equivalent.cc
  fsa_util.cc
  properties.cc
  ....
)

Copy link
Collaborator Author

@qindazhu qindazhu Apr 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with this (maybe except fsa_render?). Finally I guess we will have two .so files for common FSA operations, one for CPU and another for GPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants