VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: ObjectFactory.cxx 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 #ifndef vtkDaxConfig_h 00016 #define vtkDaxConfig_h 00017 00018 // Boost gives a bunch of warnings with nvcc if you don't specify how shared 00019 // pointers should handle threads. Dax does not care (it is too careful about 00020 // threading to cause hazards in shared pointers), but your code might. Thus, 00021 // you should specify one when compiling with nvcc. If your code does not share 00022 // shared pointers among threads, then you can just disable them as below. 00023 // (BTW, if you forget to set this, Dax will give its own descriptive message 00024 // with instructions on how to fix.) 00025 #if 1 == 1 00026 #define BOOST_SP_DISABLE_THREADS 00027 #endif 00028 00029 00030 #ifndef DAX_DEVICE_ADAPTER 00031 # define DAX_DEVICE_ADAPTER DAX_DEVICE_ADAPTER_CUDA 00032 #endif 00033 00034 //make sure we use 64bit id's just like vtk 00035 #ifdef VTK_USE_64BIT_IDS 00036 # define DAX_USE_64BIT_IDS 00037 #endif 00038 #include <dax/internal/Configure.h> 00039 00040 #include <dax/cont/DeviceAdapter.h> 00041 #endif // vtkDaxConfig_h