Jogamp
Fix command queue test for Intel
authorWade Walker <wwalker3@austin.rr.com>
Sun, 25 Oct 2015 02:18:09 +0000 (19:18 -0700)
committerWade Walker <wwalker3@austin.rr.com>
Sun, 8 Nov 2015 20:05:34 +0000 (14:05 -0600)
User events start as CL_SUBMITTED instead of CL_QUEUE on Intel.

test/com/jogamp/opencl/CLCommandQueueTest.java

index ef5622a..d4555c4 100644 (file)
@@ -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());
 
http://JogAmp.org git info: FAQ, tutorial and man pages.