Top Constructors Methods
com.jogamp.opencl.util

public Class CLUtil

extends Object
Class Inheritance
Imports
com.jogamp.common.JogampRuntimeException, com.jogamp.opencl.llb.CL, com.jogamp.opencl.CLDevice, .CLPlatform, .CLProperty, java.lang.annotation.Annotation, java.lang.reflect.InvocationTargetException, .Method, java.nio.ByteBuffer, java.util.ArrayList, .LinkedHashMap, .List, .Map

Author
Michael Bien

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static List<Number>
asList(final Object info)

public static boolean
clBoolean(final int clBoolean)

Returns true if clBoolean == CL.CL_TRUE.

public static int
clBoolean(final boolean b)

Returns b ?

public static String
clString2JavaString(final byte[] chars, int clLength)

public static String
clString2JavaString(final ByteBuffer chars, final int clLength)

pack-priv static Map<String, String>
invoke(final List<Method> methods, final Object obj)

pack-priv static List<Method>
listMethods(final Class<?> clazz)

public static Map<String, String>
obtainDeviceProperties(final CLDevice dev)

Reads all device properties and returns them as key-value map.

public static Map<String, String>
obtainPlatformProperties(final CLPlatform platform)

Reads all platform properties and returns them as key-value map.

private static Map<String, String>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CLUtilback to summary
public CLUtil()

Method Detail

asListback to summary
private static List<Number> asList(final Object info)
clBooleanback to summary
public static boolean clBoolean(final int clBoolean)

Returns true if clBoolean == CL.CL_TRUE.

clBooleanback to summary
public static int clBoolean(final boolean b)

Returns b ? CL.CL_TRUE : CL.CL_FALSE

clString2JavaStringback to summary
public static String clString2JavaString(final byte[] chars, int clLength)
clString2JavaStringback to summary
public static String clString2JavaString(final ByteBuffer chars, final int clLength)
invokeback to summary
pack-priv static Map<String, String> invoke(final List<Method> methods, final Object obj) throws IllegalArgumentException, IllegalAccessException
listMethodsback to summary
pack-priv static List<Method> listMethods(final Class<?> clazz) throws SecurityException
obtainDevicePropertiesback to summary
public static Map<String, String> obtainDeviceProperties(final CLDevice dev)

Reads all device properties and returns them as key-value map.

obtainPlatformPropertiesback to summary
public static Map<String, String> obtainPlatformProperties(final CLPlatform platform)

Reads all platform properties and returns them as key-value map.

readCLPropertiesback to summary
private static Map<String, String> readCLProperties(final Object obj)