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

11
#include <vtkm/cont/DeviceAdapterTag.h>
12

13
#include <vtkm/cont/RuntimeDeviceInformation.h>
14 15 16 17 18 19 20 21

namespace vtkm
{
namespace cont
{

DeviceAdapterNameType DeviceAdapterId::GetName() const
{
22 23
  vtkm::cont::RuntimeDeviceInformation info;
  return info.GetName(*this);
24
}
25 26 27

DeviceAdapterId make_DeviceAdapterId(const DeviceAdapterNameType& name)
{
28 29
  vtkm::cont::RuntimeDeviceInformation info;
  return info.GetId(name);
30
}
31 32
}
} // end namespace vtkm::cont