Skip to content
Snippets Groups Projects
Commit 0106d6cd authored by Gary Frost's avatar Gary Frost
Browse files

Add verification that the code ran on GPU. Otherwise we get a false positive.

parent 033364bd
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,8 @@ public class CallStaticFromAnonymousKernel { ...@@ -41,6 +41,8 @@ public class CallStaticFromAnonymousKernel {
} }
}; };
kernel.execute(size); kernel.execute(size);
assertTrue("ran on GPU", kernel.getExecutionMode()==Kernel.EXECUTION_MODE.GPU);
for(int i=0; i<size; i++) { for(int i=0; i<size; i++) {
System.out.println(results[i] + " == " + fooBar(values[i]) + AnotherClass.foo(i)); System.out.println(results[i] + " == " + fooBar(values[i]) + AnotherClass.foo(i));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment