From c2b4a23b26fc62b374a602910da4c2729865bda3 Mon Sep 17 00:00:00 2001 From: Aleksei Magusev <248290+lexmag@users.noreply.github.com> Date: Sun, 6 Aug 2023 13:30:16 -0700 Subject: [PATCH] Use idiomatic naming for Dockerfiles (#47) --- .github/builds/README.md | 8 ++++---- .github/builds/{Dockerfile.alpine => alpine.Dockerfile} | 0 .github/builds/{Dockerfile.cuda => cuda.Dockerfile} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename .github/builds/{Dockerfile.alpine => alpine.Dockerfile} (100%) rename .github/builds/{Dockerfile.cuda => cuda.Dockerfile} (100%) diff --git a/.github/builds/README.md b/.github/builds/README.md index 5976b29..20562e7 100644 --- a/.github/builds/README.md +++ b/.github/builds/README.md @@ -8,10 +8,10 @@ The build can be run on any machine with Docker installed. First, you need to build the image with CUDA/cuDNN and all other the dependencies ```shell -docker build -t xla-cuda111 -f Dockerfile.cuda --build-arg CUDA_VERSION=11.1.1 --build-arg XLA_TARGET=cuda111 . -docker build -t xla-cuda114 -f Dockerfile.cuda --build-arg CUDA_VERSION=11.4.3 --build-arg XLA_TARGET=cuda114 . -docker build -t xla-cuda118 -f Dockerfile.cuda --build-arg CUDA_VERSION=11.8.0 --build-arg XLA_TARGET=cuda118 . -docker build -t xla-cuda120 -f Dockerfile.cuda --build-arg CUDA_VERSION=12.0.0 --build-arg XLA_TARGET=cuda120 . +docker build -t xla-cuda111 -f cuda.Dockerfile --build-arg CUDA_VERSION=11.1.1 --build-arg XLA_TARGET=cuda111 . +docker build -t xla-cuda114 -f cuda.Dockerfile --build-arg CUDA_VERSION=11.4.3 --build-arg XLA_TARGET=cuda114 . +docker build -t xla-cuda118 -f cuda.Dockerfile --build-arg CUDA_VERSION=11.8.0 --build-arg XLA_TARGET=cuda118 . +docker build -t xla-cuda120 -f cuda.Dockerfile --build-arg CUDA_VERSION=12.0.0 --build-arg XLA_TARGET=cuda120 . ``` Then, start a container. It clones XLA from GitHub, compiles and packages diff --git a/.github/builds/Dockerfile.alpine b/.github/builds/alpine.Dockerfile similarity index 100% rename from .github/builds/Dockerfile.alpine rename to .github/builds/alpine.Dockerfile diff --git a/.github/builds/Dockerfile.cuda b/.github/builds/cuda.Dockerfile similarity index 100% rename from .github/builds/Dockerfile.cuda rename to .github/builds/cuda.Dockerfile