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 Logger
private final OpenCLOptions
(package private) final OpenCLPlatform.Device
(package private) final OpenCLPlatform.Platform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate OpenCLPlatform.Device
findBestDevice
(List<OpenCLPlatform.Platform> platforms, OpenCLOptions clOptions) 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) 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 String
getString
(org.jocl.cl_device_id device, int paramName) private static String
getString
(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:
getPlatformProperties
in interfacePlatform
-
getDeviceProperties
- Specified by:
getDeviceProperties
in interfacePlatform
-
createContext
- Specified by:
createContext
in 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)
-