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

Changes for Blast #92

Merged
merged 14 commits into from
Oct 4, 2021
Merged

Changes for Blast #92

merged 14 commits into from
Oct 4, 2021

Conversation

brbass
Copy link
Collaborator

@brbass brbass commented Sep 29, 2021

The largest change in this is to include the standard NodeLists in the connectivity calculation. There are several other changes here that support using a DataBase with different NodeLists than the Registrar, that add missing headers, and that make conduit build using static libraries similarly to axom.

Copy link
Collaborator

@mdavis36 mdavis36 left a comment

Choose a reason for hiding this comment

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

I like this, some of the fixes here are things I've seen recently too, we will need to wait on merging this until the LC TPL's are updated due to the change in conduit.

Comment on lines +6 to +10
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(${lib_name}_libs libqhullstatic_d.a)
else()
set(${lib_name}_libs libqhullstatic.a)
endif()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I can't find anything in the README for qhull that mentions libqhullstatic_d.a, I only see libqhullstatic_r.a, but I'm assuming it exists when you need to build this in debug. The TPL scripts currently build all of our TPLs as release by default. Do you find you need to build local debug TPLs like this often?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In Blast when we build debug, all the packages are built in debug, including qhull. When debugging, it makes things much easier, since you can dive into the third-party libraries. I can't remember where I say libqhullstatic_d, but if I run into it again I'll send you a link.

Comment on lines +9 to +11
libconduit.a
libconduit_blueprint.a
libconduit_relay.a
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this fix over changing the library rpaths. We will need to rebuild the LC TPL directories first before merging this however.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is also how Blast installs the libraries and is consistent with what axom does in Spheral. I'm not sure why the defaults are different between the two packages.

Comment on lines +1037 to +1040
// typedef NodeListRegistrar<Dimension> Registrar;
// Registrar& registrar = Registrar::instance();
// CONTRACT_VAR(registrar);
// REQUIRE((int)numNodesRemoved.size() == registrar.numNodeLists());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason to keep this around?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, no reason to keep it around. I can remove it.

Comment on lines +100 to +101
// auto& registrar = NodeListRegistrar<Dimension>::instance();
// REQUIRE((int)numNodesRemoved.size() == registrar.numNodeLists());
Copy link
Collaborator

Choose a reason for hiding this comment

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

I noticed when building in debug w/ the C++ libs as static that this would fail, the fix for registrar is addressed in an upcoming PR but I'm wondering if you saw this fail too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It built fine for me in debug mode. Maybe it is a case where the library name changes or something as is the case for qhull?

Copy link
Collaborator

@jmikeowen jmikeowen left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jmikeowen jmikeowen merged commit 2c63b9d into develop Oct 4, 2021
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.

4 participants