From 3d82f693700cab5d9fc7a9d485b07f27d0e6b795 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 21 Aug 2024 00:54:39 -0400 Subject: [PATCH] i think this works now --- CMakeLists.txt | 2 +- examples/symbolic_regression.cpp | 3 ++- test_perf.sh | 2 +- test_perf_clang.sh | 2 +- test_perf_minsize_clang.sh | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) create mode 100755 test_perf_minsize_clang.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index ba2e0f6..b2240b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.1.16) +project(blt-gp VERSION 0.1.17) include(CTest) diff --git a/examples/symbolic_regression.cpp b/examples/symbolic_regression.cpp index 7e4869d..bdf65f5 100644 --- a/examples/symbolic_regression.cpp +++ b/examples/symbolic_regression.cpp @@ -39,7 +39,7 @@ blt::gp::prog_config_t config = blt::gp::prog_config_t() .set_mutation_chance(0.1) .set_reproduction_chance(0) .set_max_generations(50) - .set_pop_size(5000) + .set_pop_size(50000) .set_thread_count(0); blt::gp::type_provider type_system; @@ -57,6 +57,7 @@ blt::gp::operation_t op_log([](float a) { return a == 0.0f ? 0.0f : std::log(a); auto lit = blt::gp::operation_t([]() { return program.get_random().get_float(-320.0f, 320.0f); }, "lit").set_ephemeral(); + blt::gp::operation_t op_x([](const context& context) { return context.x; }, "x"); diff --git a/test_perf.sh b/test_perf.sh index ae120c8..a3527af 100755 --- a/test_perf.sh +++ b/test_perf.sh @@ -1 +1 @@ -perf stat -d -d -d -r 30 -e branches,branch-misses,cache-misses,cache-references,cycles,instructions,alignment-faults,cgroup-switches,faults,duration_time,user_time,system_time,L1-dcache-loads,L1-dcache-load-misses,L1-dcache-prefetches,L1-icache-loads,L1-icache-load-misses,dTLB-loads,dTLB-load-misses,iTLB-loads,iTLB-load-misses,l2_request_g1.all_no_prefetch,page-faults,page-faults:u,page-faults:k ./cmake-build-release/blt-symbolic-regression-example +perf stat -d -d -d -r 50 -e branches,branch-misses,cache-misses,cache-references,cycles,instructions,alignment-faults,cgroup-switches,faults,duration_time,user_time,system_time,L1-dcache-loads,L1-dcache-load-misses,L1-dcache-prefetches,L1-icache-loads,L1-icache-load-misses,dTLB-loads,dTLB-load-misses,iTLB-loads,iTLB-load-misses,l2_request_g1.all_no_prefetch,page-faults,page-faults:u,page-faults:k ./cmake-build-release/blt-symbolic-regression-example diff --git a/test_perf_clang.sh b/test_perf_clang.sh index 6cf0e9e..949d6ba 100755 --- a/test_perf_clang.sh +++ b/test_perf_clang.sh @@ -1 +1 @@ -perf stat -d -d -d -r 30 -e branches,branch-misses,cache-misses,cache-references,cycles,instructions,alignment-faults,cgroup-switches,faults,duration_time,user_time,system_time,L1-dcache-loads,L1-dcache-load-misses,L1-dcache-prefetches,L1-icache-loads,L1-icache-load-misses,dTLB-loads,dTLB-load-misses,iTLB-loads,iTLB-load-misses,l2_request_g1.all_no_prefetch,page-faults,page-faults:u,page-faults:k ./cmake-build-release-clang/blt-SR-playground-example +perf stat -d -d -d -r 50 -e branches,branch-misses,cache-misses,cache-references,cycles,instructions,alignment-faults,cgroup-switches,faults,duration_time,user_time,system_time,L1-dcache-loads,L1-dcache-load-misses,L1-dcache-prefetches,L1-icache-loads,L1-icache-load-misses,dTLB-loads,dTLB-load-misses,iTLB-loads,iTLB-load-misses,l2_request_g1.all_no_prefetch,page-faults,page-faults:u,page-faults:k ./cmake-build-release-clang/blt-symbolic-regression-example diff --git a/test_perf_minsize_clang.sh b/test_perf_minsize_clang.sh new file mode 100755 index 0000000..27205b8 --- /dev/null +++ b/test_perf_minsize_clang.sh @@ -0,0 +1 @@ +perf stat -d -d -d -r 50 -e branches,branch-misses,cache-misses,cache-references,cycles,instructions,alignment-faults,cgroup-switches,faults,duration_time,user_time,system_time,L1-dcache-loads,L1-dcache-load-misses,L1-dcache-prefetches,L1-icache-loads,L1-icache-load-misses,dTLB-loads,dTLB-load-misses,iTLB-loads,iTLB-load-misses,l2_request_g1.all_no_prefetch,page-faults,page-faults:u,page-faults:k ./cmake-build-minsizerel-clang/blt-symbolic-regression-example