vtk-m/vtkm/cont/cuda/testing/UnitTestCudaComputeRange.cu

24 lines
971 B
Plaintext
Raw Normal View History

2015-07-16 19:10:01 +00:00
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
2019-04-15 23:24:21 +00:00
//
2015-07-16 19:10:01 +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.
//============================================================================
2015-07-16 19:10:01 +00:00
#include <vtkm/cont/cuda/DeviceAdapterCuda.h>
#include <vtkm/cont/cuda/internal/testing/Testing.h>
#include <vtkm/cont/testing/TestingComputeRange.h>
2015-07-16 19:10:01 +00:00
int UnitTestCudaComputeRange(int argc, char* argv[])
2015-07-16 19:10:01 +00:00
{
auto& tracker = vtkm::cont::GetRuntimeDeviceTracker();
tracker.ForceDevice(vtkm::cont::DeviceAdapterTagCuda{});
int result =
vtkm::cont::testing::TestingComputeRange<vtkm::cont::DeviceAdapterTagCuda>::Run(argc, argv);
2015-07-16 19:10:01 +00:00
return vtkm::cont::cuda::internal::Testing::CheckCudaBeforeExit(result);
}