Viskores  1.0
DeviceAdapterTagKokkos.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_cont_kokkos_internal_DeviceAdapterTagKokkos_h
19 #define viskores_cont_kokkos_internal_DeviceAdapterTagKokkos_h
20 
22 
30 
31 //We always create the kokkos tag when included, but we only mark it as
32 //a valid tag when VISKORES_ENABLE_KOKKOS is true. This is for easier development
33 //of multi-backend systems
34 #if defined(VISKORES_ENABLE_KOKKOS) && \
35  ((!defined(VISKORES_KOKKOS_CUDA) || defined(VISKORES_CUDA)) || \
36  !defined(VISKORES_NO_ERROR_ON_MIXED_CUDA_CXX_TAG))
38 #else
40 #endif
41 
42 #endif // viskores_cont_kokkos_internal_DeviceAdapterTagKokkos_h
DeviceAdapterTag.h
VISKORES_DEVICE_ADAPTER_KOKKOS
#define VISKORES_DEVICE_ADAPTER_KOKKOS
Definition: DeviceAdapterTag.h:48
VISKORES_VALID_DEVICE_ADAPTER
#define VISKORES_VALID_DEVICE_ADAPTER(Name, Id)
Creates a tag named viskores::cont::DeviceAdapterTagName and associated MPL structures to use this ta...
Definition: DeviceAdapterTag.h:137
VISKORES_INVALID_DEVICE_ADAPTER
#define VISKORES_INVALID_DEVICE_ADAPTER(Name, Id)
Marks the tag named viskores::cont::DeviceAdapterTagName and associated structures as invalid to use.
Definition: DeviceAdapterTag.h:164