antares/docker/Dockerfile.c-sycl_intel

24 строки
1.2 KiB
Docker

FROM intel/oneapi-hpckit:2023.0.0-devel-ubuntu20.04
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONDONTWRITEBYTECODE 1
RUN env > /etc/environment
RUN sed -i 's/^#deb /deb /g' /etc/apt/sources.list
RUN apt-get update && apt install -y --no-install-recommends git ca-certificates \
vim-tiny less netcat-openbsd inetutils-ping curl patch iproute2 \
g++ libpci3 libnuma-dev make file openssh-server kmod gdb psmisc \
autoconf automake autotools-dev libtool \
zlib1g-dev rename zip unzip librdmacm-dev gnupg \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN /bin/echo -e "set backspace=indent,eol,start\nset nocompatible\nset ts=4" > /etc/vim/vimrc.tiny
RUN cp -r /opt/intel/oneapi/compiler/latest/linux/include/sycl/CL /opt/intel/oneapi/compiler/latest/linux/include/
RUN apt update && apt-get install -y python3-pip
RUN pip3 install --upgrade antares && mkdir -p /root/.local/antares && mv $(antares pwd)/../3rdparty /root/.local/antares/3rdparty && pip3 uninstall antares -y && echo 'exec /antares/main.py "$@"' > /usr/local/bin/antares && chmod a+x /usr/local/bin/antares
RUN python3 -m pip install torch==2.0.0 --index-url https://download.pytorch.org/whl/cpu