Skip to content

Commit 9398fd9

Browse files
committed
fixup! Rebase on benchmark prototype branch
1 parent b6ba236 commit 9398fd9

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

benchmark/google/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ set_property(TARGET gil_googlebenchmark PROPERTY IMPORTED_LOCATION
3333
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
3434
find_library(SHLWAPI Shlwapi.lib)
3535
target_link_libraries(gil_googlebenchmark INTERFACE SHLWAPI)
36+
else()
37+
find_package(Threads)
38+
target_link_libraries(gil_googlebenchmark INTERFACE ${CMAKE_THREAD_LIBS_INIT} rt)
3639
endif()
3740

3841
add_dependencies(gil_googlebenchmark project_googlebenchmark)
@@ -41,9 +44,9 @@ add_dependencies(gil_googlebenchmark project_googlebenchmark)
4144
# Build benchmarks
4245
#-----------------------------------------------------------------------------
4346
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12.0)
44-
file(GLOB_RECURSE _benchmarks ${CMAKE_CURRENT_LIST_DIR}/*.cpp CONFIGURE_DEPEND)
47+
file(GLOB _benchmarks ${CMAKE_CURRENT_LIST_DIR}/*.cpp CONFIGURE_DEPEND)
4548
else()
46-
file(GLOB_RECURSE _benchmarks ${CMAKE_CURRENT_LIST_DIR}/*.cpp)
49+
file(GLOB _benchmarks ${CMAKE_CURRENT_LIST_DIR}/*.cpp)
4750
endif()
4851

4952
foreach(_benchmark ${_benchmarks})

benchmark/google/blaze/view_transpose.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static void blaze_transpose(benchmark::State& state)
4141
mat_out = blaze::trans(mat_in);
4242
}
4343

44-
if (!equal_pixels(transposed_view(const_view(in)), const_view(in))))
44+
if (!equal_pixels(transposed_view(const_view(in)), const_view(in)))
4545
state.SkipWithError("blaze_transpose wrong result");
4646
}
4747
BENCHMARK(blaze_transpose)->RangeMultiplier(2)->Range(256, 8 << 10);
@@ -63,7 +63,7 @@ static void blaze_transpose_inplace(benchmark::State& state)
6363
blaze::transpose(mat_in_out);
6464
}
6565

66-
if (!equal_pixels(transposed_view(const_view(in_ref)), const_view(in))))
66+
if (!equal_pixels(transposed_view(const_view(in_ref)), const_view(in)))
6767
state.SkipWithError("blaze_transpose_inplace wrong result");
6868
}
6969
BENCHMARK(blaze_transpose_inplace)->RangeMultiplier(2)->Range(256, 8 << 10);

benchmark/google/ipp/view_flip.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static void ipp_flip_left_right(benchmark::State& state)
3131
ippAxsVertical);
3232
}
3333

34-
if (!equal_pixels(flipped_left_right_view(const_view(in)), const_view(out))))
34+
if (!equal_pixels(flipped_left_right_view(const_view(in)), const_view(out)))
3535
state.SkipWithError("ipp_flip_left_right wrong result");
3636
}
3737
BENCHMARK(ipp_flip_left_right)->RangeMultiplier(2)->Range(256, 8 << 10);
@@ -56,7 +56,7 @@ static void ipp_flip_left_right_inplace(benchmark::State& state)
5656
ippAxsVertical);
5757
}
5858

59-
if (!equal_pixels(flipped_left_right_view(const_view(in)), const_view(in_ref))))
59+
if (!equal_pixels(flipped_left_right_view(const_view(in)), const_view(in_ref)))
6060
state.SkipWithError("ipp_flip_left_right_inplace wrong result");
6161
}
6262
BENCHMARK(ipp_flip_left_right_inplace)->RangeMultiplier(2)->Range(256, 8 << 10);
@@ -82,7 +82,7 @@ static void ipp_flip_up_down(benchmark::State& state)
8282
ippAxsHorizontal);
8383
}
8484

85-
if (!equal_pixels(flipped_left_right_view(const_view(in)), const_view(out))))
85+
if (!equal_pixels(flipped_left_right_view(const_view(in)), const_view(out)))
8686
state.SkipWithError("ipp_flip_up_down wrong result");
8787
}
8888
BENCHMARK(ipp_flip_up_down)->RangeMultiplier(2)->Range(256, 8 << 10);
@@ -107,7 +107,7 @@ static void ipp_flip_up_down_inplace(benchmark::State& state)
107107
ippAxsHorizontal);
108108
}
109109

110-
if (!equal_pixels(flipped_left_right_view(const_view(in)), const_view(in_ref))))
110+
if (!equal_pixels(flipped_left_right_view(const_view(in)), const_view(in_ref)))
111111
state.SkipWithError("ipp_flip_up_down_inplace wrong result");
112112
}
113113
BENCHMARK(ipp_flip_up_down_inplace)->RangeMultiplier(2)->Range(256, 8 << 10);

benchmark/google/ipp/view_transpose.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static void ipp_transpose(benchmark::State& state)
3030
srcRoi);
3131
}
3232

33-
if (!equal_pixels(transposed_view(const_view(in)), const_view(out))))
33+
if (!equal_pixels(transposed_view(const_view(in)), const_view(out)))
3434
state.SkipWithError("ipp_transpose wrong result");
3535
}
3636
BENCHMARK(ipp_transpose)->RangeMultiplier(2)->Range(256, 8 << 10);
@@ -54,7 +54,7 @@ static void ipp_transpose_inplace(benchmark::State& state)
5454
srcRoi);
5555
}
5656

57-
if (!equal_pixels(transposed_view(const_view(in_ref)), const_view(in))))
57+
if (!equal_pixels(transposed_view(const_view(in_ref)), const_view(in)))
5858
state.SkipWithError("ipp_transpose_inplace wrong result");
5959
}
6060
BENCHMARK(ipp_transpose_inplace)->RangeMultiplier(2)->Range(256, 8 << 10);

0 commit comments

Comments
 (0)