You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iterate on "installing from tarballs" documentation. (#813)
* Explain what a "release tarball" is
* Rework install instructions
* Show how to test an installation in a bit more detail
* Adjust section headings, pulling "Using Dockerfiles" out into its own
section instead of burying it
I'm not touching the `install_rocm_from_artifacts.py` section yet...
that's probably going to be most flexible and convenient but it needs
some quality of life changes to the script that I'll want us to make
together with docs changes.
|[`nightly-tarball`](https://github.com/ROCm/TheRock/releases/tag/nightly-tarball)|[therock-nightly-tarball](https://therock-nightly-tarball.s3.amazonaws.com/)| Nightly builds from the `main` branch |
249
+
|[`dev-tarball`](https://github.com/ROCm/TheRock/releases/tag/dev-tarball)|[therock-dev-tarball](https://therock-dev-tarball.s3.amazonaws.com/)| ⚠️ Development builds from project maintainers ⚠️ |
250
+
251
+
After downloading, simply extract the release tarball into place:
### Installing per-commit CI build tarballs manually
251
263
252
-
Our CI builds artifacts which need to be "flattened" by the `build_tools/fileset_tool.py artifact-flatten` command before they can be used. You will need to have a checkout (see for example [Clone and fetch sources](https://github.com/ROCm/TheRock/blob/main/docs/development/windows_support.md#clone-and-fetch-sources)) in `${SOURCE_DIR}` to use this tool and a Python environment.
264
+
<!-- TODO: Hide this section by default?
265
+
Maybe move into artifacts.md or another developer page. -->
### Installing tarballs using `install_rocm_from_artifacts.py`
263
319
320
+
<!-- TODO: move this above the manual `tar -xf` commands? -->
321
+
264
322
This script installs ROCm community builds produced by TheRock from either a developer/nightly tarball, a specific CI runner build or an already existing installation of TheRock. This script is used by CI and can be used locally.
265
323
266
324
Examples:
@@ -289,19 +347,33 @@ By default for CI workflow retrieval, all artifacts (excluding test artifacts) w
289
347
290
348
### Using installed tarballs
291
349
292
-
The quickest way is to run `rocminfo`
350
+
After installing (downloading and extracting) a tarball, you can test it by
351
+
running programs from the `bin/` directory:
293
352
294
353
```bash
295
-
echo"Running rocminfo"
296
-
pushd"${BUILD_ARTIFACTS_DIR}"
297
-
./output_dir/bin/rocminfo
298
-
popd
354
+
ls install
355
+
# bin include lib libexec llvm share
356
+
357
+
# Now test some of the installed tools:
358
+
./install/bin/rocminfo
359
+
./install/bin/test_hip_api
299
360
```
300
361
301
-
## Where to get artifacts
362
+
You may also want to add the install directory to your `PATH` or set other
363
+
environment variables like `ROCM_HOME`.
364
+
365
+
## Using Dockerfiles
302
366
303
-
- [Releases](https://github.com/ROCm/TheRock/releases): Our releases page has the latest "developer" release of our tarball artifacts and source code.
367
+
We publish [Dockerfiles](https://www.docker.com/) with packages preinstalled
368
+
for your convenience. See
369
+
https://github.com/orgs/ROCm/packages?repo_name=TheRock for the full list.
304
370
305
-
- [Packages](https://github.com/orgs/ROCm/packages?repo_name=TheRock): We currently publish docker images for LLVM targets we support (as well as a container for our build machines)
|[`therock_build_manylinux_x86_64`](https://github.com/ROCm/TheRock/pkgs/container/therock_build_manylinux_x86_64)| Container for our CI/CD pipelines<br>(This does _not_ include ROCm or PyTorch but can be used to build them) |
374
+
|[`therock_pytorch_dev_ubuntu_24_04_gfx942`](https://github.com/ROCm/TheRock/pkgs/container/therock_pytorch_dev_ubuntu_24_04_gfx942)| Ubuntu with PyTorch for ROCm gfx942 |
375
+
|[`therock_pytorch_dev_ubuntu_24_04_gfx1100`](https://github.com/ROCm/TheRock/pkgs/container/therock_pytorch_dev_ubuntu_24_04_gfx1100)| Ubuntu with PyTorch for ROCm gfx1100 |
376
+
|[`therock_pytorch_dev_ubuntu_24_04_gfx1151`](https://github.com/ROCm/TheRock/pkgs/container/therock_pytorch_dev_ubuntu_24_04_gfx1151)| Ubuntu with PyTorch for ROCm gfx1151 |
377
+
|[`therock_pytorch_dev_ubuntu_24_04_gfx1201`](https://github.com/ROCm/TheRock/pkgs/container/therock_pytorch_dev_ubuntu_24_04_gfx1201)| Ubuntu with PyTorch for ROCm gfx1201 |
306
378
307
-
- [Per-commit CI builds](https://github.com/ROCm/TheRock/actions/workflows/ci.yml?query=branch%3Amain+is%3Asuccess): Each of our latest passing CI builds has its own artifacts you can leverage. This is the latest and greatest! We will eventually support a nightly release that is at a higher quality bar than CI. Note a quick recipe forgetting all of these from the s3 bucket is to use this quick command`aws s3 cp s3://therock-artifacts . --recursive --exclude "*" --include "${RUN_ID}-${OPERATING_SYSTEM}/*.tar.xz" --no-sign-request` where ${RUN_ID} is the runner id you selected (see the URL). Check the [AWS docs](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) to get the aws cli.
0 commit comments