Greens function calculation for OPAL rewriten with abstract base class
This commit is contained in:
@ -613,12 +613,12 @@ int OpenCLBase::ocl_loadKernel(const char * kernel_file) {
|
||||
}
|
||||
}
|
||||
|
||||
if (ierr != OCL_SUCCESS) {
|
||||
if (ierr != DKS_SUCCESS) {
|
||||
DEBUG_MSG("Failed to build kernel file " << kernel_file);
|
||||
return OCL_ERROR;
|
||||
return DKS_ERROR;
|
||||
}
|
||||
|
||||
return OCL_SUCCESS;
|
||||
return DKS_SUCCESS;
|
||||
}
|
||||
|
||||
//compile kernel form source code provided
|
||||
|
@ -31,7 +31,6 @@ int OpenCLFFT::ocl_callFFTKernel(cl_mem &data, int cdim, int ndim, int N, bool f
|
||||
|
||||
if (m_oclbase->ocl_setKernelArg(3, sizeof(int), &f) != OCL_SUCCESS)
|
||||
return OCL_ERROR;
|
||||
|
||||
|
||||
//execute kernel
|
||||
for (int step = 1; step < N; step <<= 1) {
|
||||
|
Reference in New Issue
Block a user