CLProgramConfigurations and CLBuildConfigurations.
CLProgram#prepare(), createConfiguration(), createConfiguration(com.jogamp.opencl.CLProgram) , loadConfiguration(java.io.ObjectInputStream) , loadConfiguration(java.io.ObjectInputStream, com.jogamp.opencl.CLContext)
| Modifier and Type | Field and Description |
|---|---|
| private transient Map | |
| private final Set | |
| private static final byte[] | |
| private final Set | |
| private transient CLProgram | |
| pack-priv static final long | |
| private String |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public CLProgramBuilder | asBuildConfiguration()
Implements com. CLProgram,
program binaries or sources associated with it.
|
| public CLProgram | build()
Implements com. |
| public CLProgram | build(final CLBuildListener
The callback who will be notified when the program has built. listener)Implements com. |
| public CLProgram | build(final CLProgram
The program which should be build. program)Implements com. |
| public CLProgram | build(final CLProgram
The program which should be build. program, final CLBuildListener The callback who is notified when the program has built. listener)Implements com. |
| public CLProgramBuilder | clone()
Overrides java. Implements com. |
| public static CLBuildConfiguration | |
| public static CLProgramConfiguration | |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. |
| public CLProgramBuilder | forDevice(final CLDevice device)
Implements com. |
| public CLProgramBuilder | forDevices(final CLDevice... devices)
Implements com. |
| public CLProgram | getProgram()
Implements com. |
| public int | |
| public static CLBuildConfiguration | loadConfiguration(final ObjectInputStream
The ObjectInputStream for reading the object. ois)Loads a CLBuildConfiguration. |
| public static CLProgramConfiguration | loadConfiguration(final ObjectInputStream
The ObjectInputStream for reading the object. ois, final CLContext The context used for program initialization. context)Loads a CLProgramConfiguration containing a CLProgram. |
| private void | |
| public CLProgramBuilder | reset()
Implements com. |
| public CLProgramConfiguration | resetDefines()
Implements com. |
| public CLProgramConfiguration | resetDevices()
Implements com. |
| public CLProgramConfiguration | resetOptions()
Implements com. |
| public void | save(final ObjectOutputStream oos)
Implements com. |
| public CLProgramBuilder | setProgram(final CLProgram program)
Implements com. |
| public String | |
| public CLProgramBuilder | withDefine(final String name)
Implements com. |
| public CLProgramBuilder | withDefine(final String name, final Object value)
Implements com. |
| public CLProgramBuilder | withDefines(final String... names)
Implements com. |
| public CLProgramBuilder | withDefines(final Map<String, ? extends Object> defines)
Implements com. |
| public CLProgramBuilder | withOption(final String option)
Implements com. |
| public CLProgramBuilder | withOptions(final String... options)
Implements com. |
| private void |
| binariesMap | back to summary |
|---|---|
| private transient Map<CLDevice, byte[]> binariesMap | |
| defineSet | back to summary |
|---|---|
| private final Set<String> defineSet | |
| NO_BINARIES | back to summary |
|---|---|
| private static final byte[] NO_BINARIES | |
| optionSet | back to summary |
|---|---|
| private final Set<String> optionSet | |
| program | back to summary |
|---|---|
| private transient CLProgram program | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| source | back to summary |
|---|---|
| private String source | |
| CLProgramBuilder | back to summary |
|---|---|
| private CLProgramBuilder() | |
| CLProgramBuilder | back to summary |
|---|---|
| private CLProgramBuilder(final CLProgram program) | |
| CLProgramBuilder | back to summary |
|---|---|
| private CLProgramBuilder(final CLProgram program, final String source, final Map<CLDevice, byte[]> map) | |
| allBinariesAvailable | back to summary |
|---|---|
| private static boolean allBinariesAvailable(final CLProgramBuilder config) | |
| asBuildConfiguration | back to summary |
|---|---|
| public CLProgramBuilder asBuildConfiguration() Implements com. Doc from com. Returns a new instance of of this configuration without a
| |
| build | back to summary |
|---|---|
| public CLProgram build() Implements com. Doc from com. Builds or rebuilds a program.
| |
| build | back to summary |
|---|---|
| public CLProgram build(final CLBuildListener listener) Implements com. Doc from com. Builds or rebuilds a program.
| |
| build | back to summary |
|---|---|
| public CLProgram build(final CLProgram program) Implements com. Doc from com. Builds or rebuilds the program. | |
| build | back to summary |
|---|---|
| public CLProgram build(final CLProgram program, final CLBuildListener listener) Implements com. Doc from com. Builds or rebuilds the program.
| |
| clone | back to summary |
|---|---|
| public CLProgramBuilder clone() Overrides java. Implements com. Doc from com. Clones this configuration.
| |
| createConfiguration | back to summary |
|---|---|
| public static CLBuildConfiguration createConfiguration() Creates a new CLBuildConfiguration. | |
| createConfiguration | back to summary |
|---|---|
| public static CLProgramConfiguration createConfiguration(final CLProgram program) Creates a new CLProgramConfiguration for this program. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| forDevice | back to summary |
|---|---|
| public CLProgramBuilder forDevice(final CLDevice device) Implements com. Doc from com. Adds the device as build target.
| |
| forDevices | back to summary |
|---|---|
| public CLProgramBuilder forDevices(final CLDevice... devices) Implements com. Doc from com. Adds the devices as build target.
| |
| getProgram | back to summary |
|---|---|
| public CLProgram getProgram() Implements com. Doc from com. Returns the program.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| loadConfiguration | back to summary |
|---|---|
| public static CLBuildConfiguration loadConfiguration(final ObjectInputStream ois) throws IOException, ClassNotFoundException Loads a CLBuildConfiguration.
| |
| loadConfiguration | back to summary |
|---|---|
| public static CLProgramConfiguration loadConfiguration(final ObjectInputStream ois, final CLContext context) throws IOException, ClassNotFoundException Loads a CLProgramConfiguration containing a CLProgram. The CLProgram is initialized and ready to be build after this method call. This method prefers program initialization from binaries if this fails or if no binaries have been found, it will try to load the program from sources. If this also fails an appropriate exception will be thrown.
| |
| readObject | back to summary |
|---|---|
| private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException | |
| reset | back to summary |
|---|---|
| public CLProgramBuilder reset() Implements com. Doc from com. Resets this builder's configuration like options, devices and definitions.
| |
| resetDefines | back to summary |
|---|---|
| public CLProgramConfiguration resetDefines() Implements com. Doc from com. Resets this builder's macro definitions.
| |
| resetDevices | back to summary |
|---|---|
| public CLProgramConfiguration resetDevices() Implements com. Doc from com. Resets this builder's device list.
| |
| resetOptions | back to summary |
|---|---|
| public CLProgramConfiguration resetOptions() Implements com. Doc from com. Resets this builder's configuration options.
| |
| save | back to summary |
|---|---|
| public void save(final ObjectOutputStream oos) throws IOException Implements com. Doc from com. Saves this configuration to the ObjectOutputStream. The caller is responsible for closing the stream.
| |
| setProgram | back to summary |
|---|---|
| public CLProgramBuilder setProgram(final CLProgram program) Implements com. Doc from com. Sets the program which should be build.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| withDefine | back to summary |
|---|---|
| public CLProgramBuilder withDefine(final String name) Implements com. Doc from com. Adds the definition to the build configuration.
| |
| withDefine | back to summary |
|---|---|
| public CLProgramBuilder withDefine(final String name, final Object value) Implements com. Doc from com. Adds the definition to the build configuration.
| |
| withDefines | back to summary |
|---|---|
| public CLProgramBuilder withDefines(final String... names) Implements com. Doc from com. Adds the definitions to the build configuration.
| |
| withDefines | back to summary |
|---|---|
| public CLProgramBuilder withDefines(final Map<String, ? extends Object> defines) Implements com. Doc from com. Adds the definitions to the build configuration.
| |
| withOption | back to summary |
|---|---|
| public CLProgramBuilder withOption(final String option) Implements com. Doc from com. Adds the compiler option to the build configuration.
| |
| withOptions | back to summary |
|---|---|
| public CLProgramBuilder withOptions(final String... options) Implements com. Doc from com. Adds the compiler options to the build configuration.
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(final ObjectOutputStream out) throws IOException | |