Skip to content

Commit

Permalink
feat(katago): update katago and tensorrt
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Apr 29, 2024
1 parent 07f3681 commit c0d18d8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
ARG CUDA_VERSION=12.0.1
ARG CUDA_VERSION=12.4.1
ARG OS_VERSION=22.04
ARG TRT_VERSION=8.6.1.6
ARG TRT_VERSION=10.0.1.6-1+cuda12.4
ARG KATAGO_VERSION=v1.14.1

# ---------------------------------------------------------------------------
FROM registry-1.docker.io/nvidia/cuda:${CUDA_VERSION}-cudnn8-runtime-ubuntu${OS_VERSION} as tensorrt-runner
FROM registry-1.docker.io/nvidia/cuda:${CUDA_VERSION}-cudnn-runtime-ubuntu${OS_VERSION} as tensorrt-runner
# ---------------------------------------------------------------------------

ARG TRT_VERSION
ARG CUDA_VERSION

ENV DEBIAN_FRONTEND noninteractive

RUN v="${TRT_VERSION}-1+cuda${CUDA_VERSION%.*}" \
RUN v="${TRT_VERSION}" \
&& apt update -y && apt install -y \
libnvinfer8=${v} \
libnvonnxparsers8=${v} \
libnvparsers8=${v} \
libnvinfer-plugin8=${v} \
libnvinfer10=${v} \
libnvonnxparsers10=${v} \
libnvinfer-plugin10=${v} \
&& rm -rf /var/lib/apt/lists/*

# -----------------------------------------------------------------
FROM registry-1.docker.io/nvidia/cuda:${CUDA_VERSION}-cudnn8-devel-ubuntu${OS_VERSION} as builder
FROM registry-1.docker.io/nvidia/cuda:${CUDA_VERSION}-cudnn-devel-ubuntu${OS_VERSION} as builder
# -----------------------------------------------------------------

ARG TRT_VERSION
ARG CUDA_VERSION

ENV DEBIAN_FRONTEND noninteractive

RUN v="${TRT_VERSION}-1+cuda${CUDA_VERSION%.*}" \
RUN v="${TRT_VERSION}" \
&& apt update -y && apt install -y \
libnvinfer-dev=${v} \
libnvonnxparsers-dev=${v} \
libnvparsers-dev=${v} \
libnvinfer-plugin-dev=${v} \
wget \
git \
zlib1g-dev \
libzip-dev \
&& rm -rf /var/lib/apt/lists/*

RUN wget https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.sh \
RUN wget https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-linux-x86_64.sh \
-q -O /tmp/cmake-install.sh \
&& chmod u+x /tmp/cmake-install.sh \
&& /tmp/cmake-install.sh --skip-license --prefix=/usr/local \
&& rm /tmp/cmake-install.sh

WORKDIR /

RUN git clone https://github.com/lightvector/KataGo.git && mkdir -p /KataGo/cpp/build
ARG KATAGO_VERSION
RUN git clone -b ${KATAGO_VERSION} https://github.com/lightvector/KataGo.git && mkdir -p /KataGo/cpp/build

WORKDIR /KataGo/cpp/build

Expand Down

0 comments on commit c0d18d8

Please sign in to comment.