From 03ce3ff819e342b95552c1438ea1269fd30e7176 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 19 Apr 2011 04:12:54 +0200 Subject: CLBuildConfiguration.save(..) should store device index and not the device id. updated javadoc. --- src/com/jogamp/opencl/util/CLBuildConfiguration.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/com/jogamp/opencl/util/CLBuildConfiguration.java') diff --git a/src/com/jogamp/opencl/util/CLBuildConfiguration.java b/src/com/jogamp/opencl/util/CLBuildConfiguration.java index f70f088e..89f59110 100644 --- a/src/com/jogamp/opencl/util/CLBuildConfiguration.java +++ b/src/com/jogamp/opencl/util/CLBuildConfiguration.java @@ -36,6 +36,14 @@ import java.util.Map; /** * Configuration representing everything needed to build an OpenCL program. + *

+ * If you use {@link #save(java.io.ObjectOutputStream)} to persist build configurations between + * JVM sessions it is highly recommended to call {@link #forDevice(com.jogamp.opencl.CLDevice) } + * or {@link #forDevices(com.jogamp.opencl.CLDevice[]) } 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. + *

* @author Michael Bien * @see com.jogamp.opencl.CLProgramBuilder#createConfiguration() * @see com.jogamp.opencl.CLProgramBuilder#loadConfiguration(java.io.ObjectInputStream) -- cgit v1.2.3