Commit e90b186b authored by Li-Ta Lo's avatar Li-Ta Lo
Browse files

do not use device compiler to compile source unit tests

parent 54772fb6
......@@ -14,7 +14,6 @@
#include <vtkm/TopologyElementTag.h>
#include <vtkm/cont/CellSet.h>
#include <vtkm/cont/DeviceAdapter.h>
#include <vtkm/cont/ErrorBadType.h>
#include <vtkm/exec/ConnectivityStructured.h>
#include <vtkm/internal/ConnectivityStructuredInternals.h>
......
......@@ -14,6 +14,8 @@
#include <vtkm/cont/Field.h>
#include <vtkm/cont/PartitionedDataSet.h>
#include <numeric>
namespace vtkm
{
namespace cont
......
......@@ -17,5 +17,4 @@ set(unit_tests
vtkm_unit_tests(
SOURCES ${unit_tests}
LIBRARIES vtkm_source
ALL_BACKENDS
)
......@@ -10,13 +10,13 @@
#include <vtkm/source/Oscillator.h>
#include <vtkm/cont/Timer.h>
//#include <vtkm/cont/Timer.h>
#include <vtkm/cont/testing/Testing.h>
void OscillatorSourceTest()
{
vtkm::cont::Timer timer;
timer.Start();
// vtkm::cont::Timer timer;
// timer.Start();
vtkm::source::Oscillator source(vtkm::Id3{ 20, 20, 20 });
source.SetTime(0.5);
......@@ -26,9 +26,9 @@ void OscillatorSourceTest()
vtkm::cont::DataSet ds = source.Execute();
double time = timer.GetElapsedTime();
//double time = timer.GetElapsedTime();
std::cout << "Default oscillator took " << time << "s.\n";
//std::cout << "Default oscillator took " << time << "s.\n";
{
auto coords = ds.GetCoordinateSystem("coordinates");
......
......@@ -10,21 +10,21 @@
#include <vtkm/source/Tangle.h>
#include <vtkm/cont/Timer.h>
//#include <vtkm/cont/Timer.h>
#include <vtkm/cont/testing/Testing.h>
void TangleSourceTest()
{
vtkm::cont::Timer timer;
timer.Start();
// vtkm::cont::Timer timer;
// timer.Start();
vtkm::source::Tangle source(vtkm::Id3{ 20, 20, 20 });
vtkm::cont::DataSet ds = source.Execute();
double time = timer.GetElapsedTime();
// double time = timer.GetElapsedTime();
std::cout << "Default tangle took " << time << "s.\n";
// std::cout << "Default tangle took " << time << "s.\n";
{
auto coords = ds.GetCoordinateSystem("coordinates");
......
......@@ -10,7 +10,7 @@
#include <vtkm/source/Wavelet.h>
#include <vtkm/cont/Timer.h>
//#include <vtkm/cont/Timer.h>
#include <vtkm/cont/testing/Testing.h>
void WaveletSourceTest()
......
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