Bugzilla – Attachment 673 Details for
Bug 1112
Missing OpenCL devices with java webstart launched JOCL/JOGL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
simple test code that works correctly when run from command line but fails when launched from webstart
Test.java (text/x-java), 1.59 KB, created by
Tim Barth
on 2014-12-21 21:12:58 CET
(
hide
)
Description:
simple test code that works correctly when run from command line but fails when launched from webstart
Filename:
MIME Type:
Creator:
Tim Barth
Created:
2014-12-21 21:12:58 CET
Size:
1.59 KB
patch
obsolete
>import javax.media.opengl.GLProfile; >import javax.media.opengl.GLCapabilities; > >import com.jogamp.opencl.CLDevice; >import com.jogamp.opencl.CLDevice.Type; >import com.jogamp.opencl.CLProgram; >import com.jogamp.opencl.CLPlatform; > >/** > * A minimal test program that shows webstart problem when both jocl and jogl > * are used. > */ >public class Test { > > public static void main( String [] args ) { > > // get OpenCL platforms and devices > System.out.println("\n \n --------- OpenCL devices BEFORE GLProfile ---------"); > > try{ > CLPlatform.initialize(); > } catch(Exception ex) { > System.out.println(ex); > } > > CLPlatform[] platforms_before = CLPlatform.listCLPlatforms(); > System.out.println("Number of platforms (before GLProfile): " + platforms_before.length); > for(CLPlatform p : platforms_before) { > System.out.println("\n [platform]: " + p); > CLDevice[] devices = p.listCLDevices(); > for(CLDevice d : devices) { > System.out.println("---->[device]: " + d); > } > } > > // get GLProfile > System.out.println("\n \n calling GLProfile..."); > GLProfile glprofile = GLProfile.getDefault(); > > // get OpenCL platforms and devices > System.out.println("\n \n --------- OpenCL devices after GLProfile ---------"); > CLPlatform[] platforms_after = CLPlatform.listCLPlatforms(); > System.out.println("Number of platforms (after GLProfile): " + platforms_after.length); > for(CLPlatform p : platforms_after) { > System.out.println("\n [platform]: " + p); > CLDevice[] devices = p.listCLDevices(); > for(CLDevice d : devices) { > System.out.println("---->[device]: " + d); > } > } > > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1112
:
672
| 673 |
674
|
675
|
676
|
677
|
678
|
679
|
680
|
682
|
683
|
684
|
685