diff options
author | Michael Bien <[email protected]> | 2009-11-02 02:18:21 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-11-02 02:18:21 +0100 |
commit | b2dfcb34a4cdc9c45d5ce20a2b1559b4bf3ebb8c (patch) | |
tree | 1245bfc07fdf03618a7d867c46e49e0762ccb967 /test | |
parent | 1690ead6c21b61bd337706b836c04164940eed69 (diff) |
refactoring and more utility methods.
Diffstat (limited to 'test')
-rw-r--r-- | test/com/mbien/opencl/HighLevelBindingTest.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/com/mbien/opencl/HighLevelBindingTest.java b/test/com/mbien/opencl/HighLevelBindingTest.java index 915a5ce2..4665c27d 100644 --- a/test/com/mbien/opencl/HighLevelBindingTest.java +++ b/test/com/mbien/opencl/HighLevelBindingTest.java @@ -54,6 +54,7 @@ public class HighLevelBindingTest { out.println(" profile: "+platform.getProfile()); out.println(" version: "+platform.getVersion()); out.println(" vendor: "+platform.getVendor()); + out.println(" max FLOPS device: "+platform.getMaxFlopsDevice()); CLDevice[] clDevices = platform.listCLDevices(); for (CLDevice device : clDevices) { @@ -95,18 +96,16 @@ public class HighLevelBindingTest { out.println(" "+device.toString()); } + out.println("max FLOPS device: " + context.getMaxFlopsDevice()); + CLProgram program = context.createProgram(getClass().getResourceAsStream("testkernels.cl")).build(); CLDevice[] programDevices = program.getCLDevices(); assertEquals(contextDevices.length, programDevices.length); - out.println("program devices:"); - for (CLDevice device : programDevices) { - out.println(" "+device.toString()); - out.println(" build log: "+program.getBuildLog(device)); - out.println(" build status: "+program.getBuildStatus(device)); - } + out.println("build log:\n"+program.getBuildLog()); + out.println("build status:\n"+program.getBuildStatus()); String source = program.getSource(); assertFalse(source.trim().isEmpty()); @@ -178,8 +177,6 @@ public class HighLevelBindingTest { program.release(); assertTrue(0 == context.getCLPrograms().size()); -// CLDevice device = ctx.getMaxFlopsDevice(); -// out.println("max FLOPS device: " + device); context.release(); } |