If you use save(java. to persist build configurations between
JVM sessions it is highly recommended to call forDevice(com.
or forDevices(com. before building the program.
Driver updates or HW changes can make exact device-to-binary mapping hard, the
builder will drop all unmappable binaries silently. Setting the devices explicitly will
force automatic rebuilds from source in this situation.
com.jogamp.opencl.CLProgramBuilder#createConfiguration() , com.jogamp.opencl.CLProgramBuilder#loadConfiguration(java.io.ObjectInputStream)
| Modifier and Type | Method and Description |
|---|---|
| public CLProgram | |
| public CLProgram | build(CLProgram
The program which should be build. program, CLBuildListener The callback who is notified when the program has built. listener)Builds or rebuilds the program. |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public void | |
| public CLProgramConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration | |
| public CLBuildConfiguration |
| build | back to summary |
|---|---|
| public CLProgram build(CLProgram program) Builds or rebuilds the program.
| |
| build | back to summary |
|---|---|
| public CLProgram build(CLProgram program, CLBuildListener listener) Builds or rebuilds the program.
| |
| clone | back to summary |
|---|---|
| public CLBuildConfiguration clone() Clones this configuration. | |
| forDevice | back to summary |
|---|---|
| public CLBuildConfiguration forDevice(CLDevice device) Adds the device as build target. | |
| forDevices | back to summary |
|---|---|
| public CLBuildConfiguration forDevices(CLDevice... devices) Adds the devices as build target. | |
| reset | back to summary |
|---|---|
| public CLBuildConfiguration reset() Resets this builder's configuration like options, devices and definitions. | |
| resetDefines | back to summary |
|---|---|
| public CLBuildConfiguration resetDefines() Resets this builder's macro definitions. | |
| resetDevices | back to summary |
|---|---|
| public CLBuildConfiguration resetDevices() Resets this builder's device list. | |
| resetOptions | back to summary |
|---|---|
| public CLBuildConfiguration resetOptions() Resets this builder's configuration options. | |
| save | back to summary |
|---|---|
| public void save(ObjectOutputStream oos) throws IOException Saves this configuration to the ObjectOutputStream. The caller is responsible for closing the stream. | |
| setProgram | back to summary |
|---|---|
| public CLProgramConfiguration setProgram(CLProgram program) Sets the program which should be build. | |
| withDefine | back to summary |
|---|---|
| public CLBuildConfiguration withDefine(String name) Adds the definition to the build configuration.
| |
| withDefine | back to summary |
|---|---|
| public CLBuildConfiguration withDefine(String name, Object value) Adds the definition to the build configuration. | |
| withDefines | back to summary |
|---|---|
| public CLBuildConfiguration withDefines(String... names) Adds the definitions to the build configuration. | |
| withDefines | back to summary |
|---|---|
| public CLBuildConfiguration withDefines(Map<String, ? extends Object> defines) Adds the definitions to the build configuration. | |
| withOption | back to summary |
|---|---|
| public CLBuildConfiguration withOption(String option) Adds the compiler option to the build configuration. | |
| withOptions | back to summary |
|---|---|
| public CLBuildConfiguration withOptions(String... options) Adds the compiler options to the build configuration. | |