forked from rapidsai/cucim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-cuda110
39 lines (31 loc) · 1.7 KB
/
Dockerfile-cuda110
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# Copyright (c) 2020, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM dockcross/manylinux2014-x64:20230215-2dd9a1c
ENV DEFAULT_DOCKCROSS_IMAGE gigony/manylinux2014-x64:cuda110
ENV PATH=/usr/local/cuda/bin/:$PATH
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64/:/usr/local/cuda/nvvm/lib64:${LD_LIBRARY_PATH}
RUN curl -LO https://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda_11.0.3_450.51.06_linux.run && \
chmod +x cuda_*.run && \
./cuda_*.run --silent --no-opengl-libs --toolkit --override && \
rm -f cuda_*.run;
RUN curl -LO https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/libnvjpeg2k0-0.0.1.17-1.x86_64.rpm && \
curl -LO https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/libnvjpeg2k-devel-0.0.1.17-1.x86_64.rpm && \
rpm -i libnvjpeg2k*.rpm
# TODO: Currently we don't install dependencies from libtiff here.
RUN yum install -y openslide-python openslide-devel python-devel python3-devel
# Copy stub libcuda file
RUN cp /usr/local/cuda-11.0/targets/x86_64-linux/lib/stubs/libcuda.so /usr/lib64/libcuda.so.1
RUN cp -P /usr/include/nvjpeg2k* /usr/local/cuda/include/ && \
cp -P /usr/lib64/libnvjpeg2k* /usr/local/cuda/lib64/