dksbase use Algoruthms base class for fft, colimator physics and greens function

This commit is contained in:
Uldis Locans
2017-02-15 09:00:55 +01:00
parent e9d411235c
commit 7c7c2e240b
7 changed files with 174 additions and 242 deletions

View File

@ -1,24 +1,36 @@
SET (_SRCS
OpenCLBase.cpp
OpenCLFFT.cpp
OpenCLChiSquare.cpp
OpenCLCollimatorPhysics.cpp
OpenCLChiSquareRuntime.cpp
OpenCLGreensFunction.cpp
)
#dont include FFT, GreensFunction and CollimatorPhysics if clFFT and clRNG not found
SET (_HDRS
OpenCLBase.h
OpenCLFFT.h
OpenCLChiSquare.h
OpenCLCollimatorPhysics.h
OpenCLChiSquareRuntime.h
OpenCLGreensFunction.h
)
IF (ENABLE_AMD)
SET (_SRCS
OpenCLBase.cpp
OpenCLFFT.cpp
OpenCLChiSquare.cpp
OpenCLCollimatorPhysics.cpp
OpenCLChiSquareRuntime.cpp
OpenCLGreensFunction.cpp
)
#INCLUDE_DIRECTORIES (
# ${CMAKE_CURRENT_SOURCE_DIR}
#)
SET (_HDRS
OpenCLBase.h
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