Skip to content

Commit

Permalink
Update readme (ROCm 6.x docker build)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfxuan committed Mar 15, 2024
1 parent 40893c3 commit 194eec9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rocm6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: OpenSplat (Docker ROCm 6.x)
on:
push:
branches:
- docker-rocm6
- main
pull_request:
types: [ assigned, opened, synchronize, reopened ]
release:
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ docker build \
## Docker Build (ROCm via HIP)
Navigate to the root directory of OpenSplat repo that has Dockerfile and run the following command to build the Docker image:
```bash
docker build -t opensplat -f Dockerfile.rocm .
docker build \
-t opensplat \
-f Dockerfile.rocm .
```

The `-t` flag and other `--build-arg` let you tag and further customize your image across different ubuntu versions, CUDA/libtorch stacks, and hardware accelerators.
Expand All @@ -89,7 +91,12 @@ docker build \
--build-arg PYTORCH_ROCM_ARCH="gfx906" \
--build-arg CMAKE_BUILD_TYPE=Release .
```

Note: If you want to use ROCm 6.x, you need to switch to AMD version of pytorch docker as a base layer to build:
```bash
docker build \
-t opensplat:ubuntu-22.04-libtorch-torch-2.1.2-rocm-6.0.2 \
-f Dockerfile.rocm6 .
```

## Run

Expand Down

0 comments on commit 194eec9

Please sign in to comment.