Misc CL fixes.

This commit is contained in:
Ioannis Tsakpinis 2010-09-30 23:36:37 +00:00
parent 662abf403b
commit 76f2e5bf67
9 changed files with 88 additions and 32 deletions

View file

@ -54,6 +54,9 @@ public class HelloOpenCL {
CL.create();
final List<CLPlatform> platforms = CLPlatform.getPlatforms();
if ( platforms == null )
throw new RuntimeException("No OpenCL platforms found.");
for ( CLPlatform platform : platforms ) {
System.out.println("\n-------------------------");
System.out.println("NEW PLATFORM: " + platform.getPointer());