Skip to content

Commit

Permalink
Merge pull request conda-forge#27988 from j34ni/Add_libfabric
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy authored Nov 16, 2024
2 parents 5e9cd77 + 6eeb9c1 commit ad0d8e0
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
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

0 comments on commit ad0d8e0

Please sign in to comment.