diff options
author | Michael Bien <[email protected]> | 2010-09-15 18:33:21 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-09-15 18:33:21 +0200 |
commit | 91938387529fe220323e0c7472f788c78e1ace72 (patch) | |
tree | ff843ed5b9c26359aa2319d21f2ef60b0dcd216b /src/com/jogamp/opencl/CLPlatform.java | |
parent | 39d98824e916487ae838e3ade8230a3193db1ee9 (diff) |
removed CLContext factory methods with CLPlatform + CLDevice list combinations.
justification:
- information is now no longer needed since every CLDevice knows its CLPlatform
- OpenCL device IDs are not portable between CLPlatforms
changes:
- Context factories will throw CLInvalidPlatformException if the platform of all CLDevices does not match
related changes:
- [persistance] CLProgramBuilder stores now the ICD suffix to be later able to map binaries back to the platform + device
Diffstat (limited to 'src/com/jogamp/opencl/CLPlatform.java')
-rw-r--r-- | src/com/jogamp/opencl/CLPlatform.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLPlatform.java b/src/com/jogamp/opencl/CLPlatform.java index 15d0639f..aef828d1 100644 --- a/src/com/jogamp/opencl/CLPlatform.java +++ b/src/com/jogamp/opencl/CLPlatform.java @@ -207,7 +207,7 @@ public final class CLPlatform { //add device to list for (int n = 0; n < deviceIDs.capacity(); n++) - list.add(new CLDevice(cl, deviceIDs.get(n))); + list.add(new CLDevice(cl, this, deviceIDs.get(n))); } CLDevice[] devices = new CLDevice[list.size()]; |