Examples of clCreateSubDevicesEXT()


Examples of com.jogamp.opencl.llb.CL.clCreateSubDevicesEXT()

    private CLSubDevice[] createSubDevices(LongBuffer props) {

        CL cl = CLPlatform.getLowLevelCLInterface();

        IntBuffer ib = Buffers.newDirectIntBuffer(1);
        int ret = cl.clCreateSubDevicesEXT(ID, props, 0, null, ib);
        CLException.checkForError(ret, "create sub devices failed");

        int count = ib.get(0);
        NativeSizeBuffer ids = NativeSizeBuffer.allocateDirect(count);
        ret = cl.clCreateSubDevicesEXT(ID, props, count, ids, null);
View Full Code Here

Examples of com.jogamp.opencl.llb.CL.clCreateSubDevicesEXT()

        int ret = cl.clCreateSubDevicesEXT(ID, props, 0, null, ib);
        CLException.checkForError(ret, "create sub devices failed");

        int count = ib.get(0);
        NativeSizeBuffer ids = NativeSizeBuffer.allocateDirect(count);
        ret = cl.clCreateSubDevicesEXT(ID, props, count, ids, null);
        CLException.checkForError(ret, "create sub devices failed");

        CLSubDevice[] devices = new CLSubDevice[count];
        for (int i = 0; i < devices.length; i++) {
            devices[i] = CLSubDevice.createSubDevice(this, ids.get());
View Full Code Here

Examples of com.jogamp.opencl.llb.CL.clCreateSubDevicesEXT()

    private CLSubDevice[] createSubDevices(LongBuffer props) {

        CL cl = CLPlatform.getLowLevelCLInterface();

        IntBuffer ib = Buffers.newDirectIntBuffer(1);
        int ret = cl.clCreateSubDevicesEXT(ID, props, 0, null, ib);
        CLException.checkForError(ret, "create sub devices failed");

        int count = ib.get(0);
        NativeSizeBuffer ids = NativeSizeBuffer.allocateDirect(count);
        ret = cl.clCreateSubDevicesEXT(ID, props, count, ids, null);
View Full Code Here

Examples of com.jogamp.opencl.llb.CL.clCreateSubDevicesEXT()

        int ret = cl.clCreateSubDevicesEXT(ID, props, 0, null, ib);
        CLException.checkForError(ret, "create sub devices failed");

        int count = ib.get(0);
        NativeSizeBuffer ids = NativeSizeBuffer.allocateDirect(count);
        ret = cl.clCreateSubDevicesEXT(ID, props, count, ids, null);
        CLException.checkForError(ret, "create sub devices failed");

        CLSubDevice[] devices = new CLSubDevice[count];
        for (int i = 0; i < devices.length; i++) {
            devices[i] = CLSubDevice.createSubDevice(this, ids.get());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.