Skip to content

Commit

Permalink
[onert/test] Apply strict build to benchmark library (#14471)
Browse files Browse the repository at this point in the history
This commit applies strict build to benchmark test library.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Dec 18, 2024
1 parent b68e7b4 commit d7f2057
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/libs/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ file(GLOB_RECURSE SOURCES "src/*.cpp")
add_library(nnfw_lib_benchmark STATIC ${SOURCES})
target_include_directories(nnfw_lib_benchmark PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(nnfw_lib_benchmark PRIVATE ${LIB_PTHREAD} nnfw_lib_misc)
target_link_libraries(nnfw_lib_benchmark PRIVATE nnfw_common)
2 changes: 1 addition & 1 deletion tests/libs/benchmark/include/benchmark/MemoryPoller.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class MemoryPoller
std::mutex _mutex_started;
std::condition_variable _cond_var_started;

bool _term;
bool _run;
bool _term;
bool _gpu_poll;
std::string _process_name;
};
Expand Down
2 changes: 1 addition & 1 deletion tests/libs/benchmark/src/MemoryInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const std::string proc_status_path("/proc/self/status");
const std::string gpu_memory_path("/sys/kernel/debug/mali0/gpu_memory");
const std::string proc_smaps_path("/proc/self/smaps");

bool isStrNumber(const std::string &s)
[[maybe_unused]] bool isStrNumber(const std::string &s)
{
return !s.empty() &&
std::find_if(s.begin(), s.end(), [](char c) { return !std::isdigit(c); }) == s.end();
Expand Down

0 comments on commit d7f2057

Please sign in to comment.