|
88 | 88 |
|
89 | 89 | - name: Run tests under valgrind
|
90 | 90 | run: ${{github.workspace}}/test/test_valgrind.sh ${{github.workspace}} ${{github.workspace}}/build ${{matrix.tool}}
|
| 91 | + |
| 92 | + icx: |
| 93 | + name: ICX |
| 94 | + env: |
| 95 | + VCPKG_PATH: "${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows" |
| 96 | + BUILD_DIR : "${{github.workspace}}/build" |
| 97 | + strategy: |
| 98 | + matrix: |
| 99 | + os: ['windows-2019', 'windows-2022'] |
| 100 | + build_type: [Debug] |
| 101 | + compiler: [{c: icx, cxx: icx}] |
| 102 | + shared_library: ['ON', 'OFF'] |
| 103 | + include: |
| 104 | + - os: windows-2022 |
| 105 | + build_type: Release |
| 106 | + compiler: {c: icx, cxx: icx} |
| 107 | + shared_library: 'ON' |
| 108 | + |
| 109 | + runs-on: ${{matrix.os}} |
| 110 | + |
| 111 | + steps: |
| 112 | + - name: Checkout |
| 113 | + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
| 114 | + with: |
| 115 | + fetch-depth: 0 |
| 116 | + |
| 117 | + - name: Initialize vcpkg |
| 118 | + uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5 |
| 119 | + with: |
| 120 | + vcpkgGitCommitId: 3dd44b931481d7a8e9ba412621fa810232b66289 |
| 121 | + vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg |
| 122 | + vcpkgJsonGlob: '**/vcpkg.json' |
| 123 | + |
| 124 | + - name: Install dependencies |
| 125 | + run: vcpkg install |
| 126 | + |
| 127 | + - name: Install Ninja |
| 128 | + uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5 |
| 129 | + |
| 130 | + - name: Download icx compiler |
| 131 | + env: |
| 132 | + # Link source: https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html |
| 133 | + CMPLR_LINK: "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/15a35578-2f9a-4f39-804b-3906e0a5f8fc/w_dpcpp-cpp-compiler_p_2024.2.1.83_offline.exe" |
| 134 | + run: | |
| 135 | + Invoke-WebRequest -Uri "${{ env.CMPLR_LINK }}" -OutFile compiler_install.exe |
| 136 | +
|
| 137 | + - name: Install icx compiler |
| 138 | + shell: cmd |
| 139 | + run: | |
| 140 | + start /b /wait .\compiler_install.exe -s -x -f extracted --log extract.log |
| 141 | + extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 ^ |
| 142 | + -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=. |
| 143 | +
|
| 144 | + - name: Configure build |
| 145 | + shell: cmd |
| 146 | + run: | |
| 147 | + call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
| 148 | + call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
| 149 | + cmake ^ |
| 150 | + -B ${{env.BUILD_DIR}} ^ |
| 151 | + -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}" ^ |
| 152 | + -DCMAKE_C_COMPILER=${{matrix.compiler.c}} ^ |
| 153 | + -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} ^ |
| 154 | + -G Ninja ^ |
| 155 | + -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} ^ |
| 156 | + -DUMF_FORMAT_CODE_STYLE=OFF ^ |
| 157 | + -DUMF_DEVELOPER_MODE=ON ^ |
| 158 | + -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON ^ |
| 159 | + -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON ^ |
| 160 | + -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON ^ |
| 161 | + -DUMF_BUILD_CUDA_PROVIDER=ON ^ |
| 162 | + -DUMF_TESTS_FAIL_ON_SKIP=ON |
| 163 | +
|
| 164 | + - name: Build UMF |
| 165 | + shell: cmd |
| 166 | + run: | |
| 167 | + call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
| 168 | + call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
| 169 | + cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% |
| 170 | +
|
| 171 | + - name: Run tests |
| 172 | + shell: cmd |
| 173 | + working-directory: ${{env.BUILD_DIR}} |
| 174 | + run: | |
| 175 | + call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" |
| 176 | + call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat" |
| 177 | + ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test |
0 commit comments