Class OpenCLPlatform
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.backend.opencl.OpenCLPlatform
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classOpenCLPlatform.Device(package private) static classOpenCLPlatform.Platform
-
Field Summary
Fields Modifier and Type Field Description private Loggerloggerprivate OpenCLOptionsopenCLOptions(package private) OpenCLPlatform.DeviceselectedDevice(package private) OpenCLPlatform.PlatformselectedPlatform
-
Constructor Summary
Constructors Constructor Description OpenCLPlatform(Logger aLogger, OpenCLOptions aOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextcreateContext()private OpenCLPlatform.DevicefindBestDevice(java.util.List<OpenCLPlatform.Platform> platforms, OpenCLOptions clOptions)DevicePropertiesgetDeviceProperties()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)PlatformPropertiesgetPlatformProperties()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 java.lang.StringgetString(org.jocl.cl_device_id device, int paramName)private static java.lang.StringgetString(org.jocl.cl_platform_id platform, int paramName)private java.util.Optional<java.lang.Integer>getSystemPropertyAsInt(java.lang.String name)
-
-
-
Field Detail
-
selectedPlatform
final OpenCLPlatform.Platform selectedPlatform
-
selectedDevice
final OpenCLPlatform.Device selectedDevice
-
logger
private final Logger logger
-
openCLOptions
private final OpenCLOptions openCLOptions
-
-
Constructor Detail
-
OpenCLPlatform
public OpenCLPlatform(Logger aLogger, OpenCLOptions aOptions)
-
-
Method Detail
-
getPlatformProperties
public PlatformProperties getPlatformProperties()
- Specified by:
getPlatformPropertiesin interfacePlatform
-
getDeviceProperties
public DeviceProperties getDeviceProperties()
- Specified by:
getDevicePropertiesin interfacePlatform
-
createContext
public Context createContext()
- Specified by:
createContextin interfacePlatform
-
findBestDevice
private OpenCLPlatform.Device findBestDevice(java.util.List<OpenCLPlatform.Platform> platforms, OpenCLOptions clOptions)
-
getSystemPropertyAsInt
private java.util.Optional<java.lang.Integer> getSystemPropertyAsInt(java.lang.String name)
-
getString
private static java.lang.String getString(org.jocl.cl_platform_id platform, int paramName)
-
getString
private static java.lang.String getString(org.jocl.cl_device_id device, int paramName)
-
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)
-
-