summaryrefslogtreecommitdiffstats
path: root/make/resources/cl-common.cfg
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2013-12-15 16:16:18 -0600
committerWade Walker <[email protected]>2013-12-15 16:24:11 -0600
commit9ecc606bce374ea093c6321f2d4921b5019a0b18 (patch)
treea9029d561ebed9135ac599dc5941c3d760af3167 /make/resources/cl-common.cfg
parentd1113c49ed95a2089decdc5c270a29fcbd233d68 (diff)
Bug 884: Add standard JogAmp build files.
The new make/build.xml successfully builds and tests the project. The original NetBeans build files are still present, but won't work anymore since the resources directory is now inside the make directory. The new build files are based on those of JOAL. The new build is not yet minimized and cleaned up, because this commit is meant to be the minimum way to get things functional.
Diffstat (limited to 'make/resources/cl-common.cfg')
-rw-r--r--make/resources/cl-common.cfg120
1 files changed, 120 insertions, 0 deletions
diff --git a/make/resources/cl-common.cfg b/make/resources/cl-common.cfg
new file mode 100644
index 00000000..d89643b9
--- /dev/null
+++ b/make/resources/cl-common.cfg
@@ -0,0 +1,120 @@
+JavaOutputDir gensrc/java
+NativeOutputDir gensrc/native
+
+Package com.jogamp.opencl.llb
+
+#map pointers to long as internal representation
+Opaque long cl_context
+Opaque long cl_device_type
+Opaque long cl_command_queue
+Opaque long cl_mem
+Opaque long cl_program
+Opaque long cl_kernel
+Opaque long cl_event
+Opaque long cl_sampler
+Opaque long cl_platform_id
+Opaque long cl_device_id
+Opaque long cl_GLsync
+
+ArgumentIsString clCreateProgramWithSource 2
+ArgumentIsString clBuildProgram 3
+ArgumentIsString clCreateKernel 1
+
+#common ignore
+Ignore clGetExtensionFunctionAddress
+Ignore CL_UINT_MAX
+Ignore CL_LONG_MAX
+Ignore CL_LONG_MIN
+Ignore CL_ULONG_MAX
+
+
+#use IllegalArgumentException for argument validation
+RuntimeExceptionType IllegalArgumentException
+
+#enforce client side "good behavior" by generating direct-memory-only bindings for
+#performance critical functions.
+#NioDirectOnly __ALL__
+
+#command queue ops
+NioDirectOnly clEnqueueBarrier
+NioDirectOnly clEnqueueCopyBuffer
+NioDirectOnly clEnqueueCopyBufferRect
+NioDirectOnly clEnqueueCopyBufferToImage
+NioDirectOnly clEnqueueCopyImage
+NioDirectOnly clEnqueueCopyImageToBuffer
+NioDirectOnly clEnqueueMapBuffer
+NioDirectOnly clEnqueueMapImage
+NioDirectOnly clEnqueueMarker
+NioDirectOnly clEnqueueNDRangeKernel
+NioDirectOnly clEnqueueReadBuffer
+NioDirectOnly clEnqueueReadBufferRect
+NioDirectOnly clEnqueueReadImage
+NioDirectOnly clEnqueueTask
+NioDirectOnly clEnqueueUnmapMemObject
+NioDirectOnly clEnqueueWaitForEvents
+NioDirectOnly clEnqueueWriteBuffer
+NioDirectOnly clEnqueueWriteBufferRect
+NioDirectOnly clEnqueueWriteImage
+NioDirectOnly clEnqueueAcquireGLObjects
+NioDirectOnly clEnqueueReleaseGLObjects
+#kernel ops
+NioDirectOnly clSetKernelArg
+
+#temporary disable all functions containing long[] until 32bit compatibility is fixed
+NioDirectOnly clCreateKernelsInProgram
+NioDirectOnly clCreateProgramWithBinary
+NioDirectOnly clCreateProgramWithSource
+#NioDirectOnly clCreateBuffer
+#NioDirectOnly clCreateUserEvent
+
+NioDirectOnly clGetCommandQueueInfo
+NioDirectOnly clGetContextInfo
+NioDirectOnly clGetDeviceIDs
+NioDirectOnly clGetDeviceInfo
+NioDirectOnly clGetEventInfo
+NioDirectOnly clGetEventProfilingInfo
+NioDirectOnly clGetImageInfo
+NioDirectOnly clGetKernelInfo
+NioDirectOnly clGetKernelWorkGroupInfo
+NioDirectOnly clGetMemObjectInfo
+NioDirectOnly clGetPlatformIDs
+NioDirectOnly clGetPlatformInfo
+NioDirectOnly clGetProgramBuildInfo
+NioDirectOnly clGetProgramInfo
+NioDirectOnly clGetSamplerInfo
+#NioDirectOnly clGetSupportedImageFormats
+
+NioDirectOnly clSetCommandQueueProperty
+NioDirectOnly clWaitForEvents
+#NioDirectOnly clCreateContext
+#NioDirectOnly clBuildProgram
+NioDirectOnly clIcdGetPlatformIDsKHR
+
+#extensions
+NioDirectOnly clGetGLContextInfoKHR
+#NioDirectOnly clCreateSubDevicesEXT
+
+
+#common rename emitted struct accessors
+#struct cl_image_format
+RenameJavaType cl_image_format CLImageFormatImpl
+StructPackage cl_image_format com.jogamp.opencl.llb.impl
+
+#struct fields ([set|get]+FieldName())
+RenameJavaMethod image_channel_order imageChannelOrder
+RenameJavaMethod image_channel_data_type imageChannelDataType
+
+
+ClassJavadoc CLImageFormatImpl /**
+ClassJavadoc CLImageFormatImpl * Struct accessor for cl_image_format.
+ClassJavadoc CLImageFormatImpl * @author Michael Bien, GlueGen, et al.
+ClassJavadoc CLImageFormatImpl */
+
+
+# Pick up on-line OpenCL doc and link it with the javadoc
+TagNativeBinding true
+
+# platform dependent extensions
+Ignore .*APPLE.*
+
+Ignore nanf