aboutsummaryrefslogtreecommitdiffstats
path: root/test/com/jogamp/opencl/CLCommandQueueTest.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-11-22 02:24:25 +0100
committerMichael Bien <[email protected]>2010-11-22 02:24:25 +0100
commit99a8764c3ab9dd80d8d5ac33ed244c0928376a24 (patch)
tree95da917a440cc09f84b54a7919f648cc70af104f /test/com/jogamp/opencl/CLCommandQueueTest.java
parente0925f59830af902f214b1b71f3cdaf011dbcc7f (diff)
fixed customEventsTest (was: segfault with CL 1.0, now: disabled on CL 1.0)
Diffstat (limited to 'test/com/jogamp/opencl/CLCommandQueueTest.java')
-rw-r--r--test/com/jogamp/opencl/CLCommandQueueTest.java15
1 files changed, 4 insertions, 11 deletions
diff --git a/test/com/jogamp/opencl/CLCommandQueueTest.java b/test/com/jogamp/opencl/CLCommandQueueTest.java
index d25d5aae..c8acc6df 100644
--- a/test/com/jogamp/opencl/CLCommandQueueTest.java
+++ b/test/com/jogamp/opencl/CLCommandQueueTest.java
@@ -193,19 +193,12 @@ public class CLCommandQueueTest {
}
}
- final CLContext context = CLContext.create(theChosenOne);
-
- // we expect an UOE if CL 1.1 is not supported
if(!theChosenOne.isAtLeast(CL_1_1)) {
- try{
- CLUserEvent.create(context);
- fail("");
- }catch(UnsupportedOperationException ex) {
- out.println("test dissabled, required CLVersion: "+CL_1_1+" available: "+theChosenOne.getVersion());
- return;
- }
+ out.println("test disabled, required CLVersion: "+CL_1_1+" available: "+theChosenOne.getVersion());
}
+ final CLContext context = CLContext.create(theChosenOne);
+
try{
CLDevice device = context.getDevices()[0];
int groupSize = device.getMaxWorkItemSizes()[0];
@@ -269,7 +262,7 @@ public class CLCommandQueueTest {
CLPlatform platform = CLPlatform.getDefault();
if(!platform.isAtLeast(CL_1_1)) {
- out.println("test dissabled, required CLVersion: "+CL_1_1+" available: "+platform.getVersion());
+ out.println("test disabled, required CLVersion: "+CL_1_1+" available: "+platform.getVersion());
return;
}