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

openmpi: migrate to Conan v2 #18980

Merged
merged 52 commits into from
Sep 5, 2024
Merged

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Jul 31, 2023

In addition to typical migration changes also:

test_package builds and runs, but displaying of help messages currently fails due to OpenMPI not being able to locate its res folder.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@AbrilRBS
Copy link
Member

@valgur any way we can help this one moving along? (Also, could you please set the zlib requirement to the [>=1.2.11 <2] version range? Thanks!)

@valgur
Copy link
Contributor Author

valgur commented Oct 23, 2023

@valgur any way we can help this one moving along? (Also, could you please set the zlib requirement to the [>=1.2.11 <2] version range? Thanks!)

A review of the rdma-core recipe, which is a dependency of this one, would be of great help. I hope the build for that one succeeds now as well. Thanks!

@conan-center-bot

This comment has been minimized.

@valgur valgur marked this pull request as ready for review December 13, 2023 22:59
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

uilianries
uilianries previously approved these changes Sep 2, 2024
Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@valgur
Copy link
Contributor Author

valgur commented Sep 2, 2024

@jwillikers Maybe you can give this one a look as well.

@uilianries uilianries added the blocked Affected by an external issue and waiting until it is solved label Sep 3, 2024
jcar87
jcar87 previously requested changes Sep 3, 2024
recipes/openmpi/all/conanfile.py Outdated Show resolved Hide resolved
@uilianries
Copy link
Member

I'll still don't have the root cause, but so far:

  • It does not depends on Conan 1.x. The build fails for Clang on Linux, using the Docker image conanio/clang13-ubuntu16.04:<conan_version>. It fails for both Conan 1.65.0 and 2.7.0.
  • When hwloc is not listed as requirement, it does not fail.

I'll continue to investigate.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

The current openmpi test package tries to use networking,
and in OS like Mac, the GUI asks about permission to
execute the test package. It's too much for a simple
package validation. It would be better keep a version
check for library linkage validation.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Enable again dynamic library build for Mac. With the simplified
test package, I see no errors locally for Mac M1.

This reverts commit d79c757.
@valgur
Copy link
Contributor Author

valgur commented Sep 4, 2024

Thanks, @uilianries! LGTM.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 35 (35520e79ec92158492af78c3c7c0aba896bf6dae):

  • openmpi/4.1.6:
    All packages built successfully! (All logs)

  • openmpi/4.1.0:
    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 35 (35520e79ec92158492af78c3c7c0aba896bf6dae):

  • openmpi/4.1.6:
    All packages built successfully! (All logs)

  • openmpi/4.1.0:
    All packages built successfully! (All logs)

@uilianries
Copy link
Member

@valgur I applied few changes related to the test package, I replaced the previous code by a simpler one to avoid networking usage. The CI is more restricted, and probably caused the previous error. In my machine, Mac displayed some pop-ups asking for network permission, which is bad for users.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

LGTM

@uilianries uilianries removed the blocked Affected by an external issue and waiting until it is solved label Sep 4, 2024
@uilianries uilianries requested a review from jcar87 September 4, 2024 07:37
@jcar87 jcar87 dismissed their stale review September 5, 2024 08:26

addressed

@conan-center-bot conan-center-bot merged commit 30a5ab7 into conan-io:master Sep 5, 2024
16 checks passed
OMGtechy pushed a commit to OMGtechy/conan-center-index that referenced this pull request Dec 31, 2024
* openmpi: migrate to Conan v2

* openmpi: bump deps

* openmpi: do not print created env vars

* openmpi: add v4.1.6

* openmpi: improve options coverage

* openmpi: fix path env vars

* openmpi: fix a PMIX error

* openmpi: add MPI::MPI_CXX only if `cxx` is enabled

* openmpi: fix static build issues, add external_hwloc option

* openmpi: fix libltdl issue, replace AutotoolsDeps with PkgConfigDeps

* openmpi: disable buildign of docs

* openmpi: drop libltdl dependency

* openmpi: external libevent does not really work

* openmpi: model components correctly

* openmpi: fix pkg-config names

* openmpi: disable armv8 for v4.1.0

* openmpi: bump libnl

* openmpi: enable with_verbs

* openmpi: use REQUIRED CONFIG in test_package for legacy generators

* bump rdma-core

* openmpi: fix libibverbs.so not being found

* openmpi: drop test_v1_package

* openmpi: fix apple-clang cross-compilation

* openmpi: run autoreconf

* openmpi: drop v4.1.0

* openmpi: Revert "run autoreconf"

This reverts commit 6f678da.

* openmpi: disable Clang on Conan v1

* openmpi: restore v4.1.0

This reverts commit 0461166.

* openmpi: add --allow-run-as-root to test_package

Co-authored-by: Maksim Petukhov <6967052+maksim-petukhov@users.noreply.github.com>

* openmpi: adjust deps

* openmpi: enable cxx by default

* openmpi: drop external_hwloc option

* openmpi: fix an invalid require name

* openmpi: add missing requires

* openmpi: add VirtualRunEnv to fix ./configure

* openmpi: workaround for macOS build failure

* openmpi: re-enable Clang/AppleClang for Conan v1

* openmpi: fix_apple_shared_install_name()

* openmpi: apply review suggestions

* openmpi: drop --with-libevent=internal

* openmpi: drop --allow-run-as-root in test_package

* openmpi: add a comment for pkg_config_name

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* openmpi: get_safe("with_verbs")

* openmpi: Revert "re-enable Clang/AppleClang for Conan v1"

This reverts commit 40d407e.

* openmpi: VirtualRunEnv is required to find libhwloc.so during ./configure

* openmpi: macOS armv8 fails when shared=True

* Simplify test package to avoid networking usage

The current openmpi test package tries to use networking,
and in OS like Mac, the GUI asks about permission to
execute the test package. It's too much for a simple
package validation. It would be better keep a version
check for library linkage validation.

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Revert "openmpi: macOS armv8 fails when shared=True"

Enable again dynamic library build for Mac. With the simplified
test package, I see no errors locally for Mac M1.

This reverts commit d79c757.

---------

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Maksim Petukhov <6967052+maksim-petukhov@users.noreply.github.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
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.

7 participants