542 Commits

Author SHA1 Message Date
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
jax authors
37fc834975 Update XLA dependency to use revision
b0aae98821.

PiperOrigin-RevId: 694218761
2024-11-07 12:55:39 -08:00
jax authors
dc33a28028 Update XLA dependency to use revision
0f6331b188.

PiperOrigin-RevId: 693819727
2024-11-06 12:19:14 -08:00
jax authors
21f4b0854a Update XLA dependency to use revision
5a9f79f295.

PiperOrigin-RevId: 693439980
2024-11-05 12:28:17 -08:00
jax authors
38b4d00100 Update XLA dependency to use revision
c66d74e5b3.

PiperOrigin-RevId: 693065128
2024-11-04 13:01:55 -08:00
jax authors
2d94914c80 Update XLA dependency to use revision
336cc6ede4.

PiperOrigin-RevId: 692744387
2024-11-03 13:01:23 -08:00
jax authors
d679c0abaa Update XLA dependency to use revision
cbf3c8d5de.

PiperOrigin-RevId: 692531116
2024-11-02 13:35:58 -07:00
jax authors
d606c24293 Update XLA dependency to use revision
8ec02b3611.

PiperOrigin-RevId: 692266047
2024-11-01 12:57:20 -07:00
jax authors
8536eca46e Update XLA dependency to use revision
edf18ce242.

PiperOrigin-RevId: 691908973
2024-10-31 13:06:07 -07:00
jax authors
af14c43893 Update XLA dependency to use revision
2d9d84487e.

PiperOrigin-RevId: 691516089
2024-10-30 12:36:35 -07:00
jax authors
63e8aff268 Update XLA dependency to use revision
b5690e93ea.

PiperOrigin-RevId: 691102818
2024-10-29 11:45:45 -07:00
jax authors
bc03e5053a Update XLA dependency to use revision
7b4c7f36cc.

PiperOrigin-RevId: 690672528
2024-10-28 10:49:45 -07:00
jax authors
ef83ac6443 Update XLA dependency to use revision
a7bd6795db.

PiperOrigin-RevId: 690363812
2024-10-27 11:01:32 -07:00
jax authors
56dc89f1a2 Update XLA dependency to use revision
4d0fe880a5.

PiperOrigin-RevId: 690147893
2024-10-26 11:28:09 -07:00
jax authors
5afdbcbae7 Update XLA dependency to use revision
79142a8fdd.

PiperOrigin-RevId: 689867508
2024-10-25 12:05:27 -07:00
jax authors
bd417ba6d0 Update XLA dependency to use revision
1f6bd971dd.

PiperOrigin-RevId: 689457454
2024-10-24 11:36:55 -07:00