From 6b9c0d5d2c9ed3321f9f3d3d8196e3c1bd896269 Mon Sep 17 00:00:00 2001 From: Christos Konstantinos Matzoros Date: Thu, 25 Sep 2025 13:17:33 +0200 Subject: [PATCH 1/4] Add GitHub Actions CI workflow --- .github/workflows/ci.yml | 149 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..6d2b7d1f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,149 @@ +name: OSP CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + make gcc g++ git libboost-all-dev \ + doxygen graphviz python3-pip libeigen3-dev + pip3 install --upgrade pip + pip3 install cmake==3.21.3 + + - name: Configure (CMake) + run: cmake -S . -B build + + - name: Build + run: cmake --build build -j$(nproc) + + test: + runs-on: ubuntu-20.04 + needs: build + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + make gcc g++ git libboost-all-dev \ + doxygen graphviz python3-pip libeigen3-dev + pip3 install --upgrade pip + pip3 install cmake==3.21.3 + + - name: Configure (CMake) + run: cmake -S . -B build -DBUILD_TESTS=ON + + - name: Build tests + run: cmake --build build --target build_tests -j$(nproc) + + - name: Run tests + run: cd build && ctest --output-on-failure --output-junit test_results.xml + continue-on-error: true + + - name: Upload test results + uses: actions/upload-artifact@v4 + with: + name: test-results + path: build/test_results.xml + + test_simple_greedy_small_dag: + runs-on: ubuntu-20.04 + needs: build + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + make gcc g++ git libboost-all-dev \ + libeigen3-dev python3-pip + pip3 install cmake==3.21.3 + + - name: Configure (CMake) + run: cmake -S . -B build + + - name: Build executables + run: cmake --build build --target OneStopParallel OneStopParallel_Partition -j$(nproc) + + - name: Run simple DAG test + run: | + cd build + ./OneStopParallel \ + --inputDag ../data/spaa/tiny/instance_bicgstab.txt \ + --inputMachine ../data/machine_params/p3.txt \ + --Serial --GreedyBsp --GreedyBspFillup --GreedyBspFillupLK --GreedyBspLocking \ + --GreedyBspLockingLK --GreedyVariance --GreedyVarianceFillup --GreedyVarianceFillupLK \ + --GreedyEtf --GreedyCilk --GreedyCilkLK --GreedyMeta --MultiHC --SquashBspGreedyHC \ + --SquashBspGreedyLK --SquashBspGreedy --Wavefront --HDagg --BalDMixR --CoBalDMixR \ + --CoBalDMixRLK --BestGreedyLK --SquashComboBestGreedyLK --FunnelBspGreedy \ + --FunnelVarianceGreedy --HDaggCoarseLockGLK+HC --HDaggCoarseCobaldLK+HC \ + --FunnelCoarseBspGLK+HC --FunnelCoarseVarGLK+HC --FunnelCoarseCobaldLK+HC \ + --ReverseGreedyVarianceFillup --GreedyBspGrowLocal --GreedyBspGrowLocalAutoCores + ./OneStopParallel_Partition \ + --inputDag ../data/spaa/tiny/instance_bicgstab.txt \ + --inputMachine ../data/machine_params/p3.txt \ + --VariancePartitioner --LightEdgeVariancePartitioner + + docs: + runs-on: ubuntu-20.04 + needs: build + if: github.ref == 'refs/heads/main' + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends \ + doxygen graphviz libeigen3-dev cmake g++ + + - name: Build docs + run: | + cmake -S . -B build + cmake --build build --target doc + mkdir -p public + cp -r doc/html/* public + + - name: Upload docs artifact + uses: actions/upload-pages-artifact@v3 + with: + path: public + + deploy: + runs-on: ubuntu-20.04 + needs: docs + if: github.ref == 'refs/heads/main' + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 35322fd9e89292a7aca95c65991c7f016043291c Mon Sep 17 00:00:00 2001 From: Christos Konstantinos Matzoros Date: Thu, 25 Sep 2025 13:28:14 +0200 Subject: [PATCH 2/4] Fix CI trigger to run on master branch --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d2b7d1f..72b52b10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: OSP CI on: push: - branches: [ main ] + branches: [ master ] pull_request: - branches: [ main ] + branches: [ master ] jobs: build: From 83e8a1dcf38d4890a96eb958bb62ba37bd3954a6 Mon Sep 17 00:00:00 2001 From: Christos Konstantinos Matzoros Date: Thu, 25 Sep 2025 13:31:08 +0200 Subject: [PATCH 3/4] Fix docs/deploy conditions to use master branch --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72b52b10..9cb7fd61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,7 @@ jobs: docs: runs-on: ubuntu-20.04 needs: build - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/master' steps: - name: Checkout source @@ -133,7 +133,7 @@ jobs: deploy: runs-on: ubuntu-20.04 needs: docs - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/master' permissions: pages: write From a602b52abbc672a3ecf908af575f8b1807c3a5ba Mon Sep 17 00:00:00 2001 From: Christos Konstantinos Matzoros Date: Thu, 25 Sep 2025 13:57:52 +0200 Subject: [PATCH 4/4] Changing executable command and parameters for the CI --- .github/workflows/ci.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cb7fd61..7b603cdd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,21 +87,11 @@ jobs: - name: Run simple DAG test run: | cd build - ./OneStopParallel \ - --inputDag ../data/spaa/tiny/instance_bicgstab.txt \ - --inputMachine ../data/machine_params/p3.txt \ - --Serial --GreedyBsp --GreedyBspFillup --GreedyBspFillupLK --GreedyBspLocking \ - --GreedyBspLockingLK --GreedyVariance --GreedyVarianceFillup --GreedyVarianceFillupLK \ - --GreedyEtf --GreedyCilk --GreedyCilkLK --GreedyMeta --MultiHC --SquashBspGreedyHC \ - --SquashBspGreedyLK --SquashBspGreedy --Wavefront --HDagg --BalDMixR --CoBalDMixR \ - --CoBalDMixRLK --BestGreedyLK --SquashComboBestGreedyLK --FunnelBspGreedy \ - --FunnelVarianceGreedy --HDaggCoarseLockGLK+HC --HDaggCoarseCobaldLK+HC \ - --FunnelCoarseBspGLK+HC --FunnelCoarseVarGLK+HC --FunnelCoarseCobaldLK+HC \ - --ReverseGreedyVarianceFillup --GreedyBspGrowLocal --GreedyBspGrowLocalAutoCores - ./OneStopParallel_Partition \ - --inputDag ../data/spaa/tiny/instance_bicgstab.txt \ - --inputMachine ../data/machine_params/p3.txt \ - --VariancePartitioner --LightEdgeVariancePartitioner + ./apps/osp \ + --inputDag ../data/spaa/tiny/instance_bicgstab.hdag \ + --inputMachine ../data/machine_params/p3.arch \ + --Serial --GreedyBsp --BspLocking --GrowLocal --Variance --Cilk --Etf --GreedyChildren \ + --MultiHC --SarkarLockingHC --GreedyChildrenKL --GrowLocalKL --GreedyBspHC --FunnelLocking docs: runs-on: ubuntu-20.04