Skip to content

Commit 53c5cdd

Browse files
committed
Use dash instead of underscore
1 parent 61bbca7 commit 53c5cdd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ find_package(PkgConfig REQUIRED)
55
pkg_search_module(hwloc REQUIRED IMPORTED_TARGET hwloc)
66
find_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)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
1313
Measures average the time (ns) that it takes to send/receive a Compare-And-Swap (CAS) message among all the cores
1414
The results are streamed to 'stdout' as a comma-separated values (CSV) format.
@@ -34,7 +34,7 @@ apt-get install libhwloc-dev
3434
To 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
3838
cmake ..
3939
make
4040
```
@@ -51,8 +51,8 @@ python3 -m pip install -U numpy
5151
Then 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?

cpu_latency_plot renamed to cpu-latency-plot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
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.

cpu_latency.cc renamed to cpu-latency.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)