2015-05-29 14:38:28 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
2019-04-15 23:24:21 +00:00
|
|
|
//
|
2015-05-29 14:38:28 +00:00
|
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
|
|
//============================================================================
|
|
|
|
|
2018-05-11 21:11:45 +00:00
|
|
|
#include <vtkm/cont/RuntimeDeviceTracker.h>
|
2015-05-29 14:38:28 +00:00
|
|
|
#include <vtkm/cont/tbb/DeviceAdapterTBB.h>
|
|
|
|
#include <vtkm/cont/testing/TestingDeviceAdapter.h>
|
|
|
|
|
2019-01-01 22:19:02 +00:00
|
|
|
int UnitTestTBBDeviceAdapter(int argc, char* argv[])
|
2015-05-29 14:38:28 +00:00
|
|
|
{
|
2019-03-15 19:59:02 +00:00
|
|
|
auto tracker = vtkm::cont::GetRuntimeDeviceTracker();
|
2018-05-11 21:11:45 +00:00
|
|
|
tracker.ForceDevice(vtkm::cont::DeviceAdapterTagTBB{});
|
2019-01-01 22:19:02 +00:00
|
|
|
return vtkm::cont::testing::TestingDeviceAdapter<vtkm::cont::DeviceAdapterTagTBB>::Run(argc,
|
|
|
|
argv);
|
2015-06-05 17:14:28 +00:00
|
|
|
}
|