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

allow users to use upstream metis, instead of vendored metis #309

Closed
wants to merge 1 commit into from
Closed

allow users to use upstream metis, instead of vendored metis #309

wants to merge 1 commit into from

Conversation

acxz
Copy link
Contributor

@acxz acxz commented May 12, 2020

Resolves #220 by allowing the user to use the system metis so as to prevent conflicts from GTSAM's metis and other libraries using the system metis.

Also partially addresses #292

Note: This PR is based on a patch of upstream METIS that has yet to be merged and released in a new METIS version (KarypisLab/METIS#9). Since I went ahead and did this work, I thought I would at least make a PR so that others can see it. When upstream METIS releases a new version, we can then properly merge this in.


This change is Reviewable

@acxz acxz marked this pull request as draft May 12, 2020 12:31
Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

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

1 comment, one question, I'll re-review later

# this will be added to GTSAM_INCLUDE_DIR by gtsam_extra.cmake.in
set(GTSAM_METIS_INCLUDE_FOR_INSTALL "include/gtsam/3rdparty/metis/")

# The actual include directory (for BUILD cmake target interface):
Copy link
Member

Choose a reason for hiding this comment

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

delete?

@@ -89,7 +89,11 @@ list(APPEND gtsam_srcs "${PROJECT_BINARY_DIR}/config.h" "${PROJECT_BINARY_DIR}/d
install(FILES "${PROJECT_BINARY_DIR}/config.h" "${PROJECT_BINARY_DIR}/dllexport.h" DESTINATION include/gtsam)

if(GTSAM_SUPPORT_NESTED_DISSECTION)
list(APPEND GTSAM_ADDITIONAL_LIBRARIES metis)
if(GTSAM_USE_SYSTEM_METIS)
list(APPEND GTSAM_ADDITIONAL_LIBRARIES ${METIS_LIBRARIES})
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm. Can we not make it so that METIS_LIBRARIES points to internal if we use the internal version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think I can do that.

@acxz
Copy link
Contributor Author

acxz commented Jul 9, 2020

Hey @varunagrawal I'm gonna have to close this PR indefinitely.
See: #292 (comment) on the status of this.

@acxz acxz closed this Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New proposed feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TLS definition mismatch
3 participants