Interface PlatformChooser

All Known Implementing Classes:
DefaultPlatformChooser

public interface PlatformChooser
This SPI is called on startup to specify which platform and which devices are used for context creation.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    List<? extends Device>
    chooseDevices(List<? extends Platform> platforms)
    Chooses one or more devices for the opencl context.
  • Method Details

    • chooseDevices

      List<? extends Device> chooseDevices(List<? extends Platform> platforms)
      Chooses one or more devices for the opencl context. All returned devices must belong to the same platform. If the returned list is empty, no context will be created.
      Parameters:
      platforms - the available platforms
      Returns:
      the list of devices