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 class
OpenCLPlatform.Device
(package private) static class
OpenCLPlatform.Platform
-
Field Summary
Fields Modifier and Type Field Description private Logger
logger
private OpenCLOptions
openCLOptions
(package private) OpenCLPlatform.Device
selectedDevice
(package private) OpenCLPlatform.Platform
selectedPlatform
-
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 Context
createContext()
private OpenCLPlatform.Device
findBestDevice(java.util.List<OpenCLPlatform.Platform> platforms, OpenCLOptions clOptions)
DeviceProperties
getDeviceProperties()
private static int
getInt(org.jocl.cl_device_id device, int paramName)
private static int[]
getInts(org.jocl.cl_device_id device, int paramName, int numValues)
private static long
getLong(org.jocl.cl_device_id device, int paramName)
private static long[]
getLongs(org.jocl.cl_device_id device, int paramName, int numValues)
PlatformProperties
getPlatformProperties()
private static long
getSize(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.String
getString(org.jocl.cl_device_id device, int paramName)
private static java.lang.String
getString(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:
getPlatformProperties
in interfacePlatform
-
getDeviceProperties
public DeviceProperties getDeviceProperties()
- Specified by:
getDeviceProperties
in interfacePlatform
-
createContext
public Context createContext()
- Specified by:
createContext
in 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)
-
-