|
JOCLSample.java |
A small sample demonstrating the basic application of JOCL. The sample just compiles the inlined source code for a kernel that multiplies two arrays, and compares the result which is computed by this kernel to a reference that is computed with plain Java. | |
|
JOCLSample_1_1.java |
A small sample demonstrating some of the new functions that have been added with OpenCL 1.1. | |
|
JOCLDeviceQuery.java |
Queries and prints information about all available devices. | |
|
HistogramAMD.java The source file for the histogram kernel from the AMD sample: Histogram_Kernels.cl |
A direct port of the "Histogram" sample from the AMD ATI Stream SDK. | |
|
HistogramNVIDIA.java The source file for the 256-bin histogram kernel from the NVIDIA sample: Histogram256.cl |
A direct port of the "oclHistogram" sample from the NVIDIA GPU computing SDK. | |
|
JOCLEventSample.java |
A sample demonstrating basic event handling, and how to obtain profiling information for a command queue. | |
|
JOCLSimpleGL3.java The source file for the simple GL kernel from the NVIDIA sample: simpleGL.cl |
This sample uses the kernel from NVIDIAs "oclSimpleGL" application to
demonstrate basic JOCL/JOGL interoperability.
This sample has been created for JOGL 2.0. Earlier versions of JOGL did not support the functions necessary for creating an OpenCL context that allows buffer sharing between JOCL and JOGL. Note that the buffer sharing could not be tested on MacOS until now. The latest version of JOGL may be downloaded from the JOGL home page. NetBeans users may wish to download JOGL together with the Netbeans OpenGL Pack from the NetBeans OpenGL Pack page. | |
|
The source file for the simple GL kernel from the NVIDIA sample: simpleGL.cl |
This sample uses the kernel from NVIDIAs "oclSimpleGL" application to
demonstrate basic JOCL/JOGL interoperability. This sample has been created with JOGL 1.1.1a, and does not support real buffer sharing between JOCL and JOGL. |
|
|
JOCLSimpleMandelbrot.java The kernel source file: SimpleMandelbrot.cl |
A program that uses a very simple kernel for computing a Mandelbrot fractal,
which is then stored in a BufferedImage that is displayed with Swing.
|
|
|
JOCLMandelbrot.java The kernel source files: QuadFloat.cl QuadFloatMandelbrot.cl |
A program that computes the Mandelbrot set and stores the pixels in
a BufferedImage which is displayed with Swing. This program uses an
OpenCL kernel that performs the computation with "Quad-Float" values,
which are high-precision floating point values that are represented
as a float4. Additionally, this sample will distribute the workload
among all available devices for a single platform (although this
could not be tested until now). The Quad-Float functions are summarized in a separate source file, so these may also be used in other applications. These functions have been created by porting parts of the Quad-Double package from http://crd.lbl.gov/~dhbailey/mpdist/index.html to the float4 type of OpenCL.
|
|
|
JOCLSimpleConvolution.java The kernel source file: SimpleConvolution.cl The sample input image: lena512color.png |
A program that performs a convolution of an image. The JOCL part is
implemented as a java.awt.image.BufferedImageOp, and may thus
be used easily as a replacement for the java.awt.image.ConvolveOp.
The program allows selecting different convolution kernels and compares
the speed of the JOCL and the plain Java implementation.
|
|
|
JOCLSimpleImage.java The sample input image: lena512color.png |
A simple example demonstrating image handling between
JOCL and Swing. It shows an animation of a rotating image,
which is rotated using an OpenCL kernel involving some
basic image operations.
|