DeviceAdapterTagCuda.h 1.2 KB
Newer Older
1
2
3
4
//============================================================================
//  Copyright (c) Kitware, Inc.
//  All rights reserved.
//  See LICENSE.txt for details.
5
//
6
7
8
9
10
11
12
//  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.
//============================================================================
#ifndef vtk_m_cont_cuda_internal_DeviceAdapterTagCuda_h
#define vtk_m_cont_cuda_internal_DeviceAdapterTagCuda_h

13
#include <vtkm/cont/DeviceAdapterTag.h>
14

15
//We always create the cuda tag when included, but we only mark it as
16
//a valid tag when VTKM_CUDA is true. This is for easier development
17
//of multi-backend systems
18
#if defined(VTKM_CUDA) && defined(VTKM_ENABLE_CUDA)
19
VTKM_VALID_DEVICE_ADAPTER(Cuda, VTKM_DEVICE_ADAPTER_CUDA);
20
21
#elif defined(VTKM_ENABLE_CUDA) && !defined(VTKM_NO_ERROR_ON_MIXED_CUDA_CXX_TAG)
#error When VTK-m is build with CUDA enabled all compilation units that include DeviceAdapterTagCuda must use the cuda compiler
22
#else
23
VTKM_INVALID_DEVICE_ADAPTER(Cuda, VTKM_DEVICE_ADAPTER_CUDA);
24
#endif
25
26

#endif //vtk_m_cont_cuda_internal_DeviceAdapterTagCuda_h