Did you know ... Search Documentation:
Pack array -- prolog/array/tuned.pl
PublicShow source

tune_device/2 of library(array/tune) measures the schedule options of a device and keeps them here; device_options/2 puts them over those the device's properties call for.

  • The options are kept by library(persistency) in one file, the flag array_tune_file, by default array_tune/tuned.db under $XDG_CACHE_HOME or ~/.cache; deleting it forgets every device.
  • A device is known by its name, vendor, version and driver version, and its platform's name and version: a new driver is tuned again.
  • An entry holds the version of the tuner that measured it, tune_version/1: one of another version is ignored, the device untuned, when the kernels it measured are no more.
  • The flag array_tuning, at start the environment variable ARRAY_TUNING, true by default, decides whether device_options/2 takes them: the test suite runs without.
 tune_version(-Version) is det
The version of the tuner: entries of another are ignored.
 tuned_options(+Device, -Options) is det
The options kept for the OpenCL device Device, [] when none is or the flag array_tuning is false. Read from the file once per device.
 store_tuned(+Device, +Options) is det
Keep Options for the OpenCL device Device, in place of what was.
 forget_tuned(+Device) is det
Forget the options kept for the OpenCL device Device.
 tune_file(-File) is det
The file the options are kept in.