Skip to content

Commit

Permalink
SYCL CI: Manually build oneDPL
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jul 5, 2024
1 parent 3e8d9ee commit 51fe019
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .jenkins/continuous.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ pipeline {
-D CMAKE_CXX_COMPILER=${DPCPP} \
-D CMAKE_CXX_EXTENSIONS=OFF \
-D CMAKE_CXX_FLAGS="-fp-model=precise -fsycl-device-code-split=per_kernel -Wpedantic -Wall -Wextra -Wno-sycl-target -Wno-unknown-cuda-version -Wno-deprecated-declarations" \
-D CMAKE_PREFIX_PATH="$KOKKOS_DIR;$BOOST_DIR;$BENCHMARK_DIR" \
-D CMAKE_PREFIX_PATH="$KOKKOS_DIR;$BOOST_DIR;$BENCHMARK_DIR;$ONE_DPL_DIR" \
-D ARBORX_ENABLE_MPI=ON \
-D MPIEXEC_PREFLAGS="--allow-run-as-root" \
-D MPIEXEC_MAX_NUMPROCS=4 \
Expand Down
20 changes: 14 additions & 6 deletions docker/Dockerfile.sycl
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,20 @@ RUN wget https://cloud.cees.ornl.gov/download/oneapi-for-nvidia-gpus-${DPCPP_VER
./oneapi-for-nvidia-gpus-${DPCPP_VERSION}-linux.sh -y && \
rm oneapi-for-nvidia-gpus-${DPCPP_VERSION}-linux.sh

# Install oneDPL, see
# https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html?operatingsystem=linux&distributions=online&version=2023.0.0
RUN wget https://registrationcenter-download.intel.com/akdlm/irc_nas/19133/l_oneDPL_p_2022.0.0.25335.sh &&\
chmod +x ./l_oneDPL_p_2022.0.0.25335.sh && \
./l_oneDPL_p_2022.0.0.25335.sh -a -s --eula accept && \
rm l_oneDPL_p_2022.0.0.25335.sh
# Install oneDPL
ENV ONE_DPL_DIR=/opt/onedpl
RUN . /opt/intel/oneapi/setvars.sh --include-intel-llvm && \
ONE_DPL_VERSION=oneDPL-2022.2.0 && \
ONE_DPL_URL=https://github.com/oneapi-src/oneDPL/archive && \
ONE_DPL_ARCHIVE=${ONE_DPL_VERSION}-rc1.tar.gz && \
SCRATCH_DIR=/scratch && mkdir -p ${SCRATCH_DIR} && cd ${SCRATCH_DIR} && \
wget --quiet ${ONE_DPL_URL}/${ONE_DPL_ARCHIVE} && \
mkdir onedpl && \
tar -xf ${ONE_DPL_ARCHIVE} -C onedpl --strip-components=1 && cd onedpl && \
mkdir build && cd build && \
cmake -DCMAKE_CXX_COMPILER=icpx -DCMAKE_CXX_FLAGS="-w" -DCMAKE_INSTALL_PREFIX=${ONE_DPL_DIR} -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=TRUE -DONEDPL_BACKEND="dpcpp_only" .. && \
make -j${NPROCS} install && \
rm -rf ${SCRATCH_DIR}

# Set up environment variables to avoid using setvars.sh in CI
# clang++
Expand Down

0 comments on commit 51fe019

Please sign in to comment.