-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsenseiConfig.h.in
77 lines (70 loc) · 2.32 KB
/
senseiConfig.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef senseiConfig_h
#define senseiConfig_h
#define SENSEI_VERSION "@SENSEI_VERSION@"
#define SENSEI_VERSION_MAJOR @SENSEI_VERSION_MAJOR@
#define SENSEI_VERSION_MINOR @SENSEI_VERSION_MINOR@
#define SENSEI_VERSION_PATCH @SENSEI_VERSION_PATCH@
#if defined(_WIN32)
#define SENSEI_IMPORT __declspec(dllimport)
#define SENSEI_EXPORT __declspec(dllexport)
#define SENSEI_HIDDEN
#elif __GNUC__ >= 4
#define SENSEI_IMPORT __attribute__((visibility("default")))
#define SENSEI_EXPORT __attribute__((visibility("default")))
#define SENSEI_HIDDEN __attribute__((visibility("hidden")))
#else
#define SENSEI_IMPORT
#define SENSEI_EXPORT
#define SENSEI_HIDDEN
#endif
#cmakedefine SENSEI_ENABLE_SENSEI
#cmakedefine SENSEI_ENABLE_CUDA
#cmakedefine SENSEI_ENABLE_CUDA_MPI
#cmakedefine SENSEI_NVHPC_CUDA
#cmakedefine SENSEI_NVCC_CUDA
#cmakedefine SENSEI_CLANG_CUDA
#cmakedefine SENSEI_ENABLE_OPENMP
#cmakedefine SENSEI_SEPARATE_IMPL
#cmakedefine SENSEI_ENABLE_PYTHON
#cmakedefine SENSEI_ENABLE_CATALYST
#cmakedefine SENSEI_ENABLE_CATALYST_PYTHON
#cmakedefine SENSEI_ENABLE_CATALYST2
#cmakedefine SENSEI_ENABLE_LIBSIM
#cmakedefine SENSEI_ENABLE_OSPRAY
#cmakedefine SENSEI_ENABLE_ADIOS1
#cmakedefine SENSEI_ENABLE_ADIOS2
#cmakedefine SENSEI_ENABLE_HDF5
#cmakedefine SENSEI_ENABLE_CONDUIT
#cmakedefine SENSEI_ENABLE_ASCENT
#cmakedefine SENSEI_ENABLE_VTK_CORE
#cmakedefine SENSEI_ENABLE_VTK_MPI
#cmakedefine SENSEI_ENABLE_VTK_IO
#cmakedefine SENSEI_ENABLE_VTK_RENDERING
#cmakedefine SENSEI_ENABLE_VTK_ACCELERATORS
#cmakedefine SENSEI_ENABLE_VTK_FILTERS
#cmakedefine SENSEI_ENABLE_VTK_FILTERS_PARALLEL_GEOMETRY
#cmakedefine SENSEI_ENABLE_VTKM
#cmakedefine SENSEI_ENABLE_PROFILER
#cmakedefine SENSEI_PYTHON_VERSION @SENSEI_PYTHON_VERSION@
#ifdef __cplusplus
#include <svtkSetGet.h>
#define senseiBaseTypeMacro(a1, a2) svtkBaseTypeMacro(a1, a2)
#define senseiTypeMacro(a1, a2) svtkTypeMacro(a1, a2)
#define senseiNewMacro(thisClass) \
thisClass* thisClass::New() \
{ \
auto result = new thisClass; \
result->InitializeObjectBase(); \
return result; \
}
#endif
// work around an issue with clang compiling CUDA (clang 17/CUDA 12 May 2023).
// problematic includes can go here, leaving the individual source files
// unmodified.
#if defined(SENSEI_CLANG_CUDA)
#undef __noinline__
#include <memory>
#include <type_traits>
#define __noinline__ __attribute__((noinline))
#endif
#endif