diff options
author | Michael Bien <[email protected]> | 2009-10-01 01:19:17 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-10-01 01:19:17 +0200 |
commit | be4e9559f16e3ac5a5d109b26fbb9d579345f25c (patch) | |
tree | 2e1dddf49650c1d7eade1aea936c0c76b735e5d1 /src/com/mbien/opencl/CLPlatform.java | |
parent | a550876d23b84427667111c5e2700766752b6040 (diff) |
added utility methods and getters to CLPlatform, CLDevice and CLContext.
adapted unit test.
Diffstat (limited to 'src/com/mbien/opencl/CLPlatform.java')
-rw-r--r-- | src/com/mbien/opencl/CLPlatform.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLPlatform.java b/src/com/mbien/opencl/CLPlatform.java index 582e8abc..252872dc 100644 --- a/src/com/mbien/opencl/CLPlatform.java +++ b/src/com/mbien/opencl/CLPlatform.java @@ -6,9 +6,13 @@ import java.nio.ByteBuffer; * * @author Michael Bien */ -public class CLPlatform { +public final class CLPlatform { + + /** + * OpenCL platform id for this platform. + */ + public final long platformID; - private final long platformID; private final CL cl; CLPlatform(CL cl, long id) { @@ -16,6 +20,9 @@ public class CLPlatform { this.cl = cl; } + /** + * Lists all physical devices available on this platform. + */ public CLDevice[] listCLDevices() { int[] intBuffer = new int[1]; |