-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathmeta.yaml
103 lines (93 loc) · 2.97 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{% set version = "0.3.14" %}
{% set name = "jaxlib" %}
{% set number = 3 %}
{% if cuda_compiler_version != "None" %}
{% set number = number + 200 %}
{% endif %}
package:
name: jaxlib
version: {{ version }}
source:
# only pull sources after upstream PyPI release...
url: https://github.com/google/jax/archive/{{ name }}-v{{ version }}.tar.gz
sha256: 6d6b660cb915b3fbf151dc67a471623e5f83b6a66493b9e438273d290a43b40f
patches:
- 0001-Don-t-add-dashes-to-version.patch
- 0001-Patch-pocketfft-for-C-17-osx-64.patch # [osx and x86_64]
- 0002-bazelrc-112.diff # [cuda_compiler_version == "11.2"]
build:
number: {{ number }}
skip: true # [win or py<37]
skip: true # [cuda_compiler_version == "10.2"]
skip: true # [cuda_compiler_version == "11.0"]
skip: true # [cuda_compiler_version == "11.1"]
skip: true # [abseil_cpp != '20211102.0']
string: cuda{{ cuda_compiler_version | replace('.', '') }}py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [cuda_compiler_version != "None"]
string: cpu_py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }} # [cuda_compiler_version == "None"]
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} # [cuda_compiler_version != "None"]
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy # [build_platform != target_platform]
- scipy # [build_platform != target_platform]
- unzip
# Keep bazel listed twice here to help the migrators track dependencies
- bazel
- bazel >=5.1.1
- bazel-toolchain
# need protoc
- libprotobuf
# needs protoc-gen-grpc
- grpc-cpp
# needs flatc
- flatbuffers <2.0.6
host:
- cudnn # [cuda_compiler_version != "None"]
- nccl # [cuda_compiler_version != "None"]
- python
- pip
- numpy
- scipy
- wheel
# Reactivate once we have switched the global abseil pin to a new version
# - abseil-cpp
- flatbuffers <2.0.6
- grpc-cpp
- openssl
- zlib
run:
- python
- absl-py
- {{ pin_compatible('numpy') }}
- scipy >=1.5
- python-flatbuffers >=1.12,<3.0
- __cuda # [cuda_compiler_version != "None"]
run_constrained:
- jax >={{ version }}
- __osx >={{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} # [osx]
test:
files:
- test_jaxlib.py
requires:
- pip
commands:
- pip check
- python test_jaxlib.py
imports:
- jaxlib
# Only this import actually triggers the load of XLA
- jaxlib.xla_client
about:
home: http://github.com/google/jax
license: Apache-2.0
license_file: LICENSE
summary: 'Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more'
dev_url: http://github.com/google/jax
extra:
recipe-maintainers:
- ericmjl
- xhochy
- ngam