Skip to content

Commit 7cc447d

Browse files
authored
updated README with info how to run benchmarks (#869)
1 parent 50241e8 commit 7cc447d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.rst

+30
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,36 @@ Run all tests::
126126

127127
ctest --test-dir build --output-on-failure -L TESTLABEL -j 4
128128

129+
Run benchmarks
130+
==============
131+
132+
Two binaries are build for benchmarks:
133+
134+
* mp-bench - for benchmarking `Multi-Process` model
135+
* sp-bench - for benchmarking `Single-Process` model
136+
137+
Here are examples of running single benchmarks.
138+
139+
Running `GemvEq_DR` strong scaling benchmark in Multi-Process model using two GPUs::
140+
141+
ONEAPI_DEVICE_SELECTOR='level_zero:gpu' I_MPI_OFFLOAD=1 I_MPI_OFFLOAD_CELL_LIST=0-11 \
142+
mpiexec -n 2 -ppn 2 build/benchmarks/gbench/mp/mp-bench --vector-size 1000000000 --reps 50 \
143+
--v=3 --benchmark_out=mp_gemv.txt --benchmark_filter=GemvEq_DR/ --sycl
144+
145+
Running `Exclusive_Scan_DR` weak scaling in Single-Process model using two GPUs::
146+
147+
ONEAPI_DEVICE_SELECTOR='level_zero:gpu' KMP_AFFINITY=compact \
148+
build/benchmarks/gbench/sp/sp-bench --vector-size 1000000000 --reps 50 \
149+
--v=3 --benchmark_out=sp_exclscan.txt --benchmark_filter=Exclusive_Scan_DR/ \
150+
--weak-scaling --device-memory --num-devices 2
151+
152+
153+
Check all options::
154+
155+
./build/benchmarks/gbench/mp/mp-bench --help # see google test options help
156+
./build/benchmarks/gbench/mp/mp-bench --drhelp # see DR specific options
157+
158+
129159

130160
Examples
131161
--------

0 commit comments

Comments
 (0)