Now the generated CUDA header files are completely local (placed in the build directory) instead of depending on some predefined directory structure. This allows users to swap between build directories without having to recompile.
This commit is contained in:
@@ -50,6 +50,7 @@ endif ()
|
|||||||
## Include directories
|
## Include directories
|
||||||
include_directories(.)
|
include_directories(.)
|
||||||
include_directories(include)
|
include_directories(include)
|
||||||
|
include_directories(${CMAKE_BINARY_DIR})
|
||||||
|
|
||||||
## Subdirectories
|
## Subdirectories
|
||||||
add_subdirectory(src/core) # The core library
|
add_subdirectory(src/core) # The core library
|
||||||
|
@@ -5,6 +5,7 @@ then
|
|||||||
echo "ASTAROTH_HOME environment variable not set, run \"source ./sourceme.sh\" in Astaroth home directory"
|
echo "ASTAROTH_HOME environment variable not set, run \"source ./sourceme.sh\" in Astaroth home directory"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
OUTPUT_DIR=${PWD}
|
||||||
|
|
||||||
KERNEL_DIR=${AC_HOME}"/src/core/kernels"
|
KERNEL_DIR=${AC_HOME}"/src/core/kernels"
|
||||||
ACC_DIR=${AC_HOME}"/acc"
|
ACC_DIR=${AC_HOME}"/acc"
|
||||||
@@ -69,11 +70,11 @@ ${ACC_DIR}/compile.sh ${ACC_DIR}/${ACC_SAS}
|
|||||||
${ACC_DIR}/compile.sh ${ACC_DIR}/${ACC_SPS}
|
${ACC_DIR}/compile.sh ${ACC_DIR}/${ACC_SPS}
|
||||||
${ACC_DIR}/compile.sh ${ACC_DIR}/${ACC_HEADER}
|
${ACC_DIR}/compile.sh ${ACC_DIR}/${ACC_HEADER}
|
||||||
|
|
||||||
echo "Moving stencil_assembly.cuh -> ${AC_HOME}/src/core/kernels"
|
echo "Moving stencil_assembly.cuh -> ${OUTPUT_DIR}"
|
||||||
mv stencil_assembly.cuh ${AC_HOME}/src/core/kernels
|
mv stencil_assembly.cuh ${OUTPUT_DIR}
|
||||||
|
|
||||||
echo "Moving stencil_process.cuh -> ${AC_HOME}/src/core/kernels"
|
echo "Moving stencil_process.cuh -> ${OUTPUT_DIR}"
|
||||||
mv stencil_process.cuh ${AC_HOME}/src/core/kernels
|
mv stencil_process.cuh ${OUTPUT_DIR}
|
||||||
|
|
||||||
echo "Moving stencil_defines.cuh -> ${AC_HOME}/include"
|
echo "Moving stencil_defines.cuh -> ${OUTPUT_DIR}"
|
||||||
mv stencil_defines.h ${AC_HOME}/include
|
mv stencil_defines.h ${OUTPUT_DIR}
|
||||||
|
Reference in New Issue
Block a user