Multi Device Compile#

Warning

Experimental features:

  • May be replaced, updated, or removed at any time.

  • Do not require maintaining API/ABI stability of their own additions over time.

  • Do not require conformance testing of their own additions.

Motivation#

Instead of relying on the list of devices used to create a context, provide interfaces which instead take a list of devices. This more closely aligns with PI and OpenCL. Introduced to workaround a regression. May be superseded in future.

Changelog#

Support#

Adapters which support this experimental feature must return the valid string defined in UR_MULTI_DEVICE_COMPILE_EXTENSION_STRING_EXP as one of the options from urDeviceGetInfo when querying for UR_DEVICE_INFO_EXTENSIONS. Conversely, before using any of the functionality defined in this experimental feature the user must use the device query to determine if the adapter supports this feature.

Contributors#