legate.core.Runtime.find_or_create_library#
- Runtime.find_or_create_library(
- self,
- str library_name,
- ResourceConfig config=None,
- dict default_options=None,
Search for an existing
Library
of a particular name, or create it if it wasn’t found.- Parameters:
library_name (str) – The name of the library to find.
config (ResourceConfig, optional) – The resource configuration to use to create the library if needed. Has no effect if the library is found.
default_options (dict[VariantCode, VariantOptions], optional) – The default variant options to use to create the library if needed. Has no effect if the library is found.
- Returns:
Library – The
Library
instance.bool –
True
if the library was created,False
otherwise.