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 recipe #27988

Merged
merged 28 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fb4a000
Add libfabric feedstock recipe
j34ni Oct 24, 2024
48ea305
Fixed license
j34ni Oct 24, 2024
c1a1cb8
Added ./autogen.sh
j34ni Oct 24, 2024
44f254e
Removes requirement for cxx and added LICENSE
j34ni Oct 24, 2024
a5225c3
Remove unnecessary files causing linter issues
j34ni Oct 24, 2024
b694781
Added fi_info --list test
j34ni Oct 24, 2024
68a8d42
Added fi_pingpong test
j34ni Oct 24, 2024
cc64311
Using script for fi_pingpong test
j34ni Oct 24, 2024
63d5a93
Added make check
j34ni Oct 24, 2024
dafbb2b
Fixed SPDX identifier
j34ni Oct 24, 2024
19f2eca
Update recipes/libfabric/meta.yaml
j34ni Oct 25, 2024
0e9ed2c
Update recipes/libfabric/meta.yaml
j34ni Oct 25, 2024
7d8f803
Update recipes/libfabric/build.sh
j34ni Oct 25, 2024
ba0d64e
Update recipes/libfabric/meta.yaml
j34ni Oct 25, 2024
e10909c
Update recipes/libfabric/meta.yaml
j34ni Oct 25, 2024
7252a75
Update recipes/libfabric/meta.yaml
j34ni Oct 25, 2024
f3fb0cd
Moved libnl and numactl to host dependencies
j34ni Oct 25, 2024
c2456bd
Removed license file
j34ni Oct 25, 2024
d275923
Building for win and osx (without numa and libnl)
j34ni Oct 26, 2024
faac069
Fixed typo
j34ni Oct 26, 2024
2ff0a6f
Fixed another typo
j34ni Oct 26, 2024
a97c1ad
Skip make check for not linux and add test
j34ni Oct 26, 2024
49b5268
Skip test for win
j34ni Oct 26, 2024
68040f2
Added libuuid and rdma-core
j34ni Oct 27, 2024
64fad45
Moved libuuid to the build section
j34ni Oct 27, 2024
a63db5b
Removed libuuid entirely
j34ni Oct 27, 2024
dd1225c
Removed libnuma
j34ni Oct 27, 2024
6eeb9c1
Apply suggestions from code review
minrk Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions recipes/libfabric/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

set -ex

export CC=$(basename "$CC")

build_with_libnl=""
if [[ "$target_platform" == linux-* ]]; then
echo "Build with libnl support"
build_with_libnl=" --with-libnl=$PREFIX "
fi

./configure --prefix=$PREFIX \
$build_with_libnl \
--disable-static \
--disable-psm3 \
--disable-opx

make -j"${CPU_COUNT}"

if [[ "$target_platform" == linux-* ]]; then
make check
fi

make install

46 changes: 46 additions & 0 deletions recipes/libfabric/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{% set version = "1.22.0" %}
{% set build = 0 %}

package:
name: libfabric
version: {{ version }}

source:
url: https://github.com/ofiwg/libfabric/releases/download/v{{ version }}/libfabric-{{ version }}.tar.bz2
sha256: 485e6cafa66c9e4f6aa688d2c9526e274c47fda3a783cf1dd8f7c69a07e2d5fe

build:
number: {{ build }}
skip: true # [win]

run_exports:
- {{ pin_subpackage('libfabric', max_pin='x.x') }}

requirements:
build:
- {{ compiler('c') }}
- {{ stdlib("c") }}
- libtool # [unix]
- make # [unix]
- pkg-config
host:
- libnl # [linux]
- rdma-core # [linux]
run:

test:
commands:
- fi_info --version
- fi_info --list

about:
home: http://libfabric.org/
license: BSD-2-Clause OR GPL-2.0-only
license_family: BSD
license_file: COPYING
summary: Libfabric is also known as Open Fabrics Interfaces (OFI).

extra:
recipe-maintainers:
- j34ni
- minrk