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
ec8e6f26
Commit
ec8e6f26
authored
Mar 30, 2011
by
Kenneth Moreland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added telescoping to the radix-k algorithm.
parent
717ef7b4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
766 additions
and
101 deletions
+766
-101
src/strategies/radixk.c
src/strategies/radixk.c
+717
-101
tests/CMakeLists.txt
tests/CMakeLists.txt
+1
-0
tests/RadixkUnitTests.c
tests/RadixkUnitTests.c
+48
-0
No files found.
src/strategies/radixk.c
View file @
ec8e6f26
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
View file @
ec8e6f26
...
...
@@ -20,6 +20,7 @@ SET(MyTests
CompressionSize.c
Interlace.c
OddImageSizes.c
RadixkUnitTests.c
SimpleTiming.c
SparseImageCopy.c
)
...
...
tests/RadixkUnitTests.c
0 → 100644
View file @
ec8e6f26
/* -*- c -*- *****************************************************************
** Copyright (C) 2011 Sandia Corporation
** Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
** the U.S. Government retains certain rights in this software.
**
** This source code is released under the New BSD License.
**
** This exercises the radix-k unit tests of internal functions.
*****************************************************************************/
#include <IceT.h>
#include "test_codes.h"
#include "test-util.h"
#include <stdlib.h>
extern
ICET_EXPORT
IceTBoolean
icetRadixkPartitionLookupUnitTest
(
void
);
extern
ICET_EXPORT
IceTBoolean
icetRadixTelescopeSendReceiveTest
(
void
);
static
int
RadixkUnitTestsRun
(
void
)
{
IceTInt
rank
;
icetGetIntegerv
(
ICET_RANK
,
&
rank
);
if
(
rank
!=
0
)
{
return
TEST_PASSED
;
}
if
(
!
icetRadixkPartitionLookupUnitTest
())
{
return
TEST_FAILED
;
}
if
(
!
icetRadixTelescopeSendReceiveTest
())
{
return
TEST_FAILED
;
}
return
TEST_PASSED
;
}
int
RadixkUnitTests
(
int
argc
,
char
*
argv
[])
{
/* To remove warning. */
(
void
)
argc
;
(
void
)
argv
;
return
run_test
(
RadixkUnitTestsRun
);
}
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