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 libfabric #5914

Merged
merged 8 commits into from
Jun 29, 2021
Merged

add libfabric #5914

merged 8 commits into from
Jun 29, 2021

Conversation

dvirtz
Copy link
Contributor

@dvirtz dvirtz commented Jun 15, 2021

Specify library name and version: libfabric/1.12.1 and libfabric/1.9.0amzn1.1

This is a dependency of AWS CDI SDK which I plan to add next.


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Comment on lines 5 to 7
"1.9.0amzn1.1":
url: https://github.com/aws/libfabric/releases/download/v1.9.0amzn1.1/libfabric-1.9.0amzn1.1.tar.gz
sha256: 4e3912c379ca351f5039b01cfd168750030d919f1ce3f46531b5396b6a4266e5
Copy link
Contributor

Choose a reason for hiding this comment

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

For forks, create a separate recipe named aws-libfabric

Copy link
Contributor Author

Choose a reason for hiding this comment

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

does it require a separate PR?

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

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.

@dvirtz Thank you for your contribution! Please, take a look on my review

recipes/libfabric/all/conanfile.py Outdated Show resolved Hide resolved
recipes/libfabric/all/conanfile.py Outdated Show resolved Hide resolved
if self.settings.compiler == "Visual Studio":
raise ConanInvalidConfiguration("The libfabric package cannot be built on Visual Studio.")
for p in self._providers:
if self.options.get_safe(p) not in ["auto", "yes", "no", "dl"] and not os.path.isdir(str(self.options.get_safe(p))):
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if self.options.get_safe(p) not in ["auto", "yes", "no", "dl"] and not os.path.isdir(str(self.options.get_safe(p))):
if self.options.get_safe(p) not in ["auto", "yes", "no", "dl"] and not os.path.isdir(str(self.options.get_safe(p))):

I would prefer listing only what's allowed instead of ANY, it seems clear what is valid here, for instance ["auto", True, False, "dl"]

settings = "os", "arch", "compiler", "build_type"
_providers = ['gni', 'psm', 'psm2', 'psm3', 'rxm', 'sockets', 'tcp', 'udp', 'usnic', 'verbs', 'bgq']
options = {
**{ p: "ANY" for p in _providers },
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
**{ p: "ANY" for p in _providers },
**{ p: [True, False, "auto", "dl"] for p in _providers },

read comment below.
Also, if auto has same effect as True or False, it should have the same package id! For example:

Copy link
Contributor Author

@dvirtz dvirtz Jun 17, 2021

Choose a reason for hiding this comment

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

I used ANY because it can also be a directory path

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't know if auto will resolve to True of False before running configuration

recipes/libfabric/all/conanfile.py Show resolved Hide resolved
recipes/libfabric/all/conanfile.py Outdated Show resolved Hide resolved
dvirtz and others added 2 commits June 17, 2021 08:37
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
@conan-center-bot

This comment has been minimized.

@jgsogo
Copy link
Contributor

jgsogo commented Jun 18, 2021

Hi, probably the recipe is almost ready, but CLA is not reporting status... I will close and open the PR to see if it gets updated.

@jgsogo jgsogo closed this Jun 18, 2021
@jgsogo jgsogo reopened this Jun 18, 2021
@conan-center-bot

This comment has been minimized.

Copy link
Contributor

@prince-chrismc prince-chrismc left a comment

Choose a reason for hiding this comment

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

One small comment

raise ConanInvalidConfiguration("Value of with_libnl must be an existing directory")

def source(self):
tools.get(**self.conan_data["sources"][self.version])
Copy link
Contributor

Choose a reason for hiding this comment

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

Please replace these 3 lines with our strip_root utility

@dvirtz
Copy link
Contributor Author

dvirtz commented Jun 23, 2021

build failed but no logs

@prince-chrismc
Copy link
Contributor

You'll need to retrigger CI, close the pr wait 10s and then re-open it 🔁

@dvirtz dvirtz closed this Jun 23, 2021
@dvirtz dvirtz reopened this Jun 23, 2021
@conan-center-bot

This comment has been minimized.

@dvirtz dvirtz closed this Jun 28, 2021
@dvirtz dvirtz reopened this Jun 28, 2021
@conan-center-bot
Copy link
Collaborator

All green in build 11 (9344d5a8478b895b7bdcd35456531f99bd65433b):

  • libfabric/1.12.1@:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit 02d64a7 into conan-io:master Jun 29, 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.

7 participants