557 Commits

Author SHA1 Message Date
jax authors
aa386f855a Update XLA dependency to use revision
750765b1c9.

PiperOrigin-RevId: 708360218
2024-12-20 10:23:21 -08:00
jax authors
1b385f3813 Update XLA dependency to use revision
b44f55da3d.

PiperOrigin-RevId: 707970174
2024-12-19 11:14:06 -08:00
jax authors
53bff8615f Update XLA dependency to use revision
9e68b1e03d.

PiperOrigin-RevId: 707594007
2024-12-18 10:26:02 -08:00
Peter Hawkins
3f24dfd234 Migrate mhlo dialect extension to nanobind.
PiperOrigin-RevId: 707562235
2024-12-18 08:36:12 -08:00
Peter Hawkins
3d54d03529 Migrate StableHLO Python extension to nanobind.
PiperOrigin-RevId: 707543869
2024-12-18 07:28:52 -08:00
jax authors
7fe25791e4 Update XLA dependency to use revision
20a482597b.

PiperOrigin-RevId: 707170346
2024-12-17 11:04:11 -08:00
jax authors
302d8031eb Update XLA dependency to use revision
0954ab3527.

PiperOrigin-RevId: 706786469
2024-12-16 11:59:22 -08:00
jax authors
c7d1c3d2d8 Update XLA dependency to use revision
37fb0612d3.

PiperOrigin-RevId: 706474188
2024-12-15 11:55:25 -08:00
jax authors
ab031577f0 Update XLA dependency to use revision
b353bfbba5.

PiperOrigin-RevId: 706264718
2024-12-14 12:14:00 -08:00
jax authors
078c7e4444 Update XLA dependency to use revision
cd4b4e1ba3.

PiperOrigin-RevId: 705976057
2024-12-13 13:00:37 -08:00
jax authors
97459ba9aa Update XLA dependency to use revision
fb8e7d579f.

PiperOrigin-RevId: 705602301
2024-12-12 12:55:31 -08:00
jax authors
b8d2e9383a Update XLA dependency to use revision
209cbfa31a.

PiperOrigin-RevId: 705215149
2024-12-11 13:16:26 -08:00
jax authors
2ff90382d2 Update XLA dependency to use revision
ce56ae1529.

PiperOrigin-RevId: 704835739
2024-12-10 13:55:02 -08:00
jax authors
71c48cba1c Update XLA dependency to use revision
a041e1b155.

PiperOrigin-RevId: 704406817
2024-12-09 13:56:14 -08:00
jax authors
7062325521 Update XLA dependency to use revision
fb46636c1f.

PiperOrigin-RevId: 704067165
2024-12-08 14:09:21 -08:00
jax authors
ad00ee1e06 Update XLA dependency to use revision
ace1e90f1b.

PiperOrigin-RevId: 703866489
2024-12-07 15:01:00 -08:00
jax authors
baedb62b71 Update XLA dependency to use revision
1ff335df59.

PiperOrigin-RevId: 703640058
2024-12-06 15:51:10 -08:00
jax authors
1ca8903a3c Update XLA dependency to use revision
fa33691034.

PiperOrigin-RevId: 703276684
2024-12-05 15:46:33 -08:00
jax authors
28528d44d3 Update XLA dependency to use revision
30f22f4d6c.

PiperOrigin-RevId: 702898833
2024-12-04 16:25:28 -08:00
jax authors
ceeed909dc Update XLA dependency to use revision
05f004e836.

PiperOrigin-RevId: 702493080
2024-12-03 15:39:35 -08:00
jax authors
9f20301739 Update XLA dependency to use revision
6070a19a7c.

PiperOrigin-RevId: 702090722
2024-12-02 14:42:44 -08:00
jax authors
e124c051f2 Update XLA dependency to use revision
41e12cc024.

PiperOrigin-RevId: 701766499
2024-12-01 15:11:22 -08:00
jax authors
db4b3f2922 Update XLA dependency to use revision
20d4636c74.

PiperOrigin-RevId: 701562320
2024-11-30 15:25:09 -08:00
jax authors
47858c4ac2 Update XLA dependency to use revision
479fb21237.

PiperOrigin-RevId: 701368225
2024-11-29 16:24:05 -08:00
jax authors
f73de23026 Update XLA dependency to use revision
fc80c5576b.

PiperOrigin-RevId: 701110365
2024-11-28 15:39:19 -08:00
jax authors
132ad251a1 Update XLA dependency to use revision
d0769456f0.

PiperOrigin-RevId: 700817614
2024-11-27 15:14:35 -08:00
jax authors
a212a29dc6 Update XLA dependency to use revision
e2fe67323e.

PiperOrigin-RevId: 700786259
2024-11-27 13:06:35 -08:00
Vladimir Belitskiy
df6758f021 Update XLA dependency to use revision
PiperOrigin-RevId: 700728296
2024-11-27 09:39:24 -08:00
jax authors
9c42379633 Update XLA dependency to use revision
9d5bac13a3.

PiperOrigin-RevId: 700465720
2024-11-26 14:44:04 -08:00
Vladimir Belitskiy
e453fa179e Update XLA dependency to use revision
PiperOrigin-RevId: 700373062
2024-11-26 09:48:02 -08:00
jax authors
ebea4353f8 Update XLA dependency to use revision
7059553f7e.

PiperOrigin-RevId: 700110142
2024-11-25 14:57:20 -08:00
Nitin Srinivasan
6761512658 Re-factor build CLI to a subcommand based approach
This commit reworks the JAX build CLI to a subcommand based approach where CLI use cases are now defined as subcommands. Two subcommands are defined: build and requirements_update. "build" is to be used when wanting to build a JAX wheel package. "requirements_update" is to be used when wanting to update the requirements_lock.txt files. The new structure offers a clear and organized CLI that enables users to execute specific build tasks without having to navigate through a monolithic script.

Each subcommand has specific arguments that apply to its respective build process. In addition, arguments are separated into groups to achieve a cleaner separation and improves the readability when the CLI subcommands are run with `--help`. It also makes it clear as to which parts of the build they affect. E.g: CUDA arguments only apply to CUDA builds, ROCM arguments only apply to ROCM builds, etc. This reduces the complexity and the potential for errors during the build process. Segregating functionalities into distinct subcommands also simplifies the code which should help with the maintenance and future extensions.

There is also a transition from using `subprocess.check_output` to `asyncio.create_subprocess_shell` for executing the build commands which allows for streaming logs and helps in showing the build progress in real time.

Usage:
* Building `jaxlib`:
```
python build/build.py build --wheels=jaxlib --python_version=3.10
```
* Building `jax-cuda-plugin`:
```
python build/build.py build --wheels=jax-cuda-plugin --cuda_version=12.3.2 --cudnn_version=9.1.1 --python_version=3.10
```
* Building multiple packages:
```
python build/build.py build --wheels=jaxlib,jax-cuda-plugin,jax-cuda-pjrt --cuda_version=12.3.2 --cudnn_version=9.1.1 --python_version=3.10
```
* Building `jax-rocm-pjrt`:
```
python build/build.py build --wheels=jax-rocm-pjrt --rocm_version=60 --rocm_path=/path/to/rocm
```
* Using a local XLA path:
```
python build/build.py build --wheels=jaxlib --local_xla_path=/path/to/xla
```
* Updating requirements_lock.txt files:
```
python build/build.py requirements_update --python_version=3.10
```

For more details on each argument and to see available options, run:
```
python build/build.py build --help
```
or
```
python build/build.py requirements_update --help
```

PiperOrigin-RevId: 700075411
2024-11-25 13:03:04 -08:00
jax authors
b372ce4b1a Update XLA dependency to use revision
40d457a268.

PiperOrigin-RevId: 699768724
2024-11-24 15:00:10 -08:00
jax authors
4d8751bff4 Update XLA dependency to use revision
90af2896ab.

PiperOrigin-RevId: 699545393
2024-11-23 15:31:36 -08:00
jax authors
9f6dbef3dc Update XLA dependency to use revision
0564969ba3.

PiperOrigin-RevId: 699295115
2024-11-22 14:50:57 -08:00
jax authors
26443bbd66 Update XLA dependency to use revision
85360d67ff.

PiperOrigin-RevId: 698915433
2024-11-21 14:26:26 -08:00
jax authors
6fe78042b5 Update XLA dependency to use revision
e763f8875b.

PiperOrigin-RevId: 698525361
2024-11-20 14:39:00 -08:00
jax authors
a582df0297 Update XLA dependency to use revision
fcee07f619.

PiperOrigin-RevId: 698371906
2024-11-20 06:39:06 -08:00
jax authors
3161a28424 Update XLA dependency to use revision
229f376e04.

PiperOrigin-RevId: 698136955
2024-11-19 14:01:25 -08:00
jax authors
b3ca6c47cc Update XLA dependency to use revision
082a701470.

PiperOrigin-RevId: 697756717
2024-11-18 14:21:51 -08:00
jax authors
742cabc547 Update XLA dependency to use revision
58ea2935b4.

PiperOrigin-RevId: 697425145
2024-11-17 14:19:34 -08:00
jax authors
7b9914d711 Update XLA dependency to use revision
9ab7d704d7.

PiperOrigin-RevId: 697222155
2024-11-16 13:40:11 -08:00
jax authors
1780ff2964 Update XLA dependency to use revision
195f45b708.

PiperOrigin-RevId: 696984108
2024-11-15 13:28:31 -08:00
jax authors
c40d405e43 Update XLA dependency to use revision
ecdba3f23b.

PiperOrigin-RevId: 696642961
2024-11-14 14:04:36 -08:00
jax authors
4a884d4184 Update XLA dependency to use revision
2a7890387f.

PiperOrigin-RevId: 696255293
2024-11-13 13:40:49 -08:00
jax authors
c4a0369f5c Update XLA dependency to use revision
f17344020c.

PiperOrigin-RevId: 695838490
2024-11-12 12:52:22 -08:00
jax authors
6892e628fb Update XLA dependency to use revision
e93a258e44.

PiperOrigin-RevId: 695470898
2024-11-11 13:52:20 -08:00
jax authors
098d582e70 Update XLA dependency to use revision
cebb50cc77.

PiperOrigin-RevId: 695127776
2024-11-10 14:43:02 -08:00
jax authors
b51187ca0c Update XLA dependency to use revision
290673692a.

PiperOrigin-RevId: 694921620
2024-11-09 14:39:09 -08:00
jax authors
c1360f5463 Update XLA dependency to use revision
6d95565e65.

PiperOrigin-RevId: 694624452
2024-11-08 13:41:22 -08:00