Commit ec8e6f26 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Added telescoping to the radix-k algorithm.

parent 717ef7b4
This diff is collapsed.
......@@ -20,6 +20,7 @@ SET(MyTests
CompressionSize.c
Interlace.c
OddImageSizes.c
RadixkUnitTests.c
SimpleTiming.c
SparseImageCopy.c
)
......
/* -*- 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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment