Skip to content

Commit 2b923ec

Browse files
authored
Re-enable mhp-bench (#746)
* re-enable mhp bench * disable not working mhp benchmarks * add timeout for the mhp-bench and add jira issue IDs`
1 parent e1de5e9 commit 2b923ec

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

benchmarks/gbench/common/distributed_vector.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ void check_reduce(T actual) {
163163
}
164164
}
165165

166-
template <class... BackendT> static void Reduce_DR(benchmark::State &state) {
166+
template <class... BackendT>
167+
[[maybe_unused]] static void Reduce_DR(benchmark::State &state) {
167168
T actual{};
168169
xhp::distributed_vector<T, BackendT...> src(default_vector_size, fill);
169170
Stats stats(state, sizeof(T) * src.size(), 0);
@@ -175,7 +176,8 @@ template <class... BackendT> static void Reduce_DR(benchmark::State &state) {
175176
}
176177
check_reduce(actual);
177178
}
178-
DR_BENCHMARK(Reduce_DR);
179+
// disabled due to DRA-134
180+
// DR_BENCHMARK(Reduce_DR);
179181

180182
#ifdef DRISHMEM
181183
DR_BENCHMARK(Reduce_DR<dr::mhp::IshmemBackend>)->Name("Reduce_DR_ishmem");

benchmarks/gbench/mhp/CMakeLists.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ add_executable(
1818
stencil_1d.cpp
1919
stencil_2d.cpp
2020
chunk.cpp
21-
mdspan.cpp
21+
# mdspan.cpp
2222
mpi.cpp)
2323
# cmake-format: on
2424

25+
# disabled with SYCL due to DRA-135
26+
if(NOT ENABLE_SYCL)
27+
target_sources(mhp-bench PRIVATE mdspan.cpp)
28+
endif()
29+
2530
if(ENABLE_SYCL)
2631
target_sources(mhp-bench PRIVATE fft3d.cpp)
2732
endif()
@@ -61,13 +66,13 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT MPI_IMPL STREQUAL "openmpi")
6166
# of static column size for stencil2D disable DPL benchmarks because we get
6267
# intermittent fails with: ONEAPI_DEVICE_SELECTOR=opencl:cpu mpirun -n 1
6368
# ./mhp-bench --vector-size 30000 --rows 100 --columns 100 --check
64-
add_mhp_disabled_ctest(
65-
NAME mhp-bench TARGS --vector-size 30000 --rows 100 --columns 100 --check
66-
--benchmark_filter=-FFT3D.*)
69+
add_mhp_ctest(
70+
NAME mhp-bench TIMEOUT 200 TARGS --vector-size 30000 --rows 100 --columns
71+
100 --check --benchmark_filter=-FFT3D.*)
6772
if(ENABLE_SYCL)
68-
add_mhp_disabled_ctest(
69-
NAME mhp-bench SYCL TARGS --vector-size 30000 --rows 100 --columns 100
70-
--check --benchmark_filter=-.*DPL.*)
73+
add_mhp_ctest(
74+
NAME mhp-bench TIMEOUT 200 SYCL TARGS --vector-size 30000 --rows 100
75+
--columns 100 --check --benchmark_filter=-.*DPL.*)
7176
endif()
7277
endif()
7378

benchmarks/gbench/mhp/shallow_water.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,8 @@ int main(int argc, char *argv[]) {
12861286

12871287
static void ShallowWater_DR(benchmark::State &state) {
12881288

1289-
int n = 1400;
1289+
// changed from 1400 to reduce CI time
1290+
int n = 140;
12901291
std::size_t nread, nwrite, nflop;
12911292
ShallowWater::calculate_complexity(n, n, nread, nwrite, nflop);
12921293
Stats stats(state, nread, nwrite, nflop);

benchmarks/gbench/mhp/stencil_2d.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ DR_BENCHMARK(Stencil2D_Reference);
465465
// Distributed vector of floats. Granularity ensures segments contain
466466
// whole rows. Explicitly process segments SPMD-style with SYCL
467467
//
468-
static void Stencil2D_SegmentedSYCL_DR(benchmark::State &state) {
468+
[[maybe_unused]] static void
469+
Stencil2D_SegmentedSYCL_DR(benchmark::State &state) {
469470
auto s = default_shape();
470471
auto rows = s[0];
471472
auto cols = s[1];
@@ -506,7 +507,7 @@ static void Stencil2D_SegmentedSYCL_DR(benchmark::State &state) {
506507
// checker.check(stencil_steps % 2 ? b : a);
507508
}
508509
}
509-
510-
DR_BENCHMARK(Stencil2D_SegmentedSYCL_DR);
510+
// disabled due to DRA-136
511+
// DR_BENCHMARK(Stencil2D_SegmentedSYCL_DR);
511512

512513
#endif // SYCL_LANGUAGE_VERSION

0 commit comments

Comments
 (0)