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

Add catalyst library #22415

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add catalyst library #22415

wants to merge 1 commit into from

Conversation

jjcasmar
Copy link
Contributor

Specify library name and version: catalyst/2.0.0-rc4

Catalyst is an API specification developed for simulations (and other scientific data producers) to analyze and visualize data in situ.

@conan-center-bot

This comment has been minimized.

@jjcasmar
Copy link
Contributor Author

How do I fix the CMake minimum required version? catalyst requires 3.26, but CI apparently only has 3.15

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

tc.variables["CATALYST_BUILD_REPLAY"] = False
tc.variables["CATALYST_BUILD_TESTING"] = False
tc.variables["CATALYST_BUILD_SHARED_LIBS"] = self.options.shared
tc.variables["CATALYST_USE_MPI"] = self.options.use_mpi
Copy link
Contributor

Choose a reason for hiding this comment

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

You should also probably add a conditional self.requires("openmpi/x.y.z").
The OpenMPI recipe is currently not yet migrated to Conan 2.0, but you can give this version a try: #18980.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If its okay, I will remove the option to use MPI and wait until the openmpi recipe is ported.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would leave the option and add a if self.options.use_mpi: raise ConanException("MPI is not yet supported by the recipe") to def validate(self). Plus a TODO comment mentioning that OpenMPI is not yet Conan 2.0-compatible.

find_package(catalyst REQUIRED CONFIG)

add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} PUBLIC catalyst::catalyst ${CMAKE_DL_LIBS})
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
target_link_libraries(${PROJECT_NAME} PUBLIC catalyst::catalyst ${CMAKE_DL_LIBS})
target_link_libraries(${PROJECT_NAME} PUBLIC catalyst::catalyst)

Add a system_libs dependency instead.

if self.settings.os in ["Linux", "FreeBSD"]:
    self.cpp_info.system_libs.append("dl")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will this work in Windows?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. Windows does not require linking against an additional library for loading of dynamic libraries.

Copy link
Member

Choose a reason for hiding this comment

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

@jjcasmar please take a look at the comment above. I think it is the only thing missing in this PR

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 9 (ee25f380c3dfe6edd819c000b7ec470e3d1165ee):

  • catalyst/2.0.0-rc4:
    All packages built successfully! (All logs)

Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 9 (ee25f380c3dfe6edd819c000b7ec470e3d1165ee):

  • catalyst/2.0.0-rc4:
    All packages built successfully! (All logs)

Copy link
Contributor

Hooks produced the following warnings for commit ee25f38
catalyst/2.0.0-rc4@#87353bc6e5a883c335f9d08958d4d414
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libcatalyst.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/catalyst/libcatalyst-stub.so' links to system library 'm' but it is not in cpp_info.system_libs.

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