Spaces:
Running
Running
joecryptotoo
bobqianic
commited on
docker : Add dockerfile for cublas (#1286)
Browse files* Create Dockerfile
* Rename Dockerfile to cublas.Dockerfile
* Rename cublas.Dockerfile to .devops/cublas.Dockerfile
---------
Co-authored-by: bobqianic <[email protected]>
- .devops/cublas.Dockerfile +28 -0
.devops/cublas.Dockerfile
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ARG UBUNTU_VERSION=22.04
|
| 2 |
+
|
| 3 |
+
# This needs to generally match the container host's environment.
|
| 4 |
+
ARG CUDA_VERSION=11.7.1
|
| 5 |
+
|
| 6 |
+
# Target the CUDA build image
|
| 7 |
+
ARG BASE_CUDA_DEV_CONTAINER=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu${UBUNTU_VERSION}
|
| 8 |
+
|
| 9 |
+
FROM ${BASE_CUDA_DEV_CONTAINER} as build
|
| 10 |
+
|
| 11 |
+
# Unless otherwise specified, we make a fat build.
|
| 12 |
+
ARG CUDA_DOCKER_ARCH=all
|
| 13 |
+
|
| 14 |
+
RUN apt-get update && \
|
| 15 |
+
apt-get install -y build-essential git cmake
|
| 16 |
+
|
| 17 |
+
WORKDIR /app
|
| 18 |
+
|
| 19 |
+
COPY . .
|
| 20 |
+
|
| 21 |
+
# Set nvcc architecture
|
| 22 |
+
ENV CUDA_DOCKER_ARCH=${CUDA_DOCKER_ARCH}
|
| 23 |
+
# Enable cuBLAS
|
| 24 |
+
ENV WHISPER_CUBLAS=1
|
| 25 |
+
|
| 26 |
+
RUN make
|
| 27 |
+
|
| 28 |
+
ENTRYPOINT ["/app/main"]
|