VTK-m  2.0
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 
15 //We always create the kokkos tag when included, but we only mark it as
16 //a valid tag when VTKM_ENABLE_KOKKOS is true. This is for easier development
17 //of multi-backend systems
18 #if defined(VTKM_ENABLE_KOKKOS) && \
19  ((!defined(VTKM_KOKKOS_CUDA) || defined(VTKM_CUDA)) || \
20  !defined(VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG))
22 #else
24 #endif
25 
26 #endif // vtk_m_cont_kokkos_internal_DeviceAdapterTagKokkos_h
VTKM_VALID_DEVICE_ADAPTER
VTKM_VALID_DEVICE_ADAPTER(Serial, VTKM_DEVICE_ADAPTER_SERIAL)
DeviceAdapterTag.h
VTKM_DEVICE_ADAPTER_KOKKOS
#define VTKM_DEVICE_ADAPTER_KOKKOS
Definition: DeviceAdapterTag.h:40
VTKM_INVALID_DEVICE_ADAPTER
VTKM_INVALID_DEVICE_ADAPTER(Kokkos, VTKM_DEVICE_ADAPTER_KOKKOS)