aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-01-20 20:43:23 +0100
committerMichael Bien <[email protected]>2010-01-20 20:43:23 +0100
commit7a009264d53a4f9bc02fc01ea3cb12ef6cf432fe (patch)
tree8c320419c669e3b1884d4a29a3d01cfd010b5f54
parentc9e1605e183d7e83af16dc8fac057e58cfc2d29b (diff)
forgot file in last commit.
-rw-r--r--src/com/mbien/opencl/CLContext.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLContext.java b/src/com/mbien/opencl/CLContext.java
index 19e3ef09..30197f37 100644
--- a/src/com/mbien/opencl/CLContext.java
+++ b/src/com/mbien/opencl/CLContext.java
@@ -214,7 +214,15 @@ public class CLContext implements CLResource {
return createProgram(sb.toString());
}
-
+ /**
+ * Creates a program from the given binaries, the program is not build yet.
+ * <br/>Creating a programm will fail if:<br/>
+ * <ul>
+ * <li>the submitted binaries are invalid or can not be loaded from the OpenCL driver</li>
+ * <li>the binaries do not fitt to the CLDevices associated with this context</li>
+ * <li>binaries are missing for one or more CLDevices</li>
+ * </ul>
+ */
public CLProgram createProgram(Map<CLDevice, byte[]> binaries) {
CLProgram program = new CLProgram(this, binaries);
programs.add(program);