From d58f08ac3a469c7658fb720ab09314dbc0e7cfd8 Mon Sep 17 00:00:00 2001 From: Hyo-Kyung Lee Date: Wed, 27 Sep 2023 09:44:30 -0500 Subject: [PATCH] ci:add icx cmake sf debug --- .github/workflows/linux-icx-sf-debug.yml | 70 ++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/linux-icx-sf-debug.yml diff --git a/.github/workflows/linux-icx-sf-debug.yml b/.github/workflows/linux-icx-sf-debug.yml new file mode 100644 index 00000000000..04b5ab138ff --- /dev/null +++ b/.github/workflows/linux-icx-sf-debug.yml @@ -0,0 +1,70 @@ +name: linux CMake icx sf debug + +on: + workflow_dispatch: + schedule: + - cron: "6 0 * * *" + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: add oneAPI to apt + shell: bash + run: | + cd /tmp + wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + sudo add-apt-repository -y "deb https://apt.repos.intel.com/oneapi all main" + + - name: install oneAPI dpcpp and fortran compiler + shell: bash + run: | + sudo apt update + sudo apt install -y intel-oneapi-compiler-dpcpp-cpp + sudo apt install -y intel-oneapi-compiler-fortran + sudo apt install -y intel-oneapi-mpi-devel + + - name: install oneAPI MKL library + shell: bash + run: | + sudo apt install -y intel-oneapi-mkl-devel + + - name: configure + shell: bash + run: | + source /opt/intel/oneapi/setvars.sh + export PATH=$PATH:/opt/intel/oneapi/mpi/2021.10.0/bin:/opt/intel/oneapi/compiler/2023.2.1/linux/bin + cmake -S . -B build \ + -DCMAKE_BUILD_TYPE="Debug" \ + -DCMAKE_C_COMPILER=icx \ + -DCMAKE_CXX_COMPILER=dpcpp \ + -DCMAKE_Fortran_COMPILER=ifx \ + -DCMAKE_INSTALL_PREFIX=install \ + -DHDF5_BUILD_FORTRAN=ON \ + -DHDF5_ENABLE_PARALLEL=ON \ + -DHDF5_ENABLE_SUBFILING_VFD:BOOL=ON \ + -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF \ + -DHDF5_BUILD_HL_LIB=ON \ + -DMKL_ROOT="/opt/intel/oneapi/mkl/latest" \ + -DTBB_ROOT="/opt/intel/oneapi/tbb/latest" + + - name: build + shell: bash + run: | + source /opt/intel/oneapi/setvars.sh + cmake --build build + + - name: test + shell: bash + run: | + source /opt/intel/oneapi/setvars.sh + export SYCL_DEVICE_FILTER=opencl.cpu + export LD_LIBRARY_PATH=/opt/intel/oneapi/compiler/2023.2.1/linux/compiler/lib/intel64_lin/:$LD_LIBRARY_PATH + ctest --test-dir build --output-on-failure \ No newline at end of file