From 9d181f846f7c7a1ce4916f2009dab9348ec037f6 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 21 Jun 2010 20:56:46 +0200 Subject: switched to dynamic linking. All custom code functions must be called via funciton pointers since this point. --- resources/cl-impl.cfg | 64 +++++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 28 deletions(-) (limited to 'resources/cl-impl.cfg') diff --git a/resources/cl-impl.cfg b/resources/cl-impl.cfg index 58c550f5..f42b814c 100644 --- a/resources/cl-impl.cfg +++ b/resources/cl-impl.cfg @@ -21,29 +21,29 @@ GetProcAddressTableExpr addressTable ProcAddressNameExpr $UpperCase(arg) #dynamic binding for OpenGL specific functions... -ForceProcAddressGen clGetGLContextInfoKHR -ForceProcAddressGen clCreateFromGLBuffer -ForceProcAddressGen clCreateFromGLRenderbuffer -ForceProcAddressGen clCreateFromGLTexture2D -ForceProcAddressGen clCreateFromGLTexture3D -ForceProcAddressGen clEnqueueAcquireGLObjects -ForceProcAddressGen clEnqueueReleaseGLObjects -ForceProcAddressGen clGetGLObjectInfo -ForceProcAddressGen clGetGLTextureInfo -ForceProcAddressGen clCreateEventFromGLsyncKHR -ForceProcAddressGen clIcdGetPlatformIDsKHR -ForceProcAddressGen clCreateSubBuffer -ForceProcAddressGen clCreateSubDevicesEXT -ForceProcAddressGen clCreateUserEvent -ForceProcAddressGen clEnqueueCopyBufferRect -ForceProcAddressGen clEnqueueReadBufferRect -ForceProcAddressGen clEnqueueWriteBufferRect -ForceProcAddressGen clReleaseDeviceEXT -ForceProcAddressGen clRetainDeviceEXT -ForceProcAddressGen clSetUserEventStatus +#ForceProcAddressGen clGetGLContextInfoKHR +#ForceProcAddressGen clCreateFromGLBuffer +#ForceProcAddressGen clCreateFromGLRenderbuffer +#ForceProcAddressGen clCreateFromGLTexture2D +#ForceProcAddressGen clCreateFromGLTexture3D +#ForceProcAddressGen clEnqueueAcquireGLObjects +#ForceProcAddressGen clEnqueueReleaseGLObjects +#ForceProcAddressGen clGetGLObjectInfo +#ForceProcAddressGen clGetGLTextureInfo +#ForceProcAddressGen clCreateEventFromGLsyncKHR +#ForceProcAddressGen clIcdGetPlatformIDsKHR +#ForceProcAddressGen clCreateSubBuffer +#ForceProcAddressGen clCreateSubDevicesEXT +#ForceProcAddressGen clCreateUserEvent +#ForceProcAddressGen clEnqueueCopyBufferRect +#ForceProcAddressGen clEnqueueReadBufferRect +#ForceProcAddressGen clEnqueueWriteBufferRect +#ForceProcAddressGen clReleaseDeviceEXT +#ForceProcAddressGen clRetainDeviceEXT +#ForceProcAddressGen clSetUserEventStatus #...or force all -#ForceProcAddressGen __ALL__ +ForceProcAddressGen __ALL__ Unignore clGetExtensionFunctionAddress RenameJavaMethod clGetExtensionFunctionAddress clGetExtensionFunctionAddressImpl @@ -57,21 +57,29 @@ CustomCCode #include CustomCCode #include # implement manually via custom code -Ignore clCreateContext -Ignore clCreateContextFromType -Ignore clBuildProgram -Ignore clEnqueueNativeKernel -Ignore clReleaseContext +Ignore clCreateContext +ForceProcAddressGen clCreateContext + +Ignore clCreateContextFromType +ForceProcAddressGen clCreateContextFromType + +Ignore clBuildProgram +ForceProcAddressGen clBuildProgram + +Ignore clEnqueueNativeKernel +ForceProcAddressGen clEnqueueNativeKernel + +Ignore clReleaseContext +ForceProcAddressGen clReleaseContext #take buffer capacity from input param 5 ReturnValueCapacity clEnqueueMapBuffer {5} #this one is more complicated, we have to calculate the capacity with custom code ManuallyImplement clEnqueueMapImage +ForceProcAddressGen clEnqueueMapImage #include custom code IncludeAs CustomJavaCode CLAbstractImpl clImplCustomCode.java IncludeAs CustomCCode clImplCustomCode.c -#JavaEpilogue clCreateKernelsInProgram if(kernels!=null && CPU.is32Bit() && kernels.lenght > 1) { convert32To64(kernels); } - -- cgit v1.2.3