Skip to content

Commit

Permalink
Merge branch 'develop' into add_multi_gpu_support
Browse files Browse the repository at this point in the history
  • Loading branch information
G-071 committed Aug 24, 2023
2 parents 6bb7fd0 + 83f99bb commit 161a92a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 24 deletions.
21 changes: 3 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,10 @@ if (CPPUDDLE_WITH_TESTS)
)
endif()
if (NOT CMAKE_BUILD_TYPE MATCHES "Debug") # Performance tests only make sense with optimizations on
add_test(allocator_test.performance.analyse_recycle_performance cat allocator_test.out)
set_tests_properties(allocator_test.performance.analyse_recycle_performance PROPERTIES
FIXTURES_REQUIRED allocator_test_output
PASS_REGULAR_EXPRESSION "Test information: Recycler was faster than default allocator!"
)
add_test(allocator_test.performance.analyse_aggressive_performance cat allocator_test.out)
set_tests_properties(allocator_test.performance.analyse_aggressive_performance PROPERTIES
FIXTURES_REQUIRED allocator_test_output
PASS_REGULAR_EXPRESSION "Test information: Recycler was faster than default allocator!"
PASS_REGULAR_EXPRESSION "Test information: Aggressive recycler was faster than default allocator!"
)
endif()
add_test(allocator_test.fixture_cleanup ${CMAKE_COMMAND} -E remove allocator_test.out)
Expand Down Expand Up @@ -465,15 +460,10 @@ if (CPPUDDLE_WITH_TESTS)
)
endif()
if (NOT CMAKE_BUILD_TYPE MATCHES "Debug") # Performance tests only make sense with optimizations on
add_test(allocator_aligned_test.performance.analyse_recycle_performance cat allocator_aligned_test.out)
set_tests_properties(allocator_aligned_test.performance.analyse_recycle_performance PROPERTIES
FIXTURES_REQUIRED allocator_aligned_test_output
PASS_REGULAR_EXPRESSION "Test information: Recycler was faster than default allocator!"
)
add_test(allocator_aligned_test.performance.analyse_aggressive_performance cat allocator_aligned_test.out)
set_tests_properties(allocator_aligned_test.performance.analyse_aggressive_performance PROPERTIES
FIXTURES_REQUIRED allocator_aligned_test_output
PASS_REGULAR_EXPRESSION "Test information: Recycler was faster than default allocator!"
PASS_REGULAR_EXPRESSION "Test information: Aggressive recycler was faster than default allocator!"
)
endif()
add_test(allocator_aligned_test.fixture_cleanup ${CMAKE_COMMAND} -E remove allocator_aligned_test.out)
Expand Down Expand Up @@ -521,15 +511,10 @@ if (CPPUDDLE_WITH_TESTS)
)
endif()
if (NOT CMAKE_BUILD_TYPE MATCHES "Debug") # Performance tests only make sense with optimizations on
add_test(allocator_concurrency_test.performance.analyse_recycle_performance cat allocator_concurrency_test.out)
set_tests_properties(allocator_concurrency_test.performance.analyse_recycle_performance PROPERTIES
FIXTURES_REQUIRED allocator_concurrency_output
PASS_REGULAR_EXPRESSION "Test information: Recycler was faster than default allocator!"
)
add_test(allocator_concurrency_test.performance.analyse_aggressive_performance cat allocator_concurrency_test.out)
set_tests_properties(allocator_concurrency_test.performance.analyse_aggressive_performance PROPERTIES
FIXTURES_REQUIRED allocator_concurrency_output
PASS_REGULAR_EXPRESSION "Test information: Recycler was faster than default allocator!"
PASS_REGULAR_EXPRESSION "Test information: Aggressive recycler was faster than default allocator!"
)
endif()
add_test(allocator_concurrency_test.fixture_cleanup ${CMAKE_COMMAND} -E remove allocator_concurrency_test.out)
Expand Down
4 changes: 2 additions & 2 deletions tests/allocator_aligned_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ int main(int argc, char *argv[]) {
"recycler!"
<< std::endl;
}
if (recycle_duration < default_duration) {
std::cout << "Test information: Recycler was faster than default allocator!"
if (aggressive_duration < default_duration) {
std::cout << "Test information: Aggressive recycler was faster than default allocator!"
<< std::endl;
}
recycler::print_performance_counters();
Expand Down
4 changes: 2 additions & 2 deletions tests/allocator_hpx_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ int hpx_main(int argc, char *argv[]) {
"recycler!"
<< std::endl;
}
if (recycle_duration < default_duration) {
std::cout << "Test information: Recycler was faster than default allocator!"
if (aggressive_duration < default_duration) {
std::cout << "Test information: Aggressive recycler was faster than default allocator!"
<< std::endl;
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/allocator_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ int main(int argc, char *argv[]) {
"recycler!"
<< std::endl;
}
if (recycle_duration < default_duration) {
std::cout << "Test information: Recycler was faster than default allocator!"
if (aggressive_duration < default_duration) {
std::cout << "Test information: Aggressive recycler was faster than default allocator!"
<< std::endl;
}
recycler::print_performance_counters();
Expand Down

0 comments on commit 161a92a

Please sign in to comment.