-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add libfabric #5914
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
recipes/libfabric/all/conandata.yml
Outdated
"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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this 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
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))): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**{ 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:
def _stub_only(self): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment
recipes/libfabric/all/conanfile.py
Outdated
raise ConanInvalidConfiguration("Value of with_libnl must be an existing directory") | ||
|
||
def source(self): | ||
tools.get(**self.conan_data["sources"][self.version]) |
There was a problem hiding this comment.
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
build failed but no logs |
You'll need to retrigger CI, close the pr wait 10s and then re-open it 🔁 |
This comment has been minimized.
This comment has been minimized.
All green in build 11 (
|
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.
conan-center hook activated.