diff options
author | Wade Walker <[email protected]> | 2015-10-24 19:18:09 -0700 |
---|---|---|
committer | Wade Walker <[email protected]> | 2015-11-08 14:05:34 -0600 |
commit | 215901444d8fd98a14f190e6aa10c17b84ee4b7d (patch) | |
tree | c6f20ee4b437d0253098196d9a4d9dc588657889 /test | |
parent | 2739f7be10bd7fbd11d4a85d2e7636793f9c815e (diff) |
Fix command queue test for Intel
User events start as CL_SUBMITTED instead of CL_QUEUE on Intel.
Diffstat (limited to 'test')
-rw-r--r-- | test/com/jogamp/opencl/CLCommandQueueTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/com/jogamp/opencl/CLCommandQueueTest.java b/test/com/jogamp/opencl/CLCommandQueueTest.java index ef5622a..d4555c4 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()); |