Library and Context
UCC_jll.is_available Function
is_available()Return whether the artifact is available for the current platform.
sourceUCC.is_available() :: BoolIs the UCC library available?
sourceUCC.version Function
UCC.version() :: VersionNumberGet the version of the loaded UCC library.
sourceUCC.version_string Function
UCC.version_string() :: StringGet the version string of the loaded UCC library.
sourceUCC.Library Type
UCC.Library(; thread_mode, coll_types, reduction_types, sync_type,
config::LibraryConfig) :: LibraryInitialize a UCC library instance. Every keyword is optional and only passed to UCC when given:
thread_mode::single,:funneledor:multiple(or the correspondingUCC_THREAD_*value)coll_types: bitmask ofUCC_COLL_TYPE_*the application will usereduction_types: bitmask of1 << UCC_OP_*the application will usesync_type:UCC_NO_SYNC_COLLECTIVESorUCC_SYNC_COLLECTIVES
External links
ucc_init,ucc_lib_get_attr,ucc_finalize
UCC.LibraryConfig Type
UCC.LibraryConfig(; env_prefix=nothing, filename=nothing) :: LibraryConfigRead the UCC library configuration from the environment (variables prefixed by UCC_ or <env_prefix>_UCC_) and, optionally, a configuration file. Values can be changed with config[name] = value.
External links
ucc_lib_config_read,ucc_lib_config_modify
UCC.thread_mode Function
UCC.thread_mode(lib::Library) :: LibUCC.ucc_thread_mode_tThe thread mode provided by lib.
UCC.attributes Method
UCC.attributes(lib::Library) :: LibUCC.ucc_lib_attr_tQuery the attributes of lib selected by mask (by default the thread mode and supported collective types; UCC 1.8 does not report reduction or sync types).
UCC.Context Type
UCC.Context([oob::AbstractOOB]; lib, type, sync_type, id,
config::ContextConfig) :: ContextCreate a UCC context. With an oob, the context is wired up with all OOB participants (this blocks until every rank has called Context); a Team can then be created over the same ranks with Team(ctx). Without lib, a default Library is created and destroyed together with the context.
Optional keywords (only passed to UCC when given):
type:UCC_CONTEXT_EXCLUSIVEorUCC_CONTEXT_SHAREDsync_type:UCC_NO_SYNC_COLLECTIVESorUCC_SYNC_COLLECTIVESid: unique context id
External links
ucc_context_create,ucc_context_destroy
UCC.ContextConfig Type
UCC.ContextConfig(lib::Library; filename=nothing) :: ContextConfigRead the UCC context configuration for lib from the environment and, optionally, a configuration file. Values can be changed with config[name] = value (UCC core) or config[component, name] = value (a specific component, e.g. config["tl/ucp", "TUNE"] = "...").
External links
ucc_context_config_read,ucc_context_config_modify
UCC.progress Function
UCC.progress(ctx::Context)Progress outstanding operations on ctx. Blocking calls in this package progress the context themselves; this is only needed when polling nonblocking Requests manually.
External links
ucc_context_progress
UCC.attributes Method
UCC.attributes(ctx::Context) :: LibUCC.ucc_context_attr_tQuery the type, sync type, address and global work buffer size of ctx.
UCC.address Function
UCC.address(ctx::Context) :: Vector{UInt8}The serialized address of ctx, which can be exchanged to create teams without an OOB.
UCC.work_buffer_size Function
UCC.work_buffer_size(ctx::Context) :: IntSize in bytes of the global work buffer that one-sided collectives require.
sourceCleanup
UCC.destroy Function
UCC.destroy(x)Release the UCC resources held by x (a Library, Context, Team, …). Resources of a parent object are only released once all of its children have been destroyed as well.
UCC.free_deferred Function
UCC.free_deferred()Release the UCC resources of objects that were garbage collected without an explicit UCC.destroy. Finalizers never call into UCC themselves (they may run on any thread, concurrently with UCC calls elsewhere), so call this from the task that drives UCC, while no other thread is using UCC.
Dropped collectives that are still in flight stay deferred until they complete.
sourceErrors
UCC.LibUCC.UCCError Type
UCCError(code::ucc_status_t)A UCC call returned the error status code.