Skip to content

Commit

Permalink
misc: Update file due to incorrect rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Dec 22, 2023
1 parent 4db870e commit e6ce3be
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions docker/Dockerfile.intel
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ RUN apt-get update -y && \
apt-get install -y intel-oneapi-advisor

# Drivers mandatory for intel gpu
<<<<<<< HEAD
# https://dgpu-docs.intel.com/driver/installation.html#ubuntu-install-steps
RUN wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor > /usr/share/keyrings/intel-graphics.gpg
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu jammy unified" > /etc/apt/sources.list.d/intel-gpu-jammy.list
Expand All @@ -59,16 +58,6 @@ RUN apt-get update -y && apt-get dist-upgrade -y && \
mesa-vdpau-drivers mesa-vulkan-drivers va-driver-all vainfo hwinfo clinfo \
# Development packages
libigc-dev intel-igc-cm libigdfcl-dev libigfxcmrt-dev level-zero-dev
=======
# https://dgpu-docs.intel.com/installation-guides/ubuntu/ubuntu-focal.html#ubuntu-20-04-focal
RUN wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor > /usr/share/keyrings/intel-graphics.gpg
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal main" > /etc/apt/sources.list.d/intel.list

RUN apt-get update -y && apt-get dist-upgrade -y && \
apt-get install -y intel-opencl-icd intel-level-zero-gpu level-zero level-zero-dev \
intel-media-va-driver-non-free libmfx1 libmfxgen1 libvpl2 \
libigc-dev intel-igc-cm libigdfcl-dev libigfxcmrt-dev level-zero-dev
>>>>>>> c4373f90e (misc: Split Dockerfile.cpu into .cpu and .intel)

##############################################################
# ICC image
Expand All @@ -89,11 +78,7 @@ ENV MPICC=mpiicc
ENV MPI4PY_FLAGS='. /opt/intel/oneapi/setvars.sh && CFLAGS="-cc=icc"'

##############################################################
<<<<<<< HEAD
# ICX OpenMP image
=======
# ICX image
>>>>>>> c4373f90e (misc: Split Dockerfile.cpu into .cpu and .intel)
##############################################################
FROM oneapi as icx

Expand All @@ -109,35 +94,6 @@ ENV MPICC=mpiicc
ENV MPI4PY_FLAGS='. /opt/intel/oneapi/setvars.sh && CFLAGS="-cc=icx"'

##############################################################
<<<<<<< HEAD
=======
# ICX hpc image
##############################################################
FROM oneapi as icx-hpc

# Install both icc and icx to avoid missing dependencies
RUN apt-get update -y && \
apt-get install -y intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mpi-devel && \
apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic

# Missig components
# https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit-download.html?operatingsystem=linux&distributions=aptpackagemanager
RUN curl -f "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/ebf5d9aa-17a7-46a4-b5df-ace004227c0e/l_dpcpp-cpp-compiler_p_2023.2.1.8.sh" -O && \
chmod +x l_dpcpp-cpp-compiler_p_2023.2.1.8.sh && ./l_dpcpp-cpp-compiler_p_2023.2.1.8.sh -a -s --eula accept && \
rm l_dpcpp-cpp-compiler_p_2023.2.1.8.sh

RUN apt-get clean && apt-get autoclean && apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*

# Devito config
ENV DEVITO_ARCH="icx"
ENV DEVITO_LANGUAGE="openmp"
# MPICC compiler for mpi4py
ENV MPICC=mpiicc
ENV MPI4PY_FLAGS='. /opt/intel/oneapi/setvars.sh && CFLAGS="-cc=icx"'

##############################################################
>>>>>>> c4373f90e (misc: Split Dockerfile.cpu into .cpu and .intel)
# ICX SYCL CPU image
##############################################################
FROM icx as cpu-sycl
Expand All @@ -152,12 +108,6 @@ ENV DEVITO_PLATFORM="intel64"
##############################################################
FROM icx as gpu-sycl

<<<<<<< HEAD
=======
# NOTE: the name of this file ends with ".cpu" but this is a GPU image.
# It then feels a bit akward, so some restructuring might be needed

>>>>>>> c4373f90e (misc: Split Dockerfile.cpu into .cpu and .intel)
# Devito config
ENV DEVITO_ARCH="sycl"
ENV DEVITO_LANGUAGE="sycl"
Expand Down

0 comments on commit e6ce3be

Please sign in to comment.