aboutsummaryrefslogtreecommitdiffstats
path: root/test/com/jogamp/opencl/CLCommandQueueTest.java
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2015-10-24 19:18:09 -0700
committerWade Walker <[email protected]>2015-11-08 14:05:34 -0600
commit215901444d8fd98a14f190e6aa10c17b84ee4b7d (patch)
treec6f20ee4b437d0253098196d9a4d9dc588657889 /test/com/jogamp/opencl/CLCommandQueueTest.java
parent2739f7be10bd7fbd11d4a85d2e7636793f9c815e (diff)
Fix command queue test for Intel
User events start as CL_SUBMITTED instead of CL_QUEUE on Intel.
Diffstat (limited to 'test/com/jogamp/opencl/CLCommandQueueTest.java')
-rw-r--r--test/com/jogamp/opencl/CLCommandQueueTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/com/jogamp/opencl/CLCommandQueueTest.java b/test/com/jogamp/opencl/CLCommandQueueTest.java
index ef5622a2..d4555c44 100644
--- a/test/com/jogamp/opencl/CLCommandQueueTest.java
+++ b/test/com/jogamp/opencl/CLCommandQueueTest.java
@@ -347,7 +347,12 @@ public class CLCommandQueueTest extends UITestCase {
Thread.sleep(1000);
final CLEvent status = events.getEvent(0);
- assertEquals(ExecutionStatus.QUEUED, status.getStatus());
+ // on Intel, user events start as submitted instead of queued
+ if(context.getPlatform().isVendorIntel())
+ assertEquals(ExecutionStatus.SUBMITTED, status.getStatus());
+ else
+ assertEquals(ExecutionStatus.QUEUED, status.getStatus());
+
condition.setComplete();
assertTrue(condition.isComplete());