File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
2626 set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "RelWithDebInfo" "MinSizeRel" )
2727endif ()
2828
29+ # Mark compile time (not runtime), affects how some kernel files include
30+ add_compile_definitions (DEME_BEING_CMAKE_COMPILED )
31+
2932# ---------------------------------------------------------------------------- #
3033# Additional Packages
3134# ---------------------------------------------------------------------------- #
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ message(STATUS "==== Configuring GPU Algorithm Components ====")
77
88set (algorithms_message "[algorithms]" )
99
10-
11-
1210add_library (algorithms OBJECT )
1311
1412target_include_directories (
Original file line number Diff line number Diff line change 44#define DEME_HELPER_KERNELS_CU
55
66#include < DEM/Defines.h>
7- #include < kernel/CUDAMathHelpers.cuh>
7+
8+ // CUDAMathHelpers.cuh is used in static compilation, and that needs to be found through src then kernel. But at
9+ // runtime, we ask jitify to find include files only at same level of all other fellow kernel files.
10+ #ifdef DEME_BEING_CMAKE_COMPILED
11+ #include < kernel/CUDAMathHelpers.cuh>
12+ #else
13+ #include < CUDAMathHelpers.cuh>
14+ #endif
815
916// inline __device__ voxelID_t position2VoxelID
1017
You can’t perform that action at this time.
0 commit comments