diff options
author | Michael Bien <[email protected]> | 2010-02-22 12:47:41 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-22 12:47:41 +0100 |
commit | 7c83da1d2e3e8d122e562408a63a13928cc97c83 (patch) | |
tree | 78957152423cc8b3623feae6b7376e047b0d04ae /src/com/mbien/opencl/CLDevice.java | |
parent | b014104bc4d2c7b05767bf5364b8b972474850d1 (diff) |
several small refactorings, api and javadoc improvements.
added automatically generated specialized CLExceptions for each known OpenCL error.
added get/set Properties to CLCommandQueue.
Diffstat (limited to 'src/com/mbien/opencl/CLDevice.java')
-rw-r--r-- | src/com/mbien/opencl/CLDevice.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/mbien/opencl/CLDevice.java b/src/com/mbien/opencl/CLDevice.java index cd569586..941b8560 100644 --- a/src/com/mbien/opencl/CLDevice.java +++ b/src/com/mbien/opencl/CLDevice.java @@ -15,7 +15,11 @@ import java.util.Set; import static com.mbien.opencl.CL.*; /** - * + * This object represents an OpenCL device. + * @see CLPlatform#listCLDevices(com.mbien.opencl.CLDevice.Type) + * @see CLPlatform#getMaxFlopsDevice(com.mbien.opencl.CLDevice.Type) + * @see CLContext#getDevices() + * @see CLContext#getMaxFlopsDevice(com.mbien.opencl.CLDevice.Type) * @author Michael Bien */ public final class CLDevice { @@ -68,11 +72,11 @@ public final class CLDevice { return context.createCommandQueue(this, properties); } - /*keep this package private for now, may be null*/ - CLContext getContext() { + public CLContext getContext() { return context; } + /*keep this package private*/ void setContext(CLContext context) { this.context = context; } |