Bugzilla – Attachment 676 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]
second test code that runs correctly when run from command line and also runs when launched from webstart but is missing OpenCL planform and devices
Test2.java (text/x-java), 1.00 KB, created by
Tim Barth
on 2014-12-21 21:18:36 CET
(
hide
)
Description:
second test code that runs correctly when run from command line and also runs when launched from webstart but is missing OpenCL planform and devices
Filename:
MIME Type:
Creator:
Tim Barth
Created:
2014-12-21 21:18:36 CET
Size:
1.00 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 Test2 { > > public static void main( String [] args ) { > > // 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