include FFT in DKSOPAL and DKSBaseMuSR
This commit is contained in:
@ -4,6 +4,25 @@ SET (_HDRS OpenCLBase.h)
|
||||
SET (_SRCS OpenCLBase.cpp)
|
||||
SET (_KERNELS "")
|
||||
|
||||
IF (ENABLE_AMD)
|
||||
SET (_SRCS
|
||||
${_SRCS}
|
||||
OpenCLFFT.cpp
|
||||
)
|
||||
|
||||
SET (_HDRS
|
||||
${_HDRS}
|
||||
OpenCLFFT.h
|
||||
)
|
||||
|
||||
SET (_KERNELS
|
||||
${_KERNELS}
|
||||
OpenCLKernels/OpenCLFFT.cl
|
||||
OpenCLKernels/OpenCLFFTStockham.cl
|
||||
OpenCLKernels/OpenCLTranspose.cl
|
||||
)
|
||||
ENDIF (ENABLE_AMD)
|
||||
|
||||
IF (ENABLE_MUSR)
|
||||
SET (_HDRS ${_HDRS} OpenCLChiSquareRuntime.h)
|
||||
SET (_SRCS ${_SRCS} OpenCLChiSquareRuntime.cpp)
|
||||
@ -13,23 +32,18 @@ ENDIF (ENABLE_MUSR)
|
||||
IF (ENABLE_AMD AND ENABLE_OPAL)
|
||||
SET (_SRCS
|
||||
${_SRCS}
|
||||
OpenCLFFT.cpp
|
||||
OpenCLCollimatorPhysics.cpp
|
||||
OpenCLGreensFunction.cpp
|
||||
)
|
||||
|
||||
SET (_HDRS
|
||||
${_HDRS}
|
||||
OpenCLFFT.h
|
||||
OpenCLCollimatorPhysics.h
|
||||
OpenCLGreensFunction.h
|
||||
)
|
||||
|
||||
SET (_KERNELS
|
||||
${_KERNELS}
|
||||
OpenCLKernels/OpenCLFFT.cl
|
||||
OpenCLKernels/OpenCLFFTStockham.cl
|
||||
OpenCLKernels/OpenCLTranspose.cl
|
||||
OpenCLKernels/OpenCLCollimatorPhysics.cl
|
||||
OpenCLKernels/OpenCLGreensFunction.cl
|
||||
)
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "clFFT.h"
|
||||
|
||||
class OpenCLFFT : public DKSFFT {
|
||||
class OpenCLFFT : public FFT {
|
||||
|
||||
private:
|
||||
|
||||
@ -112,10 +112,9 @@ public:
|
||||
int streamId = -1);
|
||||
int executeCRFFT(void * real_ptr, void * comp_ptr, int ndim, int N[3],
|
||||
int streamId = -1);
|
||||
int normalizeCRFFT(void *real_ptr, int ndim, int N[3], int streamId = -1)
|
||||
{
|
||||
return DKS_ERROR;
|
||||
}
|
||||
int normalizeCRFFT(void *real_ptr, int ndim, int N[3], int streamId = -1) {
|
||||
return DKS_ERROR;
|
||||
}
|
||||
|
||||
//void printData3DN4(cl_double2* &data, int N);
|
||||
|
||||
|
Reference in New Issue
Block a user