allow to enalbe wich parts of DKS to compile trough cmake flags
This commit is contained in:
@ -1,46 +1,39 @@
|
||||
#dont include FFT, GreensFunction and CollimatorPhysics if clFFT and clRNG not found
|
||||
|
||||
IF (ENABLE_AMD)
|
||||
SET (_HDRS OpenCLBase.h)
|
||||
SET (_SRCS OpenCLBase.cpp)
|
||||
SET (_KERNELS "")
|
||||
|
||||
IF (ENABLE_MUSR)
|
||||
SET (_HDRS ${_HDRS} OpenCLChiSquareRuntime.h)
|
||||
SET (_SRCS ${_SRCS} OpenCLChiSquareRuntime.cpp)
|
||||
SET (_KERNELS OpenCLKernels/OpenCLChiSquareRuntime.cl)
|
||||
ENDIF (ENABLE_MUSR)
|
||||
|
||||
IF (ENABLE_AMD AND ENABLE_OPAL)
|
||||
SET (_SRCS
|
||||
OpenCLBase.cpp
|
||||
${_SRCS}
|
||||
OpenCLFFT.cpp
|
||||
OpenCLChiSquare.cpp
|
||||
OpenCLCollimatorPhysics.cpp
|
||||
OpenCLChiSquareRuntime.cpp
|
||||
OpenCLGreensFunction.cpp
|
||||
)
|
||||
|
||||
SET (_HDRS
|
||||
OpenCLBase.h
|
||||
${_HDRS}
|
||||
OpenCLFFT.h
|
||||
OpenCLChiSquare.h
|
||||
OpenCLCollimatorPhysics.h
|
||||
OpenCLChiSquareRuntime.h
|
||||
OpenCLGreensFunction.h
|
||||
)
|
||||
ELSE (ENABLE_AMD)
|
||||
SET (_SRCS
|
||||
OpenCLBase.cpp
|
||||
OpenCLChiSquare.cpp
|
||||
OpenCLChiSquareRuntime.cpp
|
||||
)
|
||||
|
||||
SET (_HDRS
|
||||
OpenCLBase.h
|
||||
OpenCLChiSquare.h
|
||||
OpenCLChiSquareRuntime.h
|
||||
)
|
||||
ENDIF (ENABLE_AMD)
|
||||
|
||||
SET (_KERNELS
|
||||
OpenCLKernels/OpenCLChiSquare.cl
|
||||
OpenCLKernels/OpenCLFFT.cl
|
||||
OpenCLKernels/OpenCLFFTStockham.cl
|
||||
OpenCLKernels/OpenCLTranspose.cl
|
||||
OpenCLKernels/OpenCLCollimatorPhysics.cl
|
||||
OpenCLKernels/OpenCLChiSquareRuntime.cl
|
||||
OpenCLKernels/OpenCLGreensFunction.cl
|
||||
SET (_KERNELS
|
||||
${_KERNELS}
|
||||
OpenCLKernels/OpenCLFFT.cl
|
||||
OpenCLKernels/OpenCLFFTStockham.cl
|
||||
OpenCLKernels/OpenCLTranspose.cl
|
||||
OpenCLKernels/OpenCLCollimatorPhysics.cl
|
||||
OpenCLKernels/OpenCLGreensFunction.cl
|
||||
)
|
||||
ENDIF (ENABLE_AMD AND ENABLE_OPAL)
|
||||
|
||||
ADD_SOURCES (${_SRCS})
|
||||
ADD_HEADERS (${_HDRS})
|
||||
|
Reference in New Issue
Block a user