Skip to content

Commit

Permalink
[cosmetic] fibonacci CPU devsamp
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Apr 22, 2024
1 parent 5b1381b commit a6a48ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/dox/dev/devsamp/main/fibonacci/fibonacci.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<int64_t, Fn> f2f;
ttg::Edge<void, Fn> f2p;

Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit a6a48ac

Please sign in to comment.