Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IceT
IceT
Commits
719ead2e
Commit
719ead2e
authored
Feb 19, 2015
by
Kenneth Moreland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add radix-kr to SimpleTiming test.
parent
d9622de8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/strategies/radixkr.c
src/strategies/radixkr.c
+2
-0
tests/SimpleTiming.c
tests/SimpleTiming.c
+10
-0
No files found.
src/strategies/radixkr.c
View file @
719ead2e
...
...
@@ -791,6 +791,8 @@ void icetRadixkrCompose(const IceTInt *compose_group,
/* This hint of an argument is ignored. */
(
void
)
image_dest
;
icetRaiseDebug
(
"In radix-kr compose"
);
/* Find your rank in your group. */
group_rank
=
icetFindMyRankInGroup
(
compose_group
,
group_size
);
if
(
group_rank
<
0
)
{
...
...
tests/SimpleTiming.c
View file @
719ead2e
...
...
@@ -136,6 +136,7 @@ static void usage(char *argv[])
printstat
(
" -sequential Use the sequential strategy.
\n
"
);
printstat
(
" -bswap Use the binary-swap single-image strategy.
\n
"
);
printstat
(
" -radixk Use the radix-k single-image strategy.
\n
"
);
printstat
(
" -radixkr Use the radix-kr single-image strategy.
\n
"
);
printstat
(
" -tree Use the tree single-image strategy.
\n
"
);
printstat
(
" -magic-k-study <num> Use the radix-k single-image strategy and repeat for
\n
"
" multiple values of k, up to <num>, doubling each time.
\n
"
);
...
...
@@ -212,6 +213,8 @@ static void parse_arguments(int argc, char *argv[])
g_single_image_strategy
=
ICET_SINGLE_IMAGE_STRATEGY_BSWAP
;
}
else
if
(
strcmp
(
argv
[
arg
],
"-radixk"
)
==
0
)
{
g_single_image_strategy
=
ICET_SINGLE_IMAGE_STRATEGY_RADIXK
;
}
else
if
(
strcmp
(
argv
[
arg
],
"-radixkr"
)
==
0
)
{
g_single_image_strategy
=
ICET_SINGLE_IMAGE_STRATEGY_RADIXKR
;
}
else
if
(
strcmp
(
argv
[
arg
],
"-tree"
)
==
0
)
{
g_single_image_strategy
=
ICET_SINGLE_IMAGE_STRATEGY_TREE
;
}
else
if
(
strcmp
(
argv
[
arg
],
"-magic-k-study"
)
==
0
)
{
...
...
@@ -1043,6 +1046,13 @@ static int SimpleTimingDoRender()
icetGetIntegerv
(
ICET_MAGIC_K
,
&
magic_k
);
sprintf
(
name_buffer
,
"radix-k %d"
,
(
int
)
magic_k
);
si_strategy_name
=
name_buffer
;
}
else
if
(
g_single_image_strategy
==
ICET_SINGLE_IMAGE_STRATEGY_RADIXKR
)
{
static
char
name_buffer
[
256
];
IceTInt
magic_k
;
icetGetIntegerv
(
ICET_MAGIC_K
,
&
magic_k
);
sprintf
(
name_buffer
,
"radix-kr %d"
,
(
int
)
magic_k
);
si_strategy_name
=
name_buffer
;
}
else
{
si_strategy_name
=
icetGetSingleImageStrategyName
();
}
...
...
Write
Preview
Markdown
is supported
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