Package org.jocl

Examples of org.jocl.cl_kernel


            1, new String[] {programSource} , null, null);

        // Build the program
        clBuildProgram(program, 0, null, null, null, null);
        // Create the kernel
        cl_kernel kernel = clCreateKernel(program, "sampleKernel", null);
        // Set the arguments for the kernel
        clSetKernelArg(kernel, 0,
            Sizeof.cl_mem, Pointer.to(memObjects[0]));
        clSetKernelArg(kernel, 1,
            Sizeof.cl_mem, Pointer.to(memObjects[1]));
View Full Code Here

TOP

Related Classes of org.jocl.cl_kernel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.