From bdf1f6dbac967df81879d8730db1132fe184735a Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Thu, 4 Aug 2011 21:20:14 +0200 Subject: fixed another concurrent modification bug after testing on AMD, NV and Intel. --- test/com/jogamp/opencl/HighLevelBindingTest.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/com/jogamp/opencl') diff --git a/test/com/jogamp/opencl/HighLevelBindingTest.java b/test/com/jogamp/opencl/HighLevelBindingTest.java index 2e781ff5..449ccd7b 100644 --- a/test/com/jogamp/opencl/HighLevelBindingTest.java +++ b/test/com/jogamp/opencl/HighLevelBindingTest.java @@ -228,6 +228,11 @@ public class HighLevelBindingTest { CLPlatform platform = CLPlatform.getDefault(version(CL_1_1), type(CPU)); + if(platform == null) { + out.println("test aborted, no CPU for device fission found"); + return; + } + CLDevice[] devices = platform.listCLDevices(); for (CLDevice device : devices) { -- cgit v1.2.3