@Override
    public void simpleInitApp() {
        BitmapFont fnt = assetManager.loadFont("Interface/Fonts/Default.fnt");
        Context clContext = context.getOpenCLContext();
        if (clContext == null) {
            BitmapText txt = new BitmapText(fnt);
            txt.setText("No OpenCL Context created!\nSee output log for details.");
            txt.setLocalTranslation(5, settings.getHeight() - 5, 0);
            guiNode.attachChild(txt);
            return;
        }
        CommandQueue clQueue = clContext.createQueue(clContext.getDevices().get(0));
        
        StringBuilder str = new StringBuilder();
        str.append("OpenCL Context created:\n  Platform: ")
                .append(clContext.getDevices().get(0).getPlatform().getName())
                .append("\n  Devices: ").append(clContext.getDevices());
        str.append("\nTests:");
        str.append("\n  Random numbers: ").append(testRandom(clContext, clQueue));
        str.append("\n  Matrix3f: ").append(testMatrix3f(clContext, clQueue));
        str.append("\n  Matrix4f: ").append(testMatrix4f(clContext, clQueue));
        
        clQueue.release();
        
        BitmapText txt1 = new BitmapText(fnt);
        txt1.setText(str.toString());
        txt1.setLocalTranslation(5, settings.getHeight() - 5, 0);
        guiNode.attachChild(txt1);
        
        flyCam.setEnabled(false);
        inputManager.setCursorVisible(true);
    }
Test class for the build in libraries
@author shaman
jme3-examples/src/main/java/jme3test/opencl/TestOpenCLLibraries.java