Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florian Fischer
emper
Commits
1d1965f7
Commit
1d1965f7
authored
Apr 25, 2022
by
Florian Schmaus
Browse files
[apps/FibChildStealing] Improve fibNum arg parsing
Also, don't set an unsigned to -1…
parent
89dd8fae
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/FibChildStealing.cpp
View file @
1d1965f7
...
...
@@ -66,13 +66,13 @@ static void fib(void* voidParams) {
// NOLINTNEXTLINE(bugprone-exception-escape)
auto
main
(
int
argc
,
char
*
argv
[])
->
int
{
uint64_t
fibNum
=
-
1
;
uint64_t
fibNum
=
1
2
;
po
::
options_description
desc
(
"Allowed options"
);
// clang-format off
desc
.
add_options
()
(
"help"
,
"Show help"
)
(
"nthreads"
,
po
::
value
<
unsigned
int
>
()
->
default_value
(
std
::
thread
::
hardware_concurrency
()),
"Number of worker threads used by EMPER's runtime system"
)
(
"fibnum"
,
po
::
value
<
uint64_t
>
(
&
fibNum
)
->
default_value
(
12
),
"The Fibonacci number to compute"
)
(
"fibnum"
,
po
::
value
<
uint64_t
>
(
&
fibNum
)
->
default_value
(
fibNum
),
"The Fibonacci number to compute"
)
;
// clang-format on
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment