Skip to content

Commit 219a5fd

Browse files
authored
benchmarking ci fixups (#390)
1 parent 461713b commit 219a5fd

File tree

7 files changed

+120
-280
lines changed

7 files changed

+120
-280
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,29 @@ jobs:
101101
CXX: icpx
102102
steps:
103103
- uses: actions/checkout@v3
104+
- name: Python setup
105+
uses: actions/setup-python@v4
106+
with:
107+
python-version: '3.x'
108+
cache: 'pip'
109+
- name: Install python packages
110+
run: pip install -r requirements.txt
104111
- name: Build
105112
run: srun -p pvc-shared scripts/devcloud-build.sh
106113
- name: Test
107-
# mpi does not like the way SLURM sets environment variables
108114
run: srun -p pvc-shared scripts/devcloud-run.sh
115+
- name: Benchmark
116+
run: srun -p pvc scripts/devcloud-benchmarks.sh
117+
- uses: actions/upload-artifact@v3
118+
with:
119+
name: log-devcloud-bench
120+
path: |
121+
build/benchmarks/gbench/mhp/dr-bench*.json
122+
- uses: actions/upload-artifact@v3
123+
if: always()
124+
with:
125+
name: log-icpx
126+
path: build/Testing
109127

110128
publish:
111129
needs: [checks, clang, gcc, icpx]

.github/workflows/daily.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

benchmarks/gbench/mhp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,9 @@ if(NOT MPI_IMPL STREQUAL "openmpi")
6262
--sycl)
6363
endif()
6464
endif()
65+
66+
add_custom_target(bench DEPENDS bench-results)
67+
add_custom_command(
68+
OUTPUT bench-results
69+
COMMAND python ${CMAKE_SOURCE_DIR}/scripts/dr-bench.py mhp --fork
70+
DEPENDS mhp-bench)

benchmarks/runner/run_benchmarks.py

Lines changed: 0 additions & 230 deletions
This file was deleted.

scripts/devcloud-benchmarks.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#! /bin/bash
2+
3+
# SPDX-FileCopyrightText: Intel Corporation
4+
#
5+
# SPDX-License-Identifier: BSD-3-Clause
6+
source /opt/intel/oneapi/setvars.sh
7+
set -e
8+
hostname
9+
make -C build/benchmarks/gbench/mhp bench

scripts/devcloud-daily.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)