From a55a9c543fef79b0d5d4a6bb1f0ce6c75368cef9 Mon Sep 17 00:00:00 2001 From: Rich Hornung Date: Wed, 17 Jul 2024 13:50:05 -0700 Subject: [PATCH] Add intel and intel-sycl checks --- .github/workflows/build.yml | 2 +- Dockerfile | 64 ++++++++++++++++++------------------- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f5b034cfe..97bee19f10 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ jobs: build_docker: strategy: matrix: - target: [gcc12, gcc13, clang13, clang14_debug] + target: [gcc12, gcc13, clang13, clang14_debug, clang15, intel2024, intel2024_sycl] runs-on: ubuntu-latest steps: - run: | diff --git a/Dockerfile b/Dockerfile index f0b7a28b18..22c1fdccfc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,51 +7,50 @@ FROM ghcr.io/llnl/radiuss:ubuntu-22.04-gcc-12 AS gcc12 ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN cmake -DCMAKE_CXX_COMPILER=g++ -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On .. && \ - make -j 6 &&\ +RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ ctest -T test --output-on-failure FROM ghcr.io/llnl/radiuss:ubuntu-22.04-gcc-13 AS gcc13 ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN cmake -DCMAKE_CXX_COMPILER=g++ -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On .. && \ - make -j 6 &&\ +RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ ctest -T test --output-on-failure -FROM ghcr.io/rse-ops/clang-ubuntu-22.04:llvm-13.0.0 AS clang13 +FROM ghcr.io/llnl/radiuss:clang-13-ubuntu-22.04 AS clang13 ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN . /opt/spack/share/spack/setup-env.sh && export LD_LIBRARY_PATH=/opt/view/lib:$LD_LIBRARY_PATH && \ - cmake -DCMAKE_CXX_COMPILER=clang++ -DENABLE_OPENMP=On -DCMAKE_BUILD_TYPE=Release .. && \ - make -j 6 &&\ +RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ ctest -T test --output-on-failure FROM ghcr.io/llnl/radiuss:clang-14-ubuntu-22.04 AS clang14_debug ENV GTEST_COLOR=1 COPY . /home/raja/workspace WORKDIR /home/raja/workspace/build -RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENMP=On .. && \ - make -j 6 &&\ +RUN cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ ctest -T test --output-on-failure -#FROM ghcr.io/llnl/radiuss:clang-14-ubuntu-22.04 AS clang14 -#ENV GTEST_COLOR=1 -#COPY . /home/raja/workspace -#WORKDIR /home/raja/workspace/build -#RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DENABLE_OPENMP=On .. && \ -# make -j 6 &&\ -# ctest -T test --output-on-failure +FROM ghcr.io/llnl/radiuss:clang-15-ubuntu-22.04 AS clang15 +ENV GTEST_COLOR=1 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DENABLE_OPENMP=On .. && \ + make -j 16 &&\ + ctest -T test --output-on-failure -## TODO: Figure out why OpenMP does not work here.... -#FROM ghcr.io/llnl/radiuss:clang-15-ubuntu-22.04 AS clang15 -#ENV GTEST_COLOR=1 -#COPY . /home/raja/workspace -#WORKDIR /home/raja/workspace/build -#RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DENABLE_OPENMP=On .. && \ -# make -j 6 &&\ -# ctest -T test --output-on-failure +FROM ghcr.io/llnl/radiuss:intel-2024.0-ubuntu-20.04 AS intel2024 +ENV GTEST_COLOR=1 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN bin/bash -c "source /opt/intel/oneapi/setvars.sh 2>&1 > /dev/null && \ + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=icpx -DENABLE_OPENMP=On .. && \ + make -j 8 &&\ + ctest -T test --output-on-failure" ##FROM ghcr.io/rse-ops/cuda:cuda-10.1.243-ubuntu-18.04 AS nvcc10.1.243 ##ENV GTEST_COLOR=1 @@ -90,11 +89,10 @@ RUN cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DENABLE_OPENMP= ## make -j 6 && \ ## cd .. && rm -rf build -#FROM ghcr.io/rse-ops/intel-ubuntu-22.04:intel-2023.2.1 AS sycl -#ENV GTEST_COLOR=1 -#COPY . /home/raja/workspace -#WORKDIR /home/raja/workspace/build -#RUN /bin/bash -c "source /opt/view/setvars.sh && \ -# cmake -DCMAKE_CXX_COMPILER=dpcpp -DRAJA_ENABLE_SYCL=On -DENABLE_OPENMP=Off -DENABLE_ALL_WARNINGS=Off -DBLT_CXX_STD=c++17 .. && \ -# make -j 6" && \ -# cd .. && rm -rf build +FROM ghcr.io/llnl/radiuss:intel-2024.0-ubuntu-20.04 AS intel2024_sycl +ENV GTEST_COLOR=1 +COPY . /home/raja/workspace +WORKDIR /home/raja/workspace/build +RUN bin/bash -c "source /opt/intel/oneapi/setvars.sh 2>&1 > /dev/null && \ + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=dpcpp -DENABLE_OPENMP=Off -DRAJA_ENABLE_SYCL=On -DBLT_CXX_STD=c++17 .. && \ + make -j 16"