From a6a48ac1ee5f1084bef565ad6ea89e38088be2ab Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Mon, 22 Apr 2024 11:35:22 -0400 Subject: [PATCH] [cosmetic] fibonacci CPU devsamp --- doc/dox/dev/devsamp/main/fibonacci/fibonacci.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/dox/dev/devsamp/main/fibonacci/fibonacci.cc b/doc/dox/dev/devsamp/main/fibonacci/fibonacci.cc index fce6d9954..d2d829c45 100644 --- a/doc/dox/dev/devsamp/main/fibonacci/fibonacci.cc +++ b/doc/dox/dev/devsamp/main/fibonacci/fibonacci.cc @@ -14,7 +14,7 @@ struct Fn { ar & F; } }; -auto make_ttg_fib_lt(const int64_t F_n_max =1000) { +auto make_ttg_fib_lt(const int64_t F_n_max = 1000) { ttg::Edge f2f; ttg::Edge f2p; @@ -45,8 +45,7 @@ auto make_ttg_fib_lt(const int64_t F_n_max =1000) { int main(int argc, char* argv[]) { ttg::initialize(argc, argv, -1); - int64_t N = 1000; - if (argc > 1) N = std::atol(argv[1]); + int64_t N = (argc > 1) ? std::atol(argv[1]) : 1000; auto fib = make_ttg_fib_lt(N); ttg::make_graph_executable(fib.get());