vtk-m2/vtkm/cont/tbb/testing/UnitTestTBBDeviceAdapter.cxx

22 lines
962 B
C++
Raw Normal View History

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.
//============================================================================
#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>
int UnitTestTBBDeviceAdapter(int argc, char* argv[])
2015-05-29 14:38:28 +00:00
{
auto tracker = vtkm::cont::GetRuntimeDeviceTracker();
tracker.ForceDevice(vtkm::cont::DeviceAdapterTagTBB{});
return vtkm::cont::testing::TestingDeviceAdapter<vtkm::cont::DeviceAdapterTagTBB>::Run(argc,
argv);
2015-06-05 17:14:28 +00:00
}