File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ find_package(PkgConfig REQUIRED)
55pkg_search_module(hwloc REQUIRED IMPORTED_TARGET hwloc)
66find_package (Threads REQUIRED)
77
8- add_executable (cpu_latency cpu_latency .cc)
9- target_compile_features (cpu_latency PRIVATE cxx_std_17)
10- target_link_libraries (cpu_latency PRIVATE PkgConfig::hwloc Threads::Threads)
8+ add_executable (cpu-latency cpu-latency .cc)
9+ target_compile_features (cpu-latency PRIVATE cxx_std_17)
10+ target_link_libraries (cpu-latency PRIVATE PkgConfig::hwloc Threads::Threads)
1111
12- file (CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR} /cpu_latency_plot ${CMAKE_CURRENT_BINARY_DIR} /cpu_latency_plot )
12+ file (CREATE_LINK ${CMAKE_CURRENT_SOURCE_DIR} /cpu-latency-plot ${CMAKE_CURRENT_BINARY_DIR} /cpu-latency-plot )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ _Inspired by [`core-to-core-latency`](https://github.com/nviennot/core-to-core-l
88### Usage
99
1010```
11- USAGE: cpu_latency [options]
11+ USAGE: cpu-latency [options]
1212
1313Measures average the time (ns) that it takes to send/receive a Compare-And-Swap (CAS) message among all the cores
1414The results are streamed to 'stdout' as a comma-separated values (CSV) format.
@@ -34,7 +34,7 @@ apt-get install libhwloc-dev
3434To build, just configure cmake and build its targets:
3535
3636```
37- mkdir cpu_latency /build && cd cpu_latency /build
37+ mkdir cpu-latency /build && cd cpu-latency /build
3838cmake ..
3939make
4040```
@@ -51,8 +51,8 @@ python3 -m pip install -U numpy
5151Then you can run the script to measure the latency and plot it with the utility python script
5252
5353```
54- ./cpu_latency > cpu_latency .csv
55- ./cpu_latency_plot -i cpu_latency .csv -o cpu_latency .png
54+ ./cpu-latency > cpu-latency .csv
55+ ./cpu-latency-plot -i cpu-latency .csv -o cpu-latency .png
5656```
5757
5858## Why do we need another program for this?
Original file line number Diff line number Diff line change 3131
3232# This file was originally part of core-to-core-latency by Nicolas Viennot.
3333#
34- # Modifications have been made to this file by the cpu_latency project.
34+ # Modifications have been made to this file by the cpu-latency project.
3535#
3636# The modified version is licensed under the MIT License.
3737# See the LICENSE file in the root directory of this source tree for more information.
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ main(int argc, char** argv)
7373 std::end (cmd_args),
7474 [](const auto & opt) { return opt == " --help" or opt == " -h" ; });
7575 opt != cmd_args.end ()) {
76- std::cout << " USAGE: cpu_latency [options]\n\n "
76+ std::cout << " USAGE: cpu-latency [options]\n\n "
7777 << " Measures average the time (ns) that it takes to send/receive a Compare-And-Swap (CAS) message among all the cores\n "
7878 << " The results are streamed to 'stdout' as a comma-separated values (CSV) format.\n\n "
7979 << " OPTIONS:\n\n "
You can’t perform that action at this time.
0 commit comments