summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLDevice.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-07-03 16:58:29 +0200
committerMichael Bien <[email protected]>2010-07-03 16:58:29 +0200
commit974e23998611bef3b9170504ed835759a4de1666 (patch)
treedc75b9341e6e1ea3a738f32eec587b5d3eb8f3b4 /src/com/jogamp/opencl/CLDevice.java
parentc5dae5bba63a082fb8eac420b3b70786cdec54e1 (diff)
update due to changes in JDK7's ARM spec.
added AutoCloseable dummy for backwards compatibility (won't be loaded when used with JDK7) can be further improved as soon we have extension methods.
Diffstat (limited to 'src/com/jogamp/opencl/CLDevice.java')
-rw-r--r--src/com/jogamp/opencl/CLDevice.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/jogamp/opencl/CLDevice.java b/src/com/jogamp/opencl/CLDevice.java
index 99ef3fe9..22fc7fcf 100644
--- a/src/com/jogamp/opencl/CLDevice.java
+++ b/src/com/jogamp/opencl/CLDevice.java
@@ -27,7 +27,7 @@ import static com.jogamp.opencl.CL.*;
public final class CLDevice extends CLObject {
private Set<String> extensions;
-
+
private final CLDeviceInfoAccessor deviceInfo;
CLDevice(CL cl, long id) {
@@ -57,13 +57,13 @@ public final class CLDevice extends CLObject {
}
return createCommandQueue(flags);
}
-
+
public CLCommandQueue createCommandQueue(long properties) {
if(context == null)
throw new IllegalStateException("this device is not associated with a context");
return context.createCommandQueue(this, properties);
}
-
+
/*keep this package private*/
void setContext(CLContext context) {
this.context = context;
@@ -535,7 +535,7 @@ public final class CLDevice extends CLObject {
}
}
buffer.rewind();
-
+
return array;
}
@@ -759,7 +759,7 @@ public final class CLDevice extends CLObject {
* Read-write cache.
*/
READ_WRITE(CL_READ_WRITE_CACHE);
-
+
/**
* Value of wrapped OpenCL value.