Package net.bmahe.genetics4j.gpu.opencl
Class DeviceUtils
java.lang.Object
net.bmahe.genetics4j.gpu.opencl.DeviceUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<org.jocl.cl_device_id> getDeviceIds
(org.jocl.cl_platform_id platformId, int numDevices) static List
<org.jocl.cl_device_id> getDeviceIds
(org.jocl.cl_platform_id platformId, int numDevices, long deviceType) static int
getDeviceInfoInt
(org.jocl.cl_device_id deviceId, int parameter) static long
getDeviceInfoLong
(org.jocl.cl_device_id deviceId, int parameter) static long[]
getDeviceInfoLongArray
(org.jocl.cl_device_id deviceId, int parameter, int size) static String
getDeviceInfoString
(org.jocl.cl_device_id deviceId, int parameter) static int
numDevices
(org.jocl.cl_platform_id platformId) static int
numDevices
(org.jocl.cl_platform_id platformId, long deviceType)
-
Constructor Details
-
DeviceUtils
private DeviceUtils()
-
-
Method Details
-
numDevices
public static int numDevices(org.jocl.cl_platform_id platformId, long deviceType) -
numDevices
public static int numDevices(org.jocl.cl_platform_id platformId) -
getDeviceIds
public static List<org.jocl.cl_device_id> getDeviceIds(org.jocl.cl_platform_id platformId, int numDevices, long deviceType) -
getDeviceIds
public static List<org.jocl.cl_device_id> getDeviceIds(org.jocl.cl_platform_id platformId, int numDevices) -
getDeviceInfoString
-
getDeviceInfoLongArray
public static long[] getDeviceInfoLongArray(org.jocl.cl_device_id deviceId, int parameter, int size) -
getDeviceInfoLong
public static long getDeviceInfoLong(org.jocl.cl_device_id deviceId, int parameter) -
getDeviceInfoInt
public static int getDeviceInfoInt(org.jocl.cl_device_id deviceId, int parameter)
-