Merge pull request #83 from tpn/78-online-cuda-gpu-bench #130
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| jobs: | |
| build-test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Install Ninja | |
| run: choco install ninja -y | |
| - name: Setup MSVC | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| vsversion: "2022" | |
| - name: Configure | |
| run: cmake --preset ninja-multi | |
| - name: Build (Release) | |
| run: cmake --build --preset ninja-release --parallel | |
| - name: Test (Release) | |
| run: ctest --test-dir build -C Release --output-on-failure --timeout 300 | |
| - name: Examples (RawDog JIT + LLVM JIT + sqlite-online-jit) | |
| shell: pwsh | |
| run: | | |
| $root = "${{ github.workspace }}" | |
| cmake -S examples/cpp-console-online-rawdog-jit ` | |
| -B build/examples/cpp-console-online-rawdog-jit ` | |
| -G "Ninja Multi-Config" ` | |
| -DPERFECTHASH_ROOT="$root" ` | |
| -DPerfectHashOnlineRawdog_ROOT="$root/build" | |
| cmake --build build/examples/cpp-console-online-rawdog-jit --config Release --parallel | |
| & "$root/build/examples/cpp-console-online-rawdog-jit/Release/cpp-console-online-rawdog-jit.exe" | |
| cmake -S examples/cpp-console-online-jit ` | |
| -B build/examples/cpp-console-online-jit ` | |
| -G "Ninja Multi-Config" ` | |
| -DPERFECTHASH_ROOT="$root" ` | |
| -DPerfectHashOnlineJit_ROOT="$root/build" | |
| cmake --build build/examples/cpp-console-online-jit --config Release --parallel | |
| & "$root/build/examples/cpp-console-online-jit/Release/cpp-console-online-jit.exe" --backend rawdog-jit --vector-width 16 | |
| & "$root/build/examples/cpp-console-online-jit/Release/cpp-console-online-jit.exe" --backend llvm-jit --vector-width 1 | |
| cmake -S examples/sqlite-online-jit ` | |
| -B build/examples/sqlite-online-jit ` | |
| -G "Ninja Multi-Config" ` | |
| -DPERFECTHASH_ROOT="$root" ` | |
| -DPerfectHashOnlineJit_ROOT="$root/build" | |
| cmake --build build/examples/sqlite-online-jit --config Release --parallel | |
| & "$root/build/examples/sqlite-online-jit/Release/sqlite-online-jit.exe" --backend rawdog-jit --dim-size 2000 --fact-size 20000 --iterations 2 --vector-width 16 | |
| & "$root/build/examples/sqlite-online-jit/Release/sqlite-online-jit.exe" --backend llvm-jit --dim-size 2000 --fact-size 20000 --iterations 2 --vector-width 1 | |
| & "$root/build/examples/sqlite-online-jit/Release/sqlite-online-jit.exe" --matrix --dim-size 512 --fact-size 4096 --iterations 1 |