public class CLUtil extends Object
Constructor and Description |
---|
CLUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
clBoolean(boolean b)
Returns b ? CL.CL_TRUE : CL.CL_FALSE
|
static boolean |
clBoolean(int clBoolean)
Returns true if clBoolean == CL.CL_TRUE.
|
static String |
clString2JavaString(byte[] chars,
int clLength) |
static String |
clString2JavaString(ByteBuffer chars,
int clLength) |
static Map<String,String> |
obtainDeviceProperties(CLDevice dev)
Reads all device properties and returns them as key-value map.
|
static Map<String,String> |
obtainPlatformProperties(CLPlatform platform)
Reads all platform properties and returns them as key-value map.
|
public static String clString2JavaString(byte[] chars, int clLength)
public static String clString2JavaString(ByteBuffer chars, int clLength)
public static boolean clBoolean(int clBoolean)
public static int clBoolean(boolean b)
public static Map<String,String> obtainPlatformProperties(CLPlatform platform)