-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added GPU benchmarking to the CI pipeline. --------- Co-authored-by: Rico Haeuselmann <r.haeuselmann@gmx.ch>
- Loading branch information
1 parent
598e434
commit 46f6a5f
Showing
23 changed files
with
163 additions
and
82 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 |
---|---|---|
@@ -1,31 +1,58 @@ | ||
FROM ubuntu:22.04 as builder | ||
FROM docker.io/nvidia/cuda:11.2.2-devel-ubuntu20.04 | ||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
COPY . /icon4py | ||
|
||
# Update and install necessary utilities and libraries | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
software-properties-common \ | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update -qq && apt-get install -qq -y --no-install-recommends \ | ||
strace \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
libboost-all-dev \ | ||
pkg-config \ | ||
tar \ | ||
wget \ | ||
curl \ | ||
gdb | ||
|
||
# Install Python 3.10 | ||
RUN add-apt-repository -y ppa:deadsnakes/ppa && \ | ||
apt-get update && \ | ||
apt-get install -y python3.10 python3.10-distutils python3.10-venv && \ | ||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 | ||
|
||
# Install pip | ||
RUN apt-get install -y curl && \ | ||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
python3.10 get-pip.py | ||
|
||
# Cleanup | ||
RUN apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm get-pip.py | ||
ca-certificates \ | ||
zlib1g-dev \ | ||
libssl-dev \ | ||
libbz2-dev \ | ||
libsqlite3-dev \ | ||
llvm \ | ||
libncurses5-dev \ | ||
libncursesw5-dev \ | ||
xz-utils \ | ||
tk-dev \ | ||
libffi-dev \ | ||
liblzma-dev \ | ||
python-openssl \ | ||
libreadline-dev \ | ||
git \ | ||
rustc \ | ||
htop && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget --quiet https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/boost_1_72_0.tar.gz && \ | ||
echo c66e88d5786f2ca4dbebb14e06b566fb642a1a6947ad8cc9091f9f445134143f boost_1_72_0.tar.gz > boost_hash.txt && \ | ||
sha256sum -c boost_hash.txt && \ | ||
tar xzf boost_1_72_0.tar.gz && \ | ||
mv boost_1_72_0/boost /usr/local/include/ && \ | ||
rm boost_1_72_0.tar.gz boost_hash.txt | ||
|
||
ENV BOOST_ROOT /usr/local/ | ||
ENV CUDA_HOME /usr/local/cuda | ||
|
||
ARG PYVERSION | ||
|
||
RUN curl https://pyenv.run | bash | ||
|
||
ENV PYENV_ROOT /root/.pyenv | ||
ENV PATH="/root/.pyenv/bin:${PATH}" | ||
|
||
RUN pyenv update && \ | ||
pyenv install ${PYVERSION} && \ | ||
echo 'eval "$(pyenv init -)"' >> /root/.bashrc && \ | ||
eval "$(pyenv init -)" && \ | ||
pyenv global ${PYVERSION} | ||
|
||
ENV PATH="/root/.pyenv/shims:${PATH}" | ||
|
||
COPY . /icon4py | ||
|
||
RUN pip install --upgrade pip setuptools wheel tox cupy-cuda11x clang-format |
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
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
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
Oops, something went wrong.