Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK-m
Commits
e90b186b
Commit
e90b186b
authored
Oct 13, 2021
by
Li-Ta Lo
Browse files
do not use device compiler to compile source unit tests
parent
54772fb6
Changes
6
Hide whitespace changes
Inline
Side-by-side
vtkm/cont/CellSetStructured.h
View file @
e90b186b
...
...
@@ -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>
...
...
vtkm/cont/FieldRangeCompute.h
View file @
e90b186b
...
...
@@ -14,6 +14,8 @@
#include <vtkm/cont/Field.h>
#include <vtkm/cont/PartitionedDataSet.h>
#include <numeric>
namespace
vtkm
{
namespace
cont
...
...
vtkm/source/testing/CMakeLists.txt
View file @
e90b186b
...
...
@@ -17,5 +17,4 @@ set(unit_tests
vtkm_unit_tests
(
SOURCES
${
unit_tests
}
LIBRARIES vtkm_source
ALL_BACKENDS
)
vtkm/source/testing/UnitTestOscillatorSource.cxx
View file @
e90b186b
...
...
@@ -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"
);
...
...
vtkm/source/testing/UnitTestTangleSource.cxx
View file @
e90b186b
...
...
@@ -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"
);
...
...
vtkm/source/testing/UnitTestWaveletSource.cxx
View file @
e90b186b
...
...
@@ -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
()
...
...
Li-Ta Lo
@ollielo
mentioned in commit
14a788bb
·
Oct 14, 2021
mentioned in commit
14a788bb
mentioned in commit 14a788bb4949f280b29fb17631c247d7a9abf35b
Toggle commit list
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