99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
1111
12- // / \file GPUReconstructionOCL2 .cxx
12+ // / \file GPUReconstructionOCL .cxx
1313// / \author David Rohr
1414
1515#define GPUCA_GPUTYPE_OPENCL
1616#define __OPENCL_HOST__
1717
1818#include " GPUReconstructionOCL2.h"
19- #include " GPUReconstructionOCL2Internals .h"
19+ #include " GPUReconstructionOCLInternals .h"
2020#include " GPUReconstructionIncludes.h"
2121
2222using namespace GPUCA_NAMESPACE ::gpu;
@@ -27,32 +27,32 @@ using namespace GPUCA_NAMESPACE::gpu;
2727#include < cstdlib>
2828
2929#include " utils/qGetLdBinarySymbols.h"
30- QGET_LD_BINARY_SYMBOLS (GPUReconstructionOCL2Code_src );
31- #ifdef OPENCL2_ENABLED_SPIRV
32- QGET_LD_BINARY_SYMBOLS (GPUReconstructionOCL2Code_spirv );
30+ QGET_LD_BINARY_SYMBOLS (GPUReconstructionOCLCode_src );
31+ #ifdef OPENCL_ENABLED_SPIRV
32+ QGET_LD_BINARY_SYMBOLS (GPUReconstructionOCLCode_spirv );
3333#endif
3434
35- GPUReconstruction* GPUReconstruction_Create_OCL2 (const GPUSettingsDeviceBackend& cfg) { return new GPUReconstructionOCL2 (cfg); }
35+ GPUReconstruction* GPUReconstruction_Create_OCL (const GPUSettingsDeviceBackend& cfg) { return new GPUReconstructionOCL2 (cfg); }
3636
37- GPUReconstructionOCL2Backend::GPUReconstructionOCL2Backend (const GPUSettingsDeviceBackend& cfg) : GPUReconstructionOCL(cfg)
37+ GPUReconstructionOCLBackend::GPUReconstructionOCLBackend (const GPUSettingsDeviceBackend& cfg) : GPUReconstructionOCL(cfg)
3838{
3939}
4040
4141template <class T , int32_t I, typename ... Args>
42- int32_t GPUReconstructionOCL2Backend ::runKernelBackend (const krnlSetupArgs<T, I, Args...>& args)
42+ int32_t GPUReconstructionOCLBackend ::runKernelBackend (const krnlSetupArgs<T, I, Args...>& args)
4343{
4444 cl_kernel k = args.s .y .num > 1 ? getKernelObject<cl_kernel, T, I, true >() : getKernelObject<cl_kernel, T, I, false >();
4545 return std::apply ([this , &args, &k](auto &... vals) { return runKernelBackendInternal (args.s , k, vals...); }, args.v );
4646}
4747
4848template <class S , class T , int32_t I, bool MULTI>
49- S& GPUReconstructionOCL2Backend ::getKernelObject ()
49+ S& GPUReconstructionOCLBackend ::getKernelObject ()
5050{
5151 static uint32_t krnl = FindKernel<T, I>(MULTI ? 2 : 1 );
5252 return mInternals ->kernels [krnl].first ;
5353}
5454
55- int32_t GPUReconstructionOCL2Backend ::GetOCLPrograms ()
55+ int32_t GPUReconstructionOCLBackend ::GetOCLPrograms ()
5656{
5757 char platform_version[256 ] = {};
5858 GPUFailedMsg (clGetPlatformInfo (mInternals ->platform , CL_PLATFORM_VERSION, sizeof (platform_version), platform_version, nullptr ));
@@ -63,17 +63,17 @@ int32_t GPUReconstructionOCL2Backend::GetOCLPrograms()
6363
6464 const char * ocl_flags = GPUCA_M_STR (OCL_FLAGS);
6565
66- #ifdef OPENCL2_ENABLED_SPIRV // clang-format off
66+ #ifdef OPENCL_ENABLED_SPIRV // clang-format off
6767 if (ver >= 2 .2f && !GetProcessingSettings ().oclCompileFromSources ) {
6868 GPUInfo (" Reading OpenCL program from SPIR-V IL (Platform version %4.2f)" , ver);
69- mInternals ->program = clCreateProgramWithIL (mInternals ->context , _binary_GPUReconstructionOCL2Code_spirv_start, _binary_GPUReconstructionOCL2Code_spirv_len , &ocl_error);
69+ mInternals ->program = clCreateProgramWithIL (mInternals ->context , _binary_GPUReconstructionOCLCode_spirv_start, _binary_GPUReconstructionOCLCode_spirv_len , &ocl_error);
7070 ocl_flags = " " ;
7171 } else
7272#endif // clang-format on
7373 {
7474 GPUInfo (" Compiling OpenCL program from sources (Platform version %4.2f)" , ver);
75- size_t program_sizes[1 ] = {_binary_GPUReconstructionOCL2Code_src_len };
76- char * programs_sources[1 ] = {_binary_GPUReconstructionOCL2Code_src_start };
75+ size_t program_sizes[1 ] = {_binary_GPUReconstructionOCLCode_src_len };
76+ char * programs_sources[1 ] = {_binary_GPUReconstructionOCLCode_src_start };
7777 mInternals ->program = clCreateProgramWithSource (mInternals ->context , (cl_uint)1 , (const char **)&programs_sources, program_sizes, &ocl_error);
7878 }
7979
@@ -113,7 +113,7 @@ int32_t GPUReconstructionOCL2Backend::GetOCLPrograms()
113113 return 0 ;
114114}
115115
116- bool GPUReconstructionOCL2Backend ::CheckPlatform (uint32_t i)
116+ bool GPUReconstructionOCLBackend ::CheckPlatform (uint32_t i)
117117{
118118 char platform_version[64 ] = {}, platform_vendor[64 ] = {};
119119 clGetPlatformInfo (mInternals ->platforms [i], CL_PLATFORM_VERSION, sizeof (platform_version), platform_version, nullptr );
0 commit comments