478 Commits

Author SHA1 Message Date
Cloud Han
be1705306c fix bazel auto download 2021-07-31 19:13:16 +08:00
Cloud Han
d4349a42b5 workaround weird issue due to non-standard cuda path 2021-07-30 19:25:33 +08:00
Cloud Han
86e37d996a some fs support now can be disabled without compile error 2021-07-30 19:23:18 +08:00
Peter Hawkins
6e9169d100 Drop support for NumPy 1.17. 2021-07-29 09:18:01 -04:00
Peter Hawkins
6c08702489 Add support for ppc64le cross-compilation on Linux.
Use Bazel 4.1.0 unconditionally on all platforms.
2021-07-23 10:39:02 -04:00
Cloud Han
2d321c26e6 Use TF_CUDA_PATHS
CUDA_TOOLKIT_PATH and CUDNN_INSTALL_PATH are deprecated, see TF 2.0
release notes for more information
2021-07-18 22:55:34 +08:00
Cloud Han
4fa79ce1cb fix machine tag, on windows platforms.machine() returns AMD64 instread of x64_64 2021-07-18 22:55:02 +08:00
Peter Hawkins
3ddcec27f2 Update minimum jaxlib version to 0.1.69. 2021-07-15 17:00:13 -04:00
jax authors
6aa20d8f8f Merge pull request #7294 from hawkinsp:py36
PiperOrigin-RevId: 384994957
2021-07-15 13:19:23 -07:00
Peter Hawkins
94446ff757 Drop Python 3.6 support.
Per the deprecation policy (https://jax.readthedocs.io/en/latest/deprecation.html),
Python 3.6 support has been due for removal since June 23, 2020.
2021-07-15 14:20:29 -04:00
Peter Hawkins
f5c61a892a Add support for cross-compiling jaxlib for Mac ARM. 2021-07-15 10:37:53 -04:00
Peter Hawkins
7d2aec105f Add an option to disable NCCL. 2021-07-13 09:10:29 -04:00
jax authors
10569871b7 Merge pull request #7260 from skye:release_indexes
PiperOrigin-RevId: 384341784
2021-07-12 16:27:47 -07:00
Skye Wanderman-Milne
1a650d2e50 Update generate_release_index[es].py to also produce libtpu_releases.html.
Previously, the libtpu-nightly wheels were included in the same index
file as the jaxlib wheels (jax_releases.html). This caused issues
because it would cause `pip install jax[tpu] -f jaxlib_releases.html`
to install a cuda jaxlib, instead of the regular CPU/TPU jaxlib from
pypi.

Instead, we create a separate index file for the libtpu-nightly
wheels, so `pip install jax[tpu] -f libtpu_releases.html` still uses
the jaxlib from pypi.

This also renames generate_release_index.py to generate_release_indexes.py.
2021-07-12 16:02:54 -07:00
Peter Hawkins
0de4a60834 Update pillow pin to >= 8.3.1.
8.3.1 fixed the issue from https://github.com/google/jax/pull/7166.
2021-07-07 08:33:29 -04:00
Jake VanderPlas
4ba343aa83 CI: pin pillow dependency to 8.2 to avoid failures under 8.3 2021-07-01 16:32:35 -07:00
Skye Wanderman-Milne
55276d15e4 Fix pip install jax[tpu]
* Updates jax_releases.html index to include libtpu wheels
* Change [tpu] extras to specify `libtpu-nightly` instead of wheel URL

The full install command will now be:
`pip install pip install jax[tpu] -f https://storage.googleapis.com/jax-releases/jax_releases.html`
(similar to the cuda install commands)

I've already pushed an updated jax_releases.html to the jax-releases GCS bucket.
2021-06-23 14:13:15 -07:00
Qiao Zhang
7c54b44dba Bump numpy versions for macos build. 2021-06-23 10:23:43 -07:00
jax authors
6ae2f6d5a4 Merge pull request #7060 from zhangqiaorjc:npv
PiperOrigin-RevId: 380918414
2021-06-22 16:37:50 -07:00
Qiao Zhang
f3c8a22d66 Bump np versions for build script. 2021-06-22 16:29:56 -07:00
Qiao Zhang
18c7610e96 Catch CalledProcessError in build script. 2021-06-22 13:36:14 -07:00
Jake VanderPlas
0c91be7b46 CI: temporarily pin numpy to <1.21 2021-06-22 11:15:16 -07:00
George Necula
6a48c60a72 Rename master to main in embedded links.
Tried to avoid the change on external links to repos that
have not yet renamed master.
2021-06-18 10:00:01 +03:00
Peter Hawkins
07277f0785 Bump mypy version to 0.902. 2021-06-14 10:05:34 -04:00
Peter Hawkins
b130257ee1 Drop support for NumPy 1.16. 2021-06-11 09:03:09 -04:00
akbir khan
dc81610bb6 updated to official bazel.4.1.0 2021-05-24 21:40:08 +01:00
Peter Hawkins
dacf31f202 Check for NumPy and SciPy versions during jaxlib builds. 2021-05-24 12:39:37 -04:00
Peter Hawkins
d481013f47 Add a CPU feature guard module to JAX.
To make sure that the CPU feature guard happens first, before any other code that may use instructions that do not exist, use a separate C extension module.

Fixes https://github.com/google/jax/issues/6671

PiperOrigin-RevId: 374683190
2021-05-19 10:58:35 -07:00
Peter Hawkins
86887a21e2 Add Mac M1 support to build.py. 2021-05-18 21:53:31 -04:00
Peter Hawkins
40c5e376d8 Pin flatbuffers 1.12 for CI tests. 2021-05-10 18:21:25 -04:00
jax authors
010c383ab3 Merge pull request #6694 from hawkinsp:wheel2
PiperOrigin-RevId: 372963990
2021-05-10 10:49:17 -07:00
Peter Hawkins
7d4551dd45 Add support for arm64 builds to build.py and build_wheel scripts. 2021-05-10 11:08:09 -04:00
Peter Hawkins
5b3bdd71b6 Allow manylinux_2_12_x86_64 in auditwheel test. This is an alias by PEP600. 2021-05-07 18:22:28 -04:00
Peter Hawkins
f9899df066 Readd CUDA 10.1 to the set of released CUDA wheels.
Users are still depending on CUDA 10.1.
2021-05-03 10:30:14 -04:00
Peter Hawkins
c983d3c660 Bundle libdevice.10.bc with jaxlib wheels.
libdevice.10.bc is a redistributable part of the CUDA SDK.

This avoids problems trying to locate a copy of libdevice inside the user's CUDA installation.
2021-04-29 10:26:03 -04:00
Peter Hawkins
a0c96b5ca5 Fix cusparse kernel build.
The build_wheel.py script was copying the wrong module.

In addition the CUDA stubs from the TF repo were missing a number of cusparse symbols. The updated TF includes the correct stubs.
2021-04-27 20:28:30 -04:00
Peter Hawkins
79a7f7bca8 Don't build CUDA 11.2 wheels.
Update XLA.

CUDA 11.1 wheels are compatible with CUDA versions 11.1+, since NVidia now promises enhanced version compatibility between CUDA minor releases starting with CUDA 11.1
2021-04-26 09:43:29 -04:00
Jake VanderPlas
0d4bcde7ca Add experimental/sparse_ops & cusparse wrappers in jaxlib
PiperOrigin-RevId: 368663407
2021-04-15 10:11:10 -07:00
Skye Wanderman-Milne
63dd2a6f20 Remove -it flag from docker run command in jaxlib build script.
It's unnecessary because the image isn't used interactively in the
script, and it prevents the script from being used when no TTY is
available (e.g. when running from a different script).
2021-04-14 09:44:42 -07:00
Sergei Lebedev
0ffd554a2f Fixed xla_extension-stubs packaging
setuptools does not consider a directory with an __init__.pyi a package.
This made it silently skip xla_extension-stubs when building a wheel.

See a4dbe3457d/setuptools/_distutils/command/build_py.py (L183)
2021-04-12 14:38:19 +01:00
Skye Wanderman-Milne
ac0682dde9 Factor out wheel-building functions in build_jaxlib_wheels.sh.
This will make it easier to build a single wheel, e.g. for GPU CI testing.

TESTING=I manually ran both build_jaxlib_wheels.sh and the individual
helper functions. I didn't do a full release build, but I verified
that a complete nocuda wheel can be successfully built.
2021-04-09 01:30:36 +00:00
jax authors
f51fa64ba5 Merge pull request #6337 from ahoenselaar:changelist/366161141
PiperOrigin-RevId: 367130827
2021-04-06 18:57:54 -07:00
Sergei Lebedev
225ffc30d8 Re-exported tensorflow...xla_extension type stubs in jaxlib
The type stubs allow using precise types for XLA primitives instead
of aliasing them to Any.

This commit does not change any type annotations within JAX. That will
be done in a followup. I have manually verified that type stubs are
discoverable by mypy once the new jaxlib is installed by type "checking"

    from jaxlib import xla_extension as xe
    d: xe._Dtype
2021-04-06 14:51:45 +01:00
Andreas Hoenselaar
a19098d462 Reimplement as JAX Primitive 2021-04-03 14:11:36 -07:00
Jake VanderPlas
f9a4162551 Specify minimum jaxlib version in a single location 2021-03-22 16:14:41 -07:00
Peter Hawkins
328930b917 Increase minimum jaxlib version to 0.1.62. 2021-03-16 15:11:36 -04:00
Skye Wanderman-Milne
55c75c8ca3 Update cuDNN versions to highest available.
The TF build depends on newer versions than we previously used.
2021-03-09 19:07:00 +00:00
Skye Wanderman-Milne
7b7a2a1ba8 Don't build with Cloud TPU support for GPU or Mac wheels.
This should make our builds simpler and less failure-prone.
2021-03-08 16:19:19 -08:00
Christian Sigg
c0e42e59eb
Switch to new flag to enable CUDA support in TF 2021-03-03 08:55:08 +01:00
Situ Yi
77905ef5fd
Update build.py with Cloud TPU support
Update build.py to have Cloud TPU support by default.
b/180656002
2021-02-19 12:57:57 -08:00