vtk-m/vtkm/cont/DeviceAdapterTag.cxx

33 lines
899 B
C++
Raw Normal View History

2018-08-28 21:14:49 +00:00
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
2019-04-15 23:24:21 +00:00
//
2018-08-28 21:14:49 +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.
//============================================================================
2019-04-03 20:28:31 +00:00
#include <vtkm/cont/DeviceAdapterTag.h>
2018-08-28 21:14:49 +00:00
#include <vtkm/cont/RuntimeDeviceInformation.h>
2018-08-28 21:14:49 +00:00
namespace vtkm
{
namespace cont
{
DeviceAdapterNameType DeviceAdapterId::GetName() const
{
vtkm::cont::RuntimeDeviceInformation info;
return info.GetName(*this);
2018-08-28 21:14:49 +00:00
}
DeviceAdapterId make_DeviceAdapterId(const DeviceAdapterNameType& name)
{
vtkm::cont::RuntimeDeviceInformation info;
return info.GetId(name);
}
2018-08-28 21:14:49 +00:00
}
} // end namespace vtkm::cont