UnitTestCudaArrayHandleVirtualCoordinates.cu 888 Bytes
Newer Older
1 2 3 4
//============================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
5
//
6 7 8 9
//  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.
//============================================================================
10

11 12 13
#include <vtkm/cont/cuda/DeviceAdapterCuda.h>
#include <vtkm/cont/testing/TestingArrayHandleVirtualCoordinates.h>

14
int UnitTestCudaArrayHandleVirtualCoordinates(int argc, char* argv[])
15
{
16
  auto& tracker = vtkm::cont::GetRuntimeDeviceTracker();
17
  tracker.ForceDevice(vtkm::cont::DeviceAdapterTagCuda{});
18
  return vtkm::cont::testing::TestingArrayHandleVirtualCoordinates<
19
    vtkm::cont::DeviceAdapterTagCuda>::Run(argc, argv);
20
}