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
|
|
|
|
2019-03-15 19:54:42 +00:00
|
|
|
#include <vtkm/cont/RuntimeDeviceInformation.h>
|
2018-08-28 21:14:49 +00:00
|
|
|
|
|
|
|
namespace vtkm
|
|
|
|
{
|
|
|
|
namespace cont
|
|
|
|
{
|
|
|
|
|
|
|
|
DeviceAdapterNameType DeviceAdapterId::GetName() const
|
|
|
|
{
|
2019-03-15 19:54:42 +00:00
|
|
|
vtkm::cont::RuntimeDeviceInformation info;
|
|
|
|
return info.GetName(*this);
|
2018-08-28 21:14:49 +00:00
|
|
|
}
|
2018-12-06 18:33:31 +00:00
|
|
|
|
|
|
|
DeviceAdapterId make_DeviceAdapterId(const DeviceAdapterNameType& name)
|
|
|
|
{
|
2019-03-15 19:54:42 +00:00
|
|
|
vtkm::cont::RuntimeDeviceInformation info;
|
|
|
|
return info.GetId(name);
|
2018-12-06 18:33:31 +00:00
|
|
|
}
|
2018-08-28 21:14:49 +00:00
|
|
|
}
|
|
|
|
} // end namespace vtkm::cont
|