Class OpenCLPlatform
java.lang.Object
de.mirkosertic.bytecoder.core.backend.opencl.OpenCLPlatform
- All Implemented Interfaces:
Platform
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Loggerprivate final OpenCLOptions(package private) final OpenCLPlatform.Device(package private) final OpenCLPlatform.Platform -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate OpenCLPlatform.DevicefindBestDevice(List<OpenCLPlatform.Platform> platforms, OpenCLOptions clOptions) private static intgetInt(org.jocl.cl_device_id device, int paramName) private static int[]getInts(org.jocl.cl_device_id device, int paramName, int numValues) private static longgetLong(org.jocl.cl_device_id device, int paramName) private static long[]getLongs(org.jocl.cl_device_id device, int paramName, int numValues) private static longgetSize(org.jocl.cl_device_id device, int paramName) private static long[]getSizes(org.jocl.cl_device_id device, int paramName, int numValues) private static StringgetString(org.jocl.cl_device_id device, int paramName) private static StringgetString(org.jocl.cl_platform_id platform, int paramName) getSystemPropertyAsInt(String name)
-
Field Details
-
selectedPlatform
-
selectedDevice
-
logger
-
openCLOptions
-
-
Constructor Details
-
OpenCLPlatform
-
-
Method Details
-
getPlatformProperties
- Specified by:
getPlatformPropertiesin interfacePlatform
-
getDeviceProperties
- Specified by:
getDevicePropertiesin interfacePlatform
-
createContext
- Specified by:
createContextin interfacePlatform
-
findBestDevice
private OpenCLPlatform.Device findBestDevice(List<OpenCLPlatform.Platform> platforms, OpenCLOptions clOptions) -
getSystemPropertyAsInt
-
getString
-
getString
-
getSize
private static long getSize(org.jocl.cl_device_id device, int paramName) -
getSizes
private static long[] getSizes(org.jocl.cl_device_id device, int paramName, int numValues) -
getLong
private static long getLong(org.jocl.cl_device_id device, int paramName) -
getLongs
private static long[] getLongs(org.jocl.cl_device_id device, int paramName, int numValues) -
getInt
private static int getInt(org.jocl.cl_device_id device, int paramName) -
getInts
private static int[] getInts(org.jocl.cl_device_id device, int paramName, int numValues)
-