forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request conda-forge#27988 from j34ni/Add_libfabric
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |