-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
102 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Siavash Ameli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu> | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# SPDX-FileType: SOURCE | ||
|
||
# ----------------------------------------------------------------------------- | ||
# How to build | ||
# $ docker build -t sameli/manylinux2014_x86_64_cuda_12 -f <This-Filename> . | ||
# | ||
# How to run: | ||
# $ docker run -it -v/host_dir:/image_dir --entrypoint /bin/bash \ | ||
# manylinux2014_x86_64_cuda_12 | ||
# ----------------------------------------------------------------------------- | ||
|
||
# ----------------- | ||
# Choose base image | ||
# ----------------- | ||
|
||
FROM quay.io/pypa/manylinux2014_x86_64 | ||
|
||
MAINTAINER Siavash Ameli <samei@berkeley.edu> | ||
LABEL Description="manylinux2014_x86_64 with cuda 12.0" | ||
|
||
# ------------ | ||
# Install cuda | ||
# ------------ | ||
|
||
RUN yum install -y yum-utils | ||
RUN yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo | ||
RUN yum clean all | ||
RUN yum -y install nvidia-driver-latest-dkms cuda | ||
RUN yum -y install cuda-drivers | ||
|
||
# ------------------------- | ||
# Set environment variables | ||
# ------------------------- | ||
|
||
ENV PATH="/usr/local/cuda/bin:${PATH}" | ||
ENV CUDA_HOME=/usr/local/cuda | ||
ENV CUDA_ROOT=/usr/local/cuda | ||
ENV CUDA_PATH=/usr/local/cuda | ||
ENV CUDADIR=/usr/local/cuda | ||
ENV LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}" | ||
|
||
# -------- | ||
# Commands | ||
# -------- | ||
|
||
CMD ["/bin/bash"] |