Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
1952cdc2
Commit
1952cdc2
authored
Dec 10, 2012
by
Pedro Gonnet
Browse files
added option -w to specifiy space_subsize.
Former-commit-id: 7c98b7f1f10b2e060a3fd883f2ae561c3968cfd8
parent
b254e198
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/test.c
View file @
1952cdc2
...
...
@@ -648,7 +648,7 @@ int main ( int argc , char *argv[] ) {
bzero
(
&
s
,
sizeof
(
struct
space
)
);
/* Parse the options */
while
(
(
c
=
getopt
(
argc
,
argv
,
"a:d:f:m:s:t:
q:r
:z:"
)
)
!=
-
1
)
while
(
(
c
=
getopt
(
argc
,
argv
,
"a:d:f:m:
q:r:
s:t:
w
:z:"
)
)
!=
-
1
)
switch
(
c
)
{
case
'a'
:
...
...
@@ -689,6 +689,11 @@ int main ( int argc , char *argv[] ) {
error
(
"Error parsing number of threads."
);
omp_set_num_threads
(
nr_threads
);
break
;
case
'w'
:
if
(
sscanf
(
optarg
,
"%d"
,
&
space_subsize
)
!=
1
)
error
(
"Error parsing sub size."
);
printf
(
"main: sub size set to %i.
\n
"
,
space_subsize
);
break
;
case
'z'
:
if
(
sscanf
(
optarg
,
"%d"
,
&
space_splitsize
)
!=
1
)
error
(
"Error parsing split size."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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