VTK-m  2.2
DeviceAdapterTagKokkos.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_cont_kokkos_internal_DeviceAdapterTagKokkos_h
11 #define vtk_m_cont_kokkos_internal_DeviceAdapterTagKokkos_h
12 
14 
22 
23 //We always create the kokkos tag when included, but we only mark it as
24 //a valid tag when VTKM_ENABLE_KOKKOS is true. This is for easier development
25 //of multi-backend systems
26 #if defined(VTKM_ENABLE_KOKKOS) && \
27  ((!defined(VTKM_KOKKOS_CUDA) || defined(VTKM_CUDA)) || \
28  !defined(VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG))
30 #else
32 #endif
33 
34 #endif // vtk_m_cont_kokkos_internal_DeviceAdapterTagKokkos_h
DeviceAdapterTag.h
VTKM_DEVICE_ADAPTER_KOKKOS
#define VTKM_DEVICE_ADAPTER_KOKKOS
Definition: DeviceAdapterTag.h:40
VTKM_VALID_DEVICE_ADAPTER
#define VTKM_VALID_DEVICE_ADAPTER(Name, Id)
Creates a tag named vtkm::cont::DeviceAdapterTagName and associated MPL structures to use this tag.
Definition: DeviceAdapterTag.h:129
VTKM_INVALID_DEVICE_ADAPTER
#define VTKM_INVALID_DEVICE_ADAPTER(Name, Id)
Marks the tag named vtkm::cont::DeviceAdapterTagName and associated structures as invalid to use.
Definition: DeviceAdapterTag.h:153