Skip to content

Commit 34b591b

Browse files
authored
rename: 'mhp' -> 'mp' and 'shp' -> 'sp' (#804)
* rename - 'mhp' to 'mp' * rename - 'shp' to 'sp'
1 parent 6bd2d1d commit 34b591b

File tree

228 files changed

+2653
-2669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+2653
-2669
lines changed

.github/workflows/onedpl.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ jobs:
3030
run: |
3131
. /opt/intel/oneapi/setvars.sh
3232
cmake -B dr/build -DCMAKE_CXX_STANDARD=23 -DCMAKE_CXX_COMPILER=icpx -DONEDPL_BACKEND=dpcpp -DCMAKE_BUILD_TYPE=Release dr
33-
- name: Build SHP tests
33+
- name: Build SP tests
3434
run: |
3535
. /opt/intel/oneapi/setvars.sh
36-
cmake --build dr/build --target shp-all-tests -- -j
37-
- name: Run SHP tests
36+
cmake --build dr/build --target sp-all-tests -- -j
37+
- name: Run SP tests
3838
run: |
3939
. /opt/intel/oneapi/setvars.sh
40-
ctest --test-dir dr/build -L SHP -j 4
40+
ctest --test-dir dr/build -L SP -j 4
4141
# srun -p cluster dr/scripts/run_command_on_compute_node.sh dr/build/Testing/tests.outerr.txt ctest --test-dir dr/build -L TESTLABEL -j 4
4242
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
4343
if: always()
4444
with:
4545
name: log-pvc-impi-icpx
4646
path: |
4747
dr/build/CMakeCache.txt
48-
dr/build/test/distributed-ranges/shp/*.log
48+
dr/build/test/distributed-ranges/sp/*.log

.github/workflows/pr.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
# name: log-gcc-${{ env.CXX }}
6262
# path: |
6363
# build/Testing
64-
# build/test/gtest/mhp/*.log
65-
# build/benchmarks/gbench/mhp/*.log
66-
# build/examples/mhp/*.log
64+
# build/test/gtest/mp/*.log
65+
# build/benchmarks/gbench/mp/*.log
66+
# build/examples/mp/*.log
6767

6868
pvc_unit_tests:
6969
runs-on: gkpvc
@@ -102,12 +102,12 @@ jobs:
102102
build/CMakeCache.txt
103103
build/envdump.txt
104104
build/Testing
105-
build/test/gtest/mhp/*.log
106-
build/benchmarks/gbench/mhp/*.log
107-
build/examples/mhp/*.log
108-
build/test/gtest/shp/*.log
109-
build/benchmarks/gbench/shp/*.log
110-
build/examples/shp/*.log
105+
build/test/gtest/mp/*.log
106+
build/benchmarks/gbench/mp/*.log
107+
build/examples/mp/*.log
108+
build/test/gtest/sp/*.log
109+
build/benchmarks/gbench/sp/*.log
110+
build/examples/sp/*.log
111111
112112
# disabled due to DRA-164
113113
# ishmem_unit_tests:
@@ -130,20 +130,20 @@ jobs:
130130
# run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DENABLE_ISHMEM=on -DENABLE_L0=on -DENABLE_OFI=on -DOFI_PROVIDER=psm3 -DONETILE_PVC=on
131131
# - name: Build ISHMEM
132132
# run: cmake --build build --target shmem -- -j
133-
# - name: Build MHP tests
134-
# run: cmake --build build --target mhp-tests mhp-tests-3 -- -j
135-
# - name: MHP unit tests
136-
# # run: srun -p cluster scripts/run_command_on_compute_node.sh build/Testing/mhptests.outerr.txt ctest --test-dir build -R ^mhp-tests-sycl -L MHP -j 4
137-
# run: ctest --test-dir build -R ^mhp-tests-sycl -L MHP -j 4
133+
# - name: Build MP tests
134+
# run: cmake --build build --target mp-tests mp-tests-3 -- -j
135+
# - name: MP unit tests
136+
# # run: srun -p cluster scripts/run_command_on_compute_node.sh build/Testing/mptests.outerr.txt ctest --test-dir build -R ^mp-tests-sycl -L MP -j 4
137+
# run: ctest --test-dir build -R ^mp-tests-sycl -L MP -j 4
138138
# - uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
139139
# if: always()
140140
# with:
141141
# name: log-ishmem-impi-icpx-${{ matrix.config }}
142142
# path: |
143143
# build/Testing
144-
# build/test/gtest/mhp/*.log
145-
# build/benchmarks/gbench/mhp/*.log
146-
# build/examples/mhp/*.log
144+
# build/test/gtest/mp/*.log
145+
# build/benchmarks/gbench/mp/*.log
146+
# build/examples/mp/*.log
147147

148148
package:
149149
needs: []

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ repos:
7575
always_run: true
7676
- id: dr-style-include
7777
name: dr-style-include
78-
entry: python3 scripts/dr-style.py --Werror --include include/dr/mhp
78+
entry: python3 scripts/dr-style.py --Werror --include include/dr/mp
7979
language: system
8080
pass_filenames: false
8181
always_run: true

CMakeLists.txt

+25-25
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ FetchContent_Declare(
148148
GIT_TAG mdspan-0.6.0)
149149
FetchContent_MakeAvailable(mdspan)
150150

151-
add_custom_target(mhp-all-tests)
152-
add_custom_target(shp-all-tests)
153-
add_custom_target(all-tests DEPENDS mhp-all-tests shp-all-tests)
151+
add_custom_target(mp-all-tests)
152+
add_custom_target(sp-all-tests)
153+
add_custom_target(all-tests DEPENDS mp-all-tests sp-all-tests)
154154

155-
function(add_mhp_ctest_impl)
155+
function(add_mp_ctest_impl)
156156
set(options OFFLOAD GDB SYCL DRLOGS TESTLABEL)
157157
set(oneValueArgs NAME TEST_NAME NPROC TIMEOUT)
158158
set(multiValueArgs TARGS) # Test ARGumentS
@@ -234,25 +234,25 @@ function(add_mhp_ctest_impl)
234234
endif()
235235

236236
if(AMC_TESTLABEL)
237-
set_property(TEST ${AMC_TEST_NAME} PROPERTY LABELS TESTLABEL MHP)
237+
set_property(TEST ${AMC_TEST_NAME} PROPERTY LABELS TESTLABEL MP)
238238
endif()
239-
add_dependencies(mhp-all-tests ${AMC_NAME})
239+
add_dependencies(mp-all-tests ${AMC_NAME})
240240
endfunction()
241241

242-
function(add_mhp_auxiliary_ctests)
243-
add_mhp_ctest_impl(${ARGN} GDB)
244-
add_mhp_ctest_impl(${ARGN} GDB DRLOGS)
245-
add_mhp_ctest_impl(${ARGN} DRLOGS)
242+
function(add_mp_auxiliary_ctests)
243+
add_mp_ctest_impl(${ARGN} GDB)
244+
add_mp_ctest_impl(${ARGN} GDB DRLOGS)
245+
add_mp_ctest_impl(${ARGN} DRLOGS)
246246
endfunction()
247247

248-
function(add_mhp_ctest)
249-
add_mhp_ctest_impl(${ARGN} TESTLABEL)
250-
add_mhp_auxiliary_ctests(${ARGN})
248+
function(add_mp_ctest)
249+
add_mp_ctest_impl(${ARGN} TESTLABEL)
250+
add_mp_auxiliary_ctests(${ARGN})
251251
endfunction()
252252

253-
function(add_mhp_disabled_ctest)
254-
add_mhp_ctest_impl(${ARGN})
255-
add_mhp_auxiliary_ctests(${ARGN})
253+
function(add_mp_disabled_ctest)
254+
add_mp_ctest_impl(${ARGN})
255+
add_mp_auxiliary_ctests(${ARGN})
256256
endfunction()
257257

258258
if(ENABLE_ISHMEM)
@@ -363,14 +363,14 @@ if(ENABLE_ISHMEM)
363363

364364
endif()
365365

366-
function(add_shp_disabled_ctest test_name name)
366+
function(add_sp_disabled_ctest test_name name)
367367
add_test(NAME ${test_name} COMMAND ./${name} ${ARGN})
368-
add_dependencies(shp-all-tests ${name})
368+
add_dependencies(sp-all-tests ${name})
369369
endfunction()
370370

371-
function(add_shp_ctest test_name name)
372-
add_shp_disabled_ctest(${test_name} ${name} ${ARGN})
373-
set_property(TEST ${test_name} PROPERTY LABELS TESTLABEL SHP)
371+
function(add_sp_ctest test_name name)
372+
add_sp_disabled_ctest(${test_name} ${name} ${ARGN})
373+
set_property(TEST ${test_name} PROPERTY LABELS TESTLABEL SP)
374374
endfunction()
375375

376376
install(DIRECTORY include DESTINATION ${CMAKE_INSTALL_PREFIX})
@@ -411,20 +411,20 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
411411
endif()
412412
endif()
413413

414-
add_subdirectory(test/gtest/mhp)
414+
add_subdirectory(test/gtest/mp)
415415

416416
if(ENABLE_SYCL)
417417
# disables rng::detail::box_compress::coalesce which causes rng::box to use
418418
# global non-const variable, which can not be used in SYCL kernels
419419
add_compile_definitions(RANGES_WORKAROUND_MSVC_249830)
420420

421-
add_subdirectory(examples/shp)
422-
add_subdirectory(test/gtest/shp)
421+
add_subdirectory(examples/sp)
422+
add_subdirectory(test/gtest/sp)
423423
endif()
424424

425425
add_subdirectory(examples/serial)
426426
add_subdirectory(test/gtest/serial)
427-
add_subdirectory(examples/mhp)
427+
add_subdirectory(examples/mp)
428428
add_subdirectory(benchmarks/gbench)
429429

430430
# Requires clang, icpx/llvm nightly do not support the tools

benchmarks/gbench/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
2424
add_compile_options(-Wno-error=cuda-compat)
2525
endif()
2626

27-
# mhp is not under ENABLE_SYCL to check benchmarks also compilation in gcc
28-
add_subdirectory(mhp)
27+
# mp is not under ENABLE_SYCL to check benchmarks also compilation in gcc
28+
add_subdirectory(mp)
2929

3030
if(ENABLE_SYCL)
31-
add_subdirectory(shp)
32-
add_custom_target(xhp-bench DEPENDS mhp-bench shp-bench)
31+
add_subdirectory(sp)
32+
add_custom_target(xhp-bench DEPENDS mp-bench sp-bench)
3333
endif()
3434
endif()

benchmarks/gbench/README.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,42 @@ We use google bench for micro-benchmarks.
1010

1111
Show standard google bench options::
1212

13-
./mhp-bench --help
13+
./mp-bench --help
1414

1515
Show custom options::
1616

17-
./mhp-bench --drhelp
17+
./mp-bench --drhelp
1818

1919
See `user guide`_ for more information on google benchmark.
2020

21-
MHP Sample Commands
21+
MP Sample Commands
2222
===================
2323

2424
Run all benchmarks with 2 ranks. Each rank uses a single thread::
2525

26-
mpirun -n 2 ./mhp-bench --benchmark_counters_tabular=true
26+
mpirun -n 2 ./mp-bench --benchmark_counters_tabular=true
2727

2828
Run all benchmarks with 2 ranks. Each rank uses a single SYCL device::
2929

30-
mpirun -n 2 ./mhp-bench --benchmark_counters_tabular=true --sycl
30+
mpirun -n 2 ./mp-bench --benchmark_counters_tabular=true --sycl
3131

3232
Run 2D stencil algorithms::
3333

34-
mpirun -n 2 ./mhp-bench --benchmark_counters_tabular=true --benchmark_filter=Stencil2D
34+
mpirun -n 2 ./mp-bench --benchmark_counters_tabular=true --benchmark_filter=Stencil2D
3535

3636
Run distributed ranges algorithms::
3737

38-
mpirun -n 2 ./mhp-bench --benchmark_counters_tabular=true --benchmark_filter=.*DR
38+
mpirun -n 2 ./mp-bench --benchmark_counters_tabular=true --benchmark_filter=.*DR
3939

4040

41-
SHP Sample Commands
41+
SP Sample Commands
4242
===================
4343

44-
By default, SHP uses all available devices. When running on a 2 socket
45-
CPU system, SHP partitions the root device into 2 devices. Use ``-d``
44+
By default, SP uses all available devices. When running on a 2 socket
45+
CPU system, SP partitions the root device into 2 devices. Use ``-d``
4646
to explicitly control the number of devices::
4747

48-
./shp-bench --benchmark_time_unit=ms --benchmark_counters_tabular=true -d 2
48+
./sp-bench --benchmark_time_unit=ms --benchmark_counters_tabular=true -d 2
4949

5050
Benchmark Variants
5151
==================

benchmarks/gbench/common/distributed_vector.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ template <class... BackendT>
180180
DR_BENCHMARK(Reduce_DR);
181181

182182
#ifdef DRISHMEM
183-
DR_BENCHMARK(Reduce_DR<dr::mhp::IshmemBackend>)->Name("Reduce_DR_ishmem");
183+
DR_BENCHMARK(Reduce_DR<dr::mp::IshmemBackend>)->Name("Reduce_DR_ishmem");
184184
#endif
185185

186186
static void Reduce_max_DR(benchmark::State &state) {
@@ -268,7 +268,7 @@ static void TransformIdentity_Serial(benchmark::State &state) {
268268

269269
DR_BENCHMARK(TransformIdentity_Serial);
270270

271-
#ifndef BENCH_SHP
271+
#ifndef BENCH_SP
272272
// segfault
273273

274274
static void Mul_DR(benchmark::State &state) {

benchmarks/gbench/common/dr_bench.hpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ inline auto device_info(sycl::device device) {
5454

5555
extern bool check_results;
5656

57-
#ifdef BENCH_MHP
57+
#ifdef BENCH_MP
5858
#ifdef SYCL_LANGUAGE_VERSION
5959

60-
inline sycl::context *mhp_global_context_ = nullptr;
60+
inline sycl::context *mp_global_context_ = nullptr;
6161
inline std::vector<sycl::device> devices;
6262

6363
inline sycl::queue get_queue() {
64-
if (mhp_global_context_ != nullptr) {
65-
return sycl::queue(*mhp_global_context_, devices[0]);
64+
if (mp_global_context_ != nullptr) {
65+
return sycl::queue(*mp_global_context_, devices[0]);
6666
}
6767

6868
auto root_devices = sycl::platform().get_devices();
@@ -90,29 +90,29 @@ inline sycl::queue get_queue() {
9090

9191
assert(rng::size(devices) > 0);
9292

93-
mhp_global_context_ = new sycl::context(devices);
94-
return sycl::queue(*mhp_global_context_, devices[0]);
93+
mp_global_context_ = new sycl::context(devices);
94+
return sycl::queue(*mp_global_context_, devices[0]);
9595
}
9696

9797
#endif
9898

99-
#include "dr/mhp.hpp"
99+
#include "dr/mp.hpp"
100100

101-
namespace xhp = dr::mhp;
101+
namespace xhp = dr::mp;
102102

103103
extern std::size_t stencil_steps;
104104
extern std::size_t num_rows;
105105
extern std::size_t num_columns;
106106

107107
#endif
108108

109-
#ifdef BENCH_SHP
109+
#ifdef BENCH_SP
110110

111-
#include "dr/shp.hpp"
111+
#include "dr/sp.hpp"
112112

113-
namespace xhp = dr::shp;
113+
namespace xhp = dr::sp;
114114

115-
inline sycl::queue &get_queue() { return dr::shp::__detail::default_queue(); }
115+
inline sycl::queue &get_queue() { return dr::sp::__detail::default_queue(); }
116116

117117
#endif
118118

benchmarks/gbench/common/sort.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class DRSortFixture : public benchmark::Fixture {
3434
delete vec;
3535

3636
if (!rng::is_sorted(local_vec)) {
37-
state.SkipWithError("mhp sort did not sort the vector");
37+
state.SkipWithError("mp sort did not sort the vector");
3838
}
3939
}
4040
};
@@ -64,8 +64,8 @@ class SyclSortFixture : public benchmark::Fixture {
6464
public:
6565
void SetUp(::benchmark::State &) {
6666
dr::drlog.debug("setting up SyclSortFixture\n");
67-
// when using mhp's get_queue() long execution is observed in this test
68-
// (probably due to JIT), now mhp and shp use their own get_queue-s
67+
// when using mp's get_queue() long execution is observed in this test
68+
// (probably due to JIT), now mp and sp use their own get_queue-s
6969
queue = get_queue();
7070
policy = oneapi::dpl::execution::make_device_policy(queue);
7171
local_vec = std::vector<T>(default_vector_size);

0 commit comments

Comments
 (0)