-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
meta.yaml
80 lines (71 loc) · 3.3 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{% set name = "libhwloc" %}
{% set pname = "hwloc" %}
{% set version = "2.11.2" %}
{% set sha256 = "866ac8ef07b350a6a2ba0c6826c37d78e8994dcbcd443bdd2b436350de19d540" %}
{% set build = 0 %}
{% if cuda_compiler_version == "None" and ROCM_COMPILATION == "disabled" %}
{% set build = build + 1000 %}
{% endif %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://www.open-mpi.org/software/hwloc/v{{ '.'.join(version.split('.')[:2]) }}/downloads/{{ pname }}-{{ version }}.tar.gz
sha256: {{ sha256 }}
build:
number: {{ build }}
skip: true # [win and vc<14]
skip: true # [cuda_compiler_version != "None" and win]
skip: true # [cuda_compiler_version != "None" and ROCM_COMPILATION == "enabled"]
skip: true # [not linux64 and ROCM_COMPILATION == "enabled"]
string: cuda{{ cuda_compiler_version | replace('.', '') }}_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [cuda_compiler_version != "None"]
string: rocm_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [ROCM_COMPILATION == "enabled"]
string: default_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [cuda_compiler_version == "None" and ROCM_COMPILATION == "disabled"]
run_exports:
- {{ pin_subpackage(name, max_pin='x.x.x') }}
# weigh down gpu implementation and give nocuda preference
track_features:
- cudatoolkit # [cuda_compiler_version != "None"]
- rocm # [ROCM_COMPILATION == "enabled"]
requirements:
build:
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
- {{ compiler('cuda') }} # [cuda_compiler_version != "None"]
- pkg-config # [unix]
- autotools_clang_conda # [win]
# Workaround for https://github.com/conda-forge/libhwloc-feedstock/pull/69#issuecomment-1739406306
- clang 16.* # [win]
- make # [unix]
- automake # [unix]
- libtool # [unix]
- autoconf # [unix]
host:
- libxml2
- pthreads-win32 # [win]
- rocm-smi # [linux and cuda_compiler_version == "None" and ROCM_COMPILATION == "enabled"]
run:
- libxml2
- pthreads-win32 # [win]
- __cuda # [cuda_compiler_version != "None"]
- rocm-smi # [linux and cuda_compiler_version == "None" and ROCM_COMPILATION == "enabled"]
test:
commands:
- hwloc-ls # [cuda_compiler_version == "None"]
- test -f ${PREFIX}/lib/libhwloc${SHLIB_EXT} # [unix]
- if not exist %LIBRARY_LIB%\hwloc.lib exit 1 # [win]
about:
home: https://www.open-mpi.org/projects/hwloc/
license: BSD-3-Clause
license_file: COPYING
summary: Portable Hardware Locality (hwloc)
description: |
This feedstock builds the hwloc library in the `libhwloc` conda package. Different variants of the package are built:
* `default` in the build string: Without CUDA or ROCM support, installed by default. Install specifically this version with `conda install libhwloc=*=*default*`.
* `cuda` in the build string: With CUDA support. Install specifically this version with `conda install libhwloc=*=*cuda*`
* `rocm` in the build string: With ROCM support. Install specifically this version with `conda install libhwloc=*=*rocm*`
extra:
recipe-maintainers:
- jan-janssen
- inducer
- isuruf