Skip to content

Commit 0bf34df

Browse files
committed
WIP 2024-04-24 śro 11:52
1 parent 1fd0c9e commit 0bf34df

File tree

6 files changed

+28
-17
lines changed

6 files changed

+28
-17
lines changed

CMakeLists.txt

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ add_custom_target(shp-all-tests)
146146
add_custom_target(all-tests DEPENDS mhp-all-tests shp-all-tests)
147147

148148
function(add_mhp_ctest_impl)
149-
set(options OFFLOAD GDB SYCL DRLOGS)
149+
set(options OFFLOAD GDB SYCL DRLOGS TESTLABEL)
150150
set(oneValueArgs NAME TEST_NAME NPROC)
151151
set(multiValueArgs TARGS) # Test ARGumentS
152152

@@ -220,19 +220,28 @@ function(add_mhp_ctest_impl)
220220
${MPIEXEC_PREFLAGS} ${extra_mpiflags} ${wrapper_script} ./${AMC_NAME}
221221
${drlogs_param} ${sycl_param} ${AMC_TARGS} COMMAND_EXPAND_LISTS)
222222

223-
if(NOT AMC_GDB AND NOT AMC_DRLOGS)
223+
if(AMC_TESTLABEL)
224224
set_property(TEST ${AMC_TEST_NAME} PROPERTY LABELS TESTLABEL MHP)
225225
endif()
226226
add_dependencies(mhp-all-tests ${AMC_NAME})
227227
endfunction()
228228

229-
function(add_mhp_ctest)
230-
add_mhp_ctest_impl(${ARGN})
229+
function(add_mhp_auxiliary_ctests)
231230
add_mhp_ctest_impl(${ARGN} GDB)
232231
add_mhp_ctest_impl(${ARGN} GDB DRLOGS)
233232
add_mhp_ctest_impl(${ARGN} DRLOGS)
234233
endfunction()
235234

235+
function(add_mhp_ctest)
236+
add_mhp_ctest_impl(${ARGN} TESTLABEL)
237+
add_mhp_auxiliary_ctests(${ARGN})
238+
endfunction()
239+
240+
function(add_mhp_disabled_ctest)
241+
add_mhp_ctest_impl(${ARGN})
242+
add_mhp_auxiliary_ctests(${ARGN})
243+
endfunction()
244+
236245
if(ENABLE_ISHMEM)
237246

238247
set(OFI_PROVIDER
@@ -334,12 +343,16 @@ if(ENABLE_ISHMEM)
334343

335344
endif()
336345

337-
function(add_shp_ctest test_name name)
346+
function(add_shp_disabled_ctest test_name name)
338347
add_test(NAME ${test_name} COMMAND ./${name} ${ARGN})
339-
set_property(TEST ${test_name} PROPERTY LABELS TESTLABEL SHP)
340348
add_dependencies(shp-all-tests ${name})
341349
endfunction()
342350

351+
function(add_shp_ctest test_name name)
352+
add_shp_disabled_ctest(${test_name} ${name} ${ARGN})
353+
set_property(TEST ${test_name} PROPERTY LABELS TESTLABEL SHP)
354+
endfunction()
355+
343356
install(DIRECTORY include DESTINATION ${CMAKE_INSTALL_PREFIX})
344357

345358
add_subdirectory(include)

benchmarks/gbench/mhp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT MPI_IMPL STREQUAL "openmpi")
6161
# of static column size for stencil2D disable DPL benchmarks because we get
6262
# intermittent fails with: ONEAPI_DEVICE_SELECTOR=opencl:cpu mpirun -n 1
6363
# ./mhp-bench --vector-size 30000 --rows 100 --columns 100 --check
64-
add_mhp_ctest(
64+
add_mhp_disabled_ctest(
6565
NAME mhp-bench TARGS --vector-size 30000 --rows 100 --columns 100 --check
6666
--benchmark_filter=-FFT3D.*)
6767
if(ENABLE_SYCL)
68-
add_mhp_ctest(
68+
add_mhp_disabled_ctest(
6969
NAME mhp-bench SYCL TARGS --vector-size 30000 --rows 100 --columns 100
7070
--check --benchmark_filter=-.*DPL.*)
7171
endif()

benchmarks/gbench/mhp/stencil_2d.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,6 @@ static void Stencil2D_Reference(benchmark::State &state) {
461461

462462
DR_BENCHMARK(Stencil2D_Reference);
463463

464-
/*
465-
// Disbled due to timeout
466-
467464
//
468465
// Distributed vector of floats. Granularity ensures segments contain
469466
// whole rows. Explicitly process segments SPMD-style with SYCL
@@ -511,5 +508,5 @@ static void Stencil2D_SegmentedSYCL_DR(benchmark::State &state) {
511508
}
512509

513510
DR_BENCHMARK(Stencil2D_SegmentedSYCL_DR);
514-
*/
511+
515512
#endif // SYCL_LANGUAGE_VERSION

benchmarks/gbench/shp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if(NOT ENABLE_CUDA)
3434
target_sources(shp-bench PRIVATE ../common/black_scholes.cpp)
3535
endif()
3636
target_link_libraries(shp-bench shp-benchmark)
37-
add_shp_ctest(shp-bench shp-bench --vector-size 200000 --check)
37+
add_shp_disabled_ctest(shp-bench shp-bench --vector-size 200000 --check)
3838

3939
# builds only 1 benchmark for quick testing. Change this to the benchmark you
4040
# are testing

scripts/run_command_on_compute_node.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ cd ${PBS_O_WORKDIR:-.}
1212
unset SLURM_TASKS_PER_NODE
1313
unset SLURM_JOBID
1414

15+
# workaround for missing libaccel-config.so.1 on jfpvc compute nodes
16+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/dmozog/usr/lib64/
17+
1518
echo "Host: " $(hostname)
1619
echo "CWD: " $(pwd)
1720
module list

test/gtest/shp/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ foreach(test-exec IN ITEMS shp-tests shp-tests-3 shp-quick-test)
2626
endforeach()
2727

2828
# timeout in SHP tests
29-
30-
# add_shp_ctest(shp-tests shp-tests)
31-
32-
# add_shp_ctest(shp-tests-3 shp-tests --devicesCount 3)
29+
add_shp_disabled_ctest(shp-tests shp-tests)
30+
add_shp_disabled_ctest(shp-tests-3 shp-tests --devicesCount 3)
3331

3432
add_shp_ctest(shp-tests-3-only shp-tests-3 --devicesCount 3)

0 commit comments

Comments
 (0)