Releases: BerkeleyLab/upcxx
Release 2025.10.0
2025.10.31: Release 2025.10.0
- NEW: Experimental APIs for immediate-mode RPC communication, to help avoid
injection stalls in the presence of network congestion.- See docs/implementation-defined.md for more details.
General features/enhancements: (see specification and programmer's guide for full details)
- Updated
upcxx-runsupports launch of smp-conduit jobs via ssh, MPI and PMI on
supported systems, matching the capabilities of (for instance) ibv and ofi.
Infrastructure changes:
- Support for the Cray XC platform and its aries network, deprecated since 2023.9.0,
have been removed. - Correction to install script enables use of LLVM/clang++ version 20 and higher
- Newer embedded GASNet-EX resolves various issues seen when using:
- GNU Compiler Collection (GCC) version 15.1.0, and newer
- AMD ROCm version 6.0, and newer
- HPE's Slingshot Host Software (SHS) version 12.0.1, and newer
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #621: Enforce EX-specific compiler floors
- issue #627: smp-conduit cannot use new spawner support via upcxx-run
- issue #630: HIP-enabled build breaks when HIP_HOME=/usr
- issue #633: CUDA crashes from implicit
~device_allocatorafter finalize - issue #634: Warning regarding redefinition of
__HIP_PLATFORM_AMD__ - issue #635:
upcxx_memberof_generalfailures with smp-conduit and non-fork spawners - issue #636: Unfriendly ZE kinds support when lacking the hardware
- issue #637: use of literal "ar" in bld/Makefile
- issue #638: Build failure with Intel oneAPI 2025+, LLVM 19+
- issue #641: UPC++ configure rejects LLVM-20+ compilers
- issue #642: CMake support triggers warnings with recent CMake
Embeds a GASNet-EX library that addresses the following notable issues
(see the GASNet issue tracker for details):
- bug3421: putv/getv should respect GASNET_VIS_MAXCHUNK
- bug4733: Intermittent exitcode=9 from ssh-spawner
- bug4734: incorrect hwloc-based NIC selection with cxi provider
- bug4752: Incomplete work-around for bug 4376 (FI_EAGAIN when reposting multi-recv buffer)
- bug4753: ofi: race condition in multi-receive message accounting
- bug4765: ucx-conduit flaw in gex_AD_OpNBI for GEX_OP_SET and _GET
- bug4768: memcpy with NULL destination in collectives
- bug4787: GCC-15 errors and warnings regarding incompatible pointers-to-function
- bug4797: Intermittent init-time crash inside gasneti_bootstrapBarrier_am()
- bug4808: gex_EP_BindSegment failures with CUDA device memory and SHS 12.0.1
This library release conforms to the
UPC++ v1.0 Specification, Revision 2023.9.0.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Release 2023.9.0
2023.12.15: Release 2023.9.0
General features/enhancements: (see specification and programmer's guide for full details)
- NEW: Experimental accelerated memory kinds support for Intel GPUs with HPE Slingshot-11
- See INSTALL.md for more information
- Reduce CPU overheads along the round-trip LPC return path in
persona::lpc() - Reduce CPU overheads for some small
copy()operations involving CUDA/HIP GPUs - New
*_device::uuid()query for GPU hardware UUID - Add human-readable memory sizes to shared heap exception messages
- New
sycl_vecaddtarget inexamples/gpu_vecaddperforms vector addition on Level Zero devices
Infrastructure changes:
- The value of
UPCXX_CCS_MAX_SEGMENTSmust fall between the number of segments
loaded at init time (plus some unspecified padding) and 32767. Values outside this
range are silently raised or lowered to meet this requirement. - Support for an additional compiler family on HPE Cray EX systems:
- Intel oneAPI compilers via PrgEnv-intel
- See INSTALL.md for details such as minimum versions.
- Support for the Cray XC platform is now deprecated and will be removed in a
future release.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #594: CCS: Add
--build-idto linker flags on Linux - issue #596: Failure of in-build-tree utils when configured without a default network
- issue #600:
upcxx::local_team_position()returns incorrect results for discontiguous layouts - issue #604: CCS: Uninitialized variable when reading
-Wl,--build-idif algorithm is not sha1 - issue #605: library build failure with GCC 13.1.0
- issue #608: Add device UUID to
Device::kind_info() - issue #609: Accept LPC function object callbacks that can only be invoked by rvalue
- issue #613: Warnings from persona.hpp on
progress_required()with GCC 13.1.0 - issue #616: Linker warning on macos
- issue #617: Spawner warnings (upcxx-run) with Python 3.12
- issue #618: CCS segment limit exceeded on MacOS
- spec issue 104:
discharge()from the restricted context is an error - spec issue 206: Add
future::is_ready()as a synonym forfuture::ready()
Embeds a GASNet-EX library that addresses the following notable issues
(see the GASNet issue tracker for details):
- ofi-conduit now defaults to setting envvars
FI_MR_CACHE_MAX_COUNTand
FI_MR_CACHE_MAX_SIZEfor cxi provider, partially addressing bug 4676. - ibv-conduit now attempts to maximize
RLIMIT_MEMLOCKby default. - bug4172: crash in ucx-conduit atexit handlers when mpi interop is enabled
- bug4413: (partial fix) set
FI_UNIVERSE_SIZE(conflicting provider requirements) - bug4594: UCX should not enable accelerated atomics unconditionally
- bug4598: ucx-conduit + ssh-spawner
GASNET_FREEZEsupport is unusable - bug4655: ucx: bad exits on Summit
- bug4663: failure compiling pmi-spawner with PMIx 4.2.0 and higher
- bug4665: Cray PMI configure detection logic should be smarter
- bug4669: Some
GASNET_OFI_DEVICE_*andGASNET_IBV_PORTS_*settings ignored - bug4670: UCX environment personalized prefix not working as we document
- bug4676: (partial fix) ofi-conduit RMA performance issues (cxi & verbs providers)
- bug4677: Linker warnings from Xcode 15
This library release conforms to the
UPC++ v1.0 Specification, Revision 2023.9.0.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Breaking changes:
- Invoking
discharge()from inside the restricted context is now forbidden,
where previously it could lead to deadlock. discharge()andprogress_required()now default to selecting all personas
active with the calling thread. The optional argument can override this behavior.- Member function
future::ready()has been renamed tofuture::is_ready(), for
consistency with similar function names elsewhere in the library.
The old function name is now deprecated and may be removed in a future release.
Release 2023.3.0
2023.03.31: Release 2023.3.0
Improvements to GPU memory kinds:
- NEW: Experimental support for Intel GPUs using oneAPI Level Zero,
see INSTALL.md for details.configure --enable-zeflag activates newze_devicememory kind- This memory kind implementation is currently reference-only and is
believed to be functionally correct, but has not been tuned for performance. copy()operations onze_devicememory are currently staged through
host memory and do not yet leverage network-direct RDMA.ze_deviceincludes new experimental member functions designed to streamline
interoperability with other portions of the oneAPI software ecosystem.
- New
device_allocator::segment_{size,used}()queries for device segment status - New
*_device::kind_info()query for GPU hardware configuration - New experimental support for
hip_deviceusing HIP-over-CUDA on Nvidia GPUs.
General features/enhancements: (see specification and programmer's guide for full details)
- Enhancements to
dist_object:- Allow
dist_object<T>to be constructed non-collectively in an inactive state,
including before UPC++ initialization, with or without aTvalue. - Add queries of whether a
dist_objectholds a value or is active. - Enable emplacement of a new
Tvalue into an existingdist_object<T>. - Enable an inactive
dist_objectto be activated. dist_object<T>is now MoveAssignable whenTis MoveConstructible
and MoveAssignable.
- Allow
- New
upcxx -infooption suppresses compilation and outputs detailed information
regarding the UPC++/GASNet-EX libraries and configuration in-use. - New
upcxx-infoconvenience script is an alias forupcxx -info local_teammembers are now officially guaranteed to have consecutive rank
indexes inworld().- Console output from
upcxx::init()in verbose mode now compresses process
identification information to one line perlocal_team. entry_barrierarguments removed fromexperimental::relo::verify_{segment,all}
Infrastructure changes:
- Support for additional compiler families on HPE Cray EX systems:
- AMD compilers via PrgEnv-amd and PrgEnv-aocc
- Nvidia compilers via PrgEnv-nvidia and PrgEnv-nvhpc
- See INSTALL.md for details such as minimum versions.
- AMD "AOCC" compilers 2.3+ are now supported on Linux/x86_64 hosts.
- UPC++ library build now outputs a GASNet-EX configuration summary near the end.
- Integration with Berkeley UPC is now deprecated and may be removed in a future release.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #348: libstdc++ enforcement for PGI and NVHPC compilers
- issue #519: libupcxx build should echo GASNet configure summary
- issue #530: Share
gex_MK_tobjects between endpoints - issue #531: Consider supporting HIP-over-CUDA
- issue #532: Support
--enable-hipon PGI/NVHPC - issue #543: Add
upcxx-info - issue #547: MoveAssignment operators and self-assignment
- issue #548: Fix undocumented dependency arc involving
experimental::relo::verify_{segment,all} - issue #564: Improve guide's local-team example
- issue #565:
upcxx-run --helpfails in a build directory - issue #566: re-configure in a dirty build tree often does not apply new settings
- issue #572: Fix unintended user-level progress in
experimental::relo::verify_{segment,all} - issue #573: Assertion failure in
segmap_cache::lookup_at_idxfor multi-threaded CCS - issue #574: Document
local_team-is-always-contiguous-in-world behavior - issue #575: Improve guide's broadcast example
- issue #584: Confusing behavior if
timeoutis present on front-end but not on compute node - issue #587:
upcxx::optionalconstexproperators lack assertions - spec issue 192: Move semantics for distributed objects
Embeds a GASNet-EX library that addresses the following notable issues
(see the GASNet issue tracker for details):
- New opt-in work-around for bug 4461 (failure of the Slingshot-11 cxi
provider under certain AM traffic patterns) replaces a less effective
workaround introduced in GASNet-EX 2022.9.0. - bug4157: ibv XRC deadlock under certain loads
- bug4179: ofi: failures specific to verbs provider
- bug4427: ofi-conduit failures with
RDMADISSEMbarrier - bug4507: ofi "message too long" errors on enormous RMA
- bug4517: ofi/verbs 'no associated AM handler function' errors with libfabric 1.11 or older
- bug4527: Erroneous/confusing startup warning with psm2 provider
- bug4567: broken support for psm2 provider in libfabric < 1.10
- bug4596: smp-conduit lacks multi-process
GASNET_FREEZEsupport - bug4597: ofi-conduit + ssh-spawner
GASNET_FREEZEsupport is unusable - bug4606: current
aprunnot recognized by gasnetrun
This library release conforms to the
UPC++ v1.0 Specification, Revision 2023.3.0.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Breaking changes:
- Calls to
{cuda,hip}_device::device_n()are now prohibited beforeupcxx::init() - There is now a runtime limit on verified code segments, defaulting to 256,
controlled by theUPCXX_CCS_MAX_SEGMENTSenvironment variable.
Release 2022.9.0
2022.09.30: Release 2022.9.0
General features/enhancements: (see specification and programmer's guide for full details)
- NEW: Memory kinds support for HPE Cray EX systems with AMD and NVIDIA GPUs
now leverages GPUDirect RDMA (GDR) and ROCmRDMA acceleration technology on
supported networks. See INSTALL.md for full details. upcxx-runverbosity levels have been adjusted, moving some of the spammier/non-scalable
output to verbosity level three (i.e.,upcxx-run -vvv).- Fixed several compatibility issues with the ROCm/HIP SDK
- Several robustness and performance improvements to CCS RPC support
Serialization changes:
- Added new
upcxx::optionaltemplate that provides the same interface as
C++17std::optional, and new overloads of[Reader]::read_into()
anddeserializing_iterator<T>::deserialize_into()that deserialize
into aupcxx::optional. - The signature for the user-defined
deserialize()member-function template
used for custom class serialization has changed. This interface has been generalized to
support emplacement into managed storage, as well as construction in raw memory.
The old signature is now deprecated and may be removed in a future release. - Serialization has been implemented for
std::reference_wrapper<T>, which now
works analogously to serialization for other reference types. - Added new
[Reader]::read_overwrite(),[Reader]::read_sequence_overwrite(),
anddeserializing_iterator<T>::deserialize_overwrite()functions
that work analogously to their*_into()counterparts, but additionally
destruct target objects before deserializing into them. - See the specification for further details.
Infrastructure changes:
- Improved configure defaults have reduced the complexity of building
on an HPE Cray EX system. See INSTALL.md for details. - Added initial/experimental support for the RISC-V architecture.
If you have an interest in this platform, please contact us! - The set of tests run by
make checkhas been adjusted to improve coverage and balance.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #501: Poor failure behavior for tests with RANKS=1
- issue #539: PG: dmap-quiescence-test hangs with one process
- issue #544: CCS: Segment verification not clearing previous
bad_verificationflag - issue #545: CCS: Allow
experimental::relo::debug*()beforeinit() - issue #546: CCS: Level 2 cache thread safety
- issue #549: UPC++ headers choke hipcc device-mode compilation
- issue #550: ROCm/HIP headers break the GNU
__noinline__attribute - issue #551: CCS: Thread safety race in segment verification
- issue #552: Compilation errors for
writeandread_intoon a multidimensional array - issue #553: CUDA 11.0.3 fails to recognize aggregate initialization in some contexts
- issue #554: UPC++ headers choke ROCm 5.x hipcc device-mode compilation
- issue #555: Error running HIP/ROCm examples
- issue #556: CCS: Fix race condition at segment verification exit
- issue #562: nvc++ 22.5 misparses serialization.hpp
- spec issue 185: Prohibit deprecated initiation of internal/none collectives in progress
- spec issue 195: Semantics of
read_(sequence_)into()with respect to destruction - spec issue 196: Managed storage for use with
deserialize_into() - spec issue 197: Redesign Custom Serialization
deserialize()for emplacement - spec issue 198: Requirement that deserialized types be MoveConstructible is too strong
- spec issue 199: Add serialization through
std::reference_wrapper
Embeds a GASNet-EX library that addresses the following notable issues
(see the GASNet issue tracker for details):
- Scaling improvements to startup costs (memory and time) in all conduits
- bug4083: incorrect GatherAll algorithm selection at large scale
- bug4434: RFE: runtime adjustment of ofi-conduit MaxMedium
- bug4432: OFI provider selection issues
- bug4448: smp-conduit incorrectly duplicates
GASNET_VERBOSEENVoutput - bug4450: GCC 12.x bogus dangling-pointer warning building UPC++ tests
- bug4451: GCC 12.x bogus use-after-free warning from UPC++ future library
- bug4454: Scaling issues in
gasneti_segmentLimit() - bug4490: startup hang for large
GASNET_MAX_SEGSIZEand huge pages > 4MB - bug4496: SEGV in
gasnete_coll_pf_tm_reduce_TreePutSegfor reduce-to-all - bug4509: Non-scalable reduction temporaries
This library release conforms to the
UPC++ v1.0 Specification, Revision 2022.9.0.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Breaking changes:
- Initiating collective operations with a progress level of
internalornonefrom within
the restricted context (within a callback running inside progress), an action
deprecated with a runtime warning since 2020.10.0, is now prohibited with a fatal error.
For details, see spec issue 169. experimental::relocation::rebuild_cache()has been removed.[Reader]::read_into(),[Reader]::read_sequence_into(), and
deserializing_iterator<T>::deserialize_into()on typed
(non-void*) pointers to non-TriviallyDestructible types are now
prohibited with a static assertion. Use*_overwrite()instead, or
insert an explicit cast tovoid*. See spec issue 195 for details.
Release 2022.3.0
2022.03.31: Release 2022.3.0
Improvements to GPU memory kinds:
This release features a number of synergistic improvements to the UPC++ memory kinds
feature that supports efficient PGAS communication involving GPU memory buffers.
- NEW: Memory kinds support for AMD GPUs using ROCm/HIP, see INSTALL.md.
Newconfigure --enable-hipflag activates newupcxx::hip_deviceclass.
This includes accelerated support forupcxx::copy()using ROCmRDMA on
recent InfiniBand network hardware - see GASNet-EX documentation for details. cuda_deviceandhip_deviceare derived from new abstract base classgpu_deviceand
device_allocator<Device>is now derived from new abstract base classheap_allocator.
These help enable vendor-agnostic polymorphism in use of memory kinds.- New optional interface to GPU memory kinds simplifies startup code, e.g.:
auto gpu_alloc = make_gpu_allocator(2UL<<20);
creates a 2MB device segment with a "smart" choice of GPU, and:
auto gpu_alloc = make_gpu_allocator<hip_device>(2UL<<20, 2);
creates adevice_allocatorfor a segment on HIP GPU number 2. - Several new members have been added to
device_allocatorto provide convenience
and support the above improvements. See the specification for details. - These improvements are demonstrated in
example/gpu_vecadda renamed version of
thecuda_vecaddkernel example which now supports either GPU vendor.
General features/enhancements: (see specification and programmer's guide for full details)
- Experimental support for making RPC calls to functions in executable code segments
other than the core UPC++ application, such as those in dynamic libraries. For
more information, see docs/ccs-rpc.md. - Performance improvements to
atomic_domainoperations using shared-memory bypass. - New query
upcxx::local_team_position()provides job topology information teamandatomic_domain<T>are now DefaultConstructible and have a newis_active()queryteam,atomic_domain<T>,cuda_deviceanddevice_allocator<Device>are now MoveAssignable
Infrastructure changes:
- NEW initial support for the HPE Cray EX platform
- Complete and correct, but still untuned
- Supports Slingshot-10 and Slingshot-11 NICs via GASNet-EX's
experimental support for the OFI network API (aka "libfabric"). - Supports PrgEnv-gnu and PrgEnv-cray.
- See INSTALL.md for instructions to enable the
appropriate support for this platform.
- Memory kinds implementation internals have been factored and restructured, simplifying
the addition of new memory kinds in future releases.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #288: implementation details of future lead to type errors using
when_allwith inference - issue #494: Intermittent rpc-ctor-trace failure on
copy-get-d2d(as_rpc) - issue #512: ADL fails with
when_all - issue #518: configure should warn or prohibit mixed-family/mixed-version compilers
- issue #522: Runtime crash along exception path for
rpc()returning non-emptyoperation_cx::as_future - issue #523: Round-trip RPC lacking
operation_cxshould generate an error - issue #527: Raise PGI version floor to 19.3
- issue #528:
cuda_device::destroy()incorrectly perturbs CUDA Driver context stack - issue #534: Prune unnecessary system header includes from upcxx.hpp
- issue #537: Numerical error in Kokkos-based 3d heat conduction examples
- spec issue 173: Add
upcxx::local_team_position() - spec issue 188: Add
cuda_device::device_n() - spec issue 189: Add MoveAssignable to resource object types
- spec issue 190:
device_allocatorconstructor has several problems
Embeds a GASNet-EX library that addresses the following notable issues
(see the GASNet issue tracker for details):
- bug4211: intermittent udp-conduit exit-time hangs on macOS
- bug4227: Bogus maybe-uninit warning building libgasnet with GCC-11.1+
- bug4297: incorrect nbrhd construction for some multi-homed hosts
- bug4321: Intermittent "EBADENDPOINT" failures in single-node udp-conduit
- bug4345: Multiply defined symbols in aries-conduit w/ recent compilers
- bug4360: Insufficient fixed exit timeouts (ucx, ibv, ofi)
- bug4361: (partial fix) reductions on DT_USER of unbounded length
- bug4366: intermittent exit-time assertion failures from debug memcheck
This library release conforms to the
UPC++ v1.0 Specification, Revision 2022.3.0.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Breaking changes:
- UPC++ headers no longer have the undocumented side-effect of including
<cassert>.
Users are highly encouraged to useUPCXX_ASSERT()instead, which offers
more features and automatically tracksUPCXX_CODEMODE.
See docs/implementation-defined.md for more details. - UPC++ headers no longer have the undocumented side-effect of including some
system headers. User programs should directly include system headers they need. - Library classes
team,cuda_device,atomic_domain<T>anddevice_allocator<D>
are now allfinaland may not be sub-classed. atomic_domain<T>construction with an empty ops set is now prohibited.- The three-argument
device_allocatorconstructor has been deprecated in favor
of a new constructor that swaps argument order but provides equivalent functionality.
The deprecated overload will be removed in an upcoming release. - An active
device_allocator<Device>object must now be deactivated prior to
destruction, via eitherDevice::destroy()ordevice_allocator::destroy(). - RPC calls across code segments must now use multi-segment CCS mode. Cases where
this "magically" worked are now prohibited. See docs/ccs-rpc.md
for more details. - The oldest-supported PGI compiler version is raised to 19.3 on all platforms.
bench/cuda_microbenchmarkperformance test renamed tobench/gpu_microbenchmark- Prior to this release, the configure script would permit values of
CXXand
CCwhich had different families or versions (as long as they were
link-compatible). This was particularly easy to do on a Linux system if
specifying a non-defaultCXXwhile retaining the defaultCC=gcc. Such
mixed configurations are now prohibited. While there is a configure option
to convert the enforcement to a warning, such configurations are officially
unsupported.
Release 2021.9.0
2021.09.30: Release 2021.9.0
Improvements to on-node communication:
This release features a number of synergistic optimizations that streamline
interprocess communication operations that are satisfied on-node using
shared memory bypass. For details, see: doi:10.25344/S42C71
- New
as_eager_future(),as_defer_future(),as_eager_promise(), and
as_defer_promise()calls for requesting eager or deferred notification of
future and promise completions. - Existing
as_future()andas_promise()calls now default to eager
notification for improved performance. - New
UPCXX_DEFER_COMPLETIONmacro for controlling whetheras_future()and
as_promise()request eager or deferred notification (see
implementation-defined.md for details). - New overloads of fetching atomics that avoid overheads of non-empty futures
and promises. - Performance improvements to contiguous RMA (
rput,rget) using shared-memory bypass. - Performance improvements to
upcxx::copy(), especially for cases amenable to
shared-memory bypass optimizations and/or not involving device memory. - Performance improvements to
global_ptrlocalization queries and operations,
especially for smp-conduit.
General features/enhancements: (see specification and programmer's guide for full details)
upcxx::rpcandupcxx::rpc_ffcalls that encounter shared heap exhaustion
while allocating internal buffers will now throw an exception instead of crashing.
For details, see implementation-defined.md- New
team::createfactory constructs teams with less communication thanteam::split
when each participant can enumerate the membership of its own new team. - The following future operations are now permitted before UPC++ initialization:
make_future(),to_future(),when_all(), assignment and copy/move
constructors. - Added implementation-defined macros
UPCXX_ASSERTandUPCXX_ASSERT_ALWAYS - New
UPCXX_KIND_CUDAfeature macro indicates the presence of CUDA support. - Improve error reporting on failure to open a
cuda_device. - Add debug codemode checking for exceptions thrown out of user callbacks into
library code, which is prohibited by the specification. - Notable GASNet performance improvements for InfiniBand (ibv) network.
bench/cuda_microbenchmarkperformance test expanded and improved
Infrastructure changes:
- Multiple improvements to default network selection
- In addition to selection at configure time, the default network can now
be selected as late as themake installstep. - In support of the behavior above, the
make allandmake install
steps now report the default and available networks. - The build logic for Linux now makes an effort to perform more intelligent
selection of a default network, rather than always defaulting tosmp. - The default networks for macOS and Cray XC remain unchanged:
smpandaries, respectively.
- In addition to selection at configure time, the default network can now
- The build logic now diagnoses conditions in which
CXXmust be a
MPI-compatible (wrapper) compiler rather than deferring discovery of the
problem untilmake check,make test_installor even to user application
link time. - The "NVIDIA HPC SDK" (or "nvhpc") compiler family is now supported on
x86_64 and ppc64le hosts for version 20.9 and newer. - Intel oneAPI compilers v2021.1.2+ are now supported on x86_64 hosts.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #242: Lack of backpressure in RPC injection leads to shared memory-exhaustion crashes
- issue #299: de-duplication of installed headers
- issue #354: improve default network selection
- issue #464: assert when calling
global_ptr<T,kind>::local()on device pointers - issue #468: Harmless unused variable warnings on clang with
-O -Wall - issue #473: Divide by zero in serialization when writing a sequence of
objects that have emptyUPCXX_SERIALIZED_{FIELDS,VALUES} - issue #477:
copy(remote_cx::as_rpc)may invoke callback in the wrong context - issue #479: intermittent lpc-stress/opt failures on ARM64
- issue #481: Consider use of
__builtin_launder - issue #482: SEQ mode incorrectly requires master as
current_personafor shared allocation - issue #487: Renaming unspecified internal
UPCXX_macros and identifiers - issue #488: Configure-time failure when mixing GCC + Intel
- issue #490: Clang pedantic warnings on template destructors building the library
- issue #495: failures with ibv-conduit recv thread enabled
- issue #496: Configure mishandling quotes in compiler and flags settings
- issue #500: Invalid teams created by split() are not handled according to spec
- issue #502: Discontiguous job layouts now require
configure --enable-discontig-ranks - spec issue 176: Change RPC injection to throw an exception on memory exhaustion
Embeds a GASNet-EX library that addresses the following notable issues
(see the GASNet issue tracker for details):
- bug4148: ibv/GDR completion issues with multiple communication paths
- bug4150: ibv/GDR premature local completion of Puts from device memory
- bug4209: ibv: improve ALC with respect to bounce buffer use
- bug4230: ssh-spawer de-duplication logic is flawed
- bug4263: remove
AD_MY_NBRHDcheck on smp-conduit - bug4265: Collective scratch management is not thread safe
- bug4266:
gex_Coll_ReduceToAllNBis not thread safe - bug4292: ucx and aries can leak events from AM Long
- bug4330: ibv conduit incorrectly implements
HIDDEN_AM_CONCURRENCY_LEVEL
This library release conforms to the
UPC++ v1.0 Specification, Revision 2021.9.0.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Breaking changes:
- Existing
as_future()andas_promise()calls now default to eager
notification for improved performance. Deferred notification can be requested
on a per-call basis by changingas_future()/as_promise()calls to
as_defer_future()/as_defer_promise(), or on a translation-unit basis by
defining theUPCXX_DEFER_COMPLETIONmacro to 1 prior to including
upcxx/upcxx.hpp. - Many unspecified macros and identifiers that are defined by the public headers
have been renamed from aUPCXX_prefix toUPCXXI_. This naming change reflects
the fact these undocumented tokens are INTERNAL to the implementation and carry
no guarantee of stability or functionality. Users are strongly advised to avoid
direct reference to any such interfaces.
Release 2021.3.0
2021.03.31: Release 2021.3.0
General features/enhancements: (see specification and programmer's guide for full details)
- The optimizations and features supporting CUDA GPUs initially previewed in
the 2020.11.0 Memory Kinds Prototype have been hardened and incorporated
into this release. - On platforms with NVIDIA-branded CUDA devices and NVIDIA- or Mellanox-branded InfiniBand
network adapters (such as OLCF Summit),upcxx::copy()uses GPUDirect RDMA
(GDR) hardware support to offload RMA operations involving GPU memory. - See INSTALL.md for instructions to enable UPC++ CUDA support
and for a list of detailed requirements and known issues. - New
shared_segment_{size,used}queries return snapshots of the host shared segment
size and utilization. - Updates to GASNet's support for InfiniBand networks (ibv-conduit):
- Significantly improved performance of both RPC and RMA operations under
certain conditions - Measurable reduction in startup time for medium-scale and large-scale
jobs with wide SMP nodes. - Heterogeneous multirail configurations no longer reduce the size of
upcxx::local_team().
- Significantly improved performance of both RPC and RMA operations under
Improvements to RPC and Serialization:
- The RPC implementation has been tuned and now incurs one less payload copy on
ibv and aries networks on moderately sized RPCs. Additionally, internal
protocol cross-over points have been adjusted on all networks. These changes
may result in noticeable performance improvement for RPCs with a total size
(including serialized arguments) under about 64kb (exact limit varies with network). - The default aries-conduit max AM Medium size has been doubled to ~8kb to improve
performance of the RPC eager protocol. See aries-conduit README for details on
the available configure/envvar knobs to control this quantity. - Arguments to
rpc,rpc_ffandremote_cx::as_rpcare now serialized synchronously
before return from the communication-injection call, regardless of asynchronoussource_cx
completions (which are now deprecated forrpcandrpc_ff). - Streamlined some overheads associated with
remote_cx::as_rpcand RPC replies.
Infrastructure changes:
- The
installscript, deprecated since 2020.3.0, has been removed. make check(and similar) now accept comma-delimitedNETWORKSsettings,
in addition to space-delimited.- The PGI C++ compiler (through version 20.4) remains fully supported. The re-branded
variant of this host compiler (i.e.pgc++ornvc++released as NVIDIA HPC
SDK 20.7 and later) is not currently supported, due to critical defects.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #25: Remove non-public symbols from top-level
upcxx::namespace - issue #241: Intermittent validation failures in test/copy.cpp
- issue #245: persona-example deadlocks when --with-mpsc-queue=biglock
- issue #276: Use C++ protection features to enforce abstraction boundaries
- issue #382: Expose shared heap usage at runtime
- issue #408: Cannot register multiple completions against a non-copyable results type
- issue #421:
upcxx::copy()breaks with PGI optimizer - issue #422: Improve configure behavior for GASNet archives lacking Bootstrap
- issue #423: Prohibit communication using non-master personas in SEQ mode
- issue #427: Crash after
write_sequence()where serialized element size is
not a multiple of alignment - issue #428: Regression in
rpc(team,rank,..,view)overload resolution - issue #429: upcxx library exposes dlmalloc symbols
- issue #430: cannot disable the default network
- issue #432: Some
upcxx::copy()cases do notdischarge()properly - issue #440: Invalid GASNet call while deserializing a global ptr
- issue #447: REGRESSION: bulk
upcxx::rputwith l-value completions - issue #450:
upcxx::lpccallback return of rvalue reference not decayed as specified - issue #455: Performance bug in
rput(remote_cx::as_rpc(...))with "bare"remote_cx - issue #459: Move unspecified identifiers into a new
upcxx::experimentalnamespace - issue #460: Implementation relies on
std::result_of, which is deprecated in
C++17 and removed in C++20
Embeds a GASNet-EX library that addresses the following notable issues
(see the GASNet issue tracker for details):
- bug4194: ibv: unnecessarily slow startup
- bug4208: ibv: unfortunate multi-rail interactions with PSHM and XRC
This library release conforms to the
UPC++ v1.0 Specification, Revision 2021.3.0.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Breaking changes:
- When compiling for the default "seq" threading mode, interprocess
communication may only be initiated by the primordial thread,
and now additionally requires use of the master persona.
For details, see docs/implementation-defined.md. - Array types are now prohibited as the element-type template argument to
upcxx::new_andupcxx::new_array. - The following unspecified identifiers, previously in the
upcxxnamespace,
have all been moved to the newupcxx::experimentalnamespace.
These interfaces all remain unspecified and experimental, and they are
subject to change without notice in future revisions:broadcast_nontrivial,reduce_one_nontrivial,reduce_all_nontrivial- The non-fast
op_*reduction constants (e.g.op_add) os_envsaydestroy_heapandrestore_heap
- The unspecified/obsolete
UPCXX_REFLECTED()macro andupcxx::wait()function have been removed. - Many other unspecified internal functions and members have been renamed.
Applications should avoid depending on unspecified functions or members, which
are subject to change without notice. This in particular includes anything in
the upcxx sub-namespaces (e.g.upcxx::detailandupcxx::backend).
Memory Kinds Prototype 2020.11.0
2020.10.30: Memory Kinds Prototype 2020.11.0
This is a prototype release of UPC++ demonstrating the new GPUDirect RDMA (GDR)
accelerated implementation of memory kinds for NVIDIA-branded CUDA devices with
NVIDIA- or Mellanox-branded InfiniBand network adapters.
As a prototype, it has not been validated as widely as normal stable releases,
and may include features and behaviors that are subject to change without notice.
This prototype is recommended for any users who want to exercise the memory kinds
feature with CUDA-enabled GPUs. All other UPC++ users are recommended to use the
latest stable release.
See INSTALL.md for instructions to enable UPC++ CUDA support
and for a list of caveats and known issues with the current GDR-accelerated
implementation.
Recent changes to the memory kinds feature:
- Relax the restriction that a given CUDA device ID may only be opened once per process
usingcuda_device. - Add a
device_allocator::is_active()query, and fix several subtle defects with
inactive devices/allocators. - Resource exhaustion failures that occur while allocating a device segment now throw
upcxx::bad_segment_alloc, a new subclass ofstd::bad_alloc. - Debug-mode
global_ptrchecking for device pointers has been strengthened when
using GDR-accelerated memory kinds.
Requirements changes:
- The PGI/NVIDIA C++ compiler is not supported in this prototype release, due to a
known problem with the optimizer. Users are advised to use a supported version
of the Intel, GNU or LLVM/Clang C++ compiler instead. See INSTALL.md
for details on supported compilers.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #221:
upcxx::copy()mishandling of private memory arguments - issue #421: Regression with
upcxx::copy(remote_cx::as_rpc)
This prototype library release conforms to the
UPC++ v1.0 Specification, Revision 2020.11.0-draft.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Breaking changes:
device_allocatorconstruction is now a collective operation with user-level progress.device_allocator::device_id()is now restricted toglobal_ptrarguments
with affinity to the calling process.
Release 2020.10.0
2020.10.30: Release 2020.10.0
General features/enhancements: (see specification and programmer's guide for full details)
- Added support for
global_ptr<const T>with implicit conversion
fromglobal_ptr<T>toglobal_ptr<const T>. Communication
operations now take aglobal_ptr<const T>where appropriate. local_team()creation duringupcxx::init()in multi-node runs is now more scalable
in time and memory, providing noticeable improvements at large scale.team::destroy()now frees GASNet-level team resources that were previously leaked.when_all(...)now additionally accepts non-future arguments and implicitly
promotes them to trivially ready futures (as withto_future) before performing
future concatenation. The main consequence iswhen_all()can now replace
most uses ofmake_futureandto_futurefor constructing trivially ready futures,
and continue to serve as the future combinator.- Static checking has been strengthened in a number of places, to help provide or improve
compile-time diagnostics for incorrect or otherwise problematic use cases. - Added many precondition sanity checks in debug mode, to help users find
bugs in their code when compiling with-codemode=debug(aka,upcxx -g). - Shared heap exhaustion in
upcxx::new_(array)now throwsupcxx::bad_shared_alloc(a type
derived fromstd::bad_alloc) which provides additional diagnostics about the failure.
Improvements to RPC and Serialization:
- Added support for serialization of reference types where the referent is Serializable.
- RPCs which return future values experience one less heap allocation and
virtual dispatch in the runtime's critical path. - RPCs which return future values no longer copy the underlying data prior to serialization.
dist_object<T>::fetch()no longer copies the remote object prior to serialization.- Added
deserializing_iterator<T>::deserialize_intoto avoid copying large
objects when iterating over aviewof non-TriviallySerializable elements. - Objects passed as lvalues to RPC will now be serialized directly from the provided
object, reducing copy overhead and enabling passing of non-copyable (but movable) types. - Non-copyable (but movable) types can now be returned from RPC by reference
Build system changes:
- Improved compatibility with heap analysis tools like Valgrind (at some
potential performance cost) using new configure option --enable-valgrind configure --enable-Xis now equivalent to--with-X, similarly for--disable/--without- Tests run by
make checkand friends now enforce a 5m time limit by default
Requirements changes:
- The minimum required
gccenvironment module version for PrgEnv-gnu and
PrgEnv-intel on a Cray XC has risen from 6.4.0 to 7.1.0. - The minimum required Intel compiler version for PrgEnv-intel on a Cray XC
has risen from 17.0.2 to 18.0.1.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #151: Validate requested completions against the events supported by an
operation - issue #262: Implement view buffer lifetime extension for
remote_cx::as_rpc - issue #288: (partial fix) future-producing calls like
upcxx::make_futurenow
return the exact typefuture<T>. Sole remaining exception iswhen_all. - issue #313: implement
future::{result,wait}_reference - issue #336: Add
static_assertto prohibit massive types as top-level arguments to RPC - issue #344: poor handling for
make install prefix=relative-path - issue #345: configure with single-dash arguments
- issue #346:
configure --cross=cray*ignores--with-cc/--with-cxx - issue #355:
upcxx::view<T>broken with asymmetric deserialization ofT - issue #361:
upcxx::rpcbroken when mixing arguments ofT&&anddist_object& - issue #364: Stray "-e" output on macOS and possibly elsewhere
- issue #375: Improve error message for C array types by-value arguments to RPC
- issue #376: warnings from GCC 10.1 in reduce.hpp for boolean reductions
- issue #384: finalize can complete without invoking progress, leading to obscure leaks
- issue #386:
upcxx_memberof_generalprohibits member designators that end with an array access - issue #388:
deserialized_value()overflows buffer for massive static types - issue #389:
future::result*()should assert readiness - issue #391: View of containers of
UPCXX_SERIALIZED_FIELDScrashes in deserialization - issue #392: Prevent silent use of by-value communication APIs for huge types
- issue #393: Improve type check error for l-value reference args to RPC callbacks
- issue #400:
UPCXX_SERIALIZED_VALUES()misoptimized by GCC{7,8,9} with -O2+ - issue #402: Cannot use
promise<T>::fulfill_result()when T is not MoveConstructible - issue #405: regression:
upcxx::copy(T*,global_ptr<T>,size_t)fails to compile - issue #407: RPC breaks if an argument asymmetrically deserializes to a type that
itself has asymmetric deserialization - issue #412: entry barriers deadlock when invoked inside user-level progress callbacks
- issue #413: LPC callback that returns a reference produces a future containing
a dangling reference - issue #419: Ensure correct/portable behavior of
upcxx::initialized()in static destructors - spec issue 104: Provide a universal variadic factory for future
- spec issue 158: prohibit reference types in
global_ptrandupcxx_memberof_general - spec issue 160: Deadlocks arising from synchronous collective calls with internal progress
- spec issue 167:
dist_object<T>::fetchdoes not correctly handleTwith asymmetric serialization - spec issue 169: Deprecate collective calls inside progress callbacks
- spec issue 170: Implement
upcxx::in_progress()query
This library release conforms to the
UPC++ v1.0 Specification, Revision 2020.10.0.
All currently specified features are fully implemented.
See the UPC++ issue tracker for status of known bugs.
Breaking changes:
- Build-time
UPCXX_CODEMODE/-codemodevalue "O3" has been renamed to "opt".
For backward compatibility, the former is still accepted. upcxx_memberof(_general)(gp, mem)now produce aglobal_ptr<T>whenmem
names an array whose element type isT.atomic_domainconstruction now has user-level progress- Initiating collective operations with progress level
userfrom inside the restricted
context (within a callback running inside progress) is now prohibited, and diagnosed
with a runtime error. Most such calls previously led to silent deadlock. - Initiating collective operations with a progress level of
internalornonefrom within
the restricted context (within a callback running inside progress) is now a deprecated
behavior, and diagnosed with a runtime warning. For details, see spec issue 169.
Bug-fix release 2020.3.2
2020.07.17: Bug-fix release 2020.3.2
New features/enhancements:
- Shared heap exhaustion in
upcxx::new_(array)now throwsupcxx::bad_shared_alloc(a type
derived fromstd::bad_alloc) which provides additional diagnostics about the failure.
Notable issues resolved
(see the UPC++ issue tracker for details):
- issue #343: Guarantee equality for default-constructed invalid
upcxx::team_id - issue #353: configure: automatically cross-compile on Cray XC
- issue #356:
SERIALIZED_{FIELDS|VALUES}incorrectly require public constructors - issue #369:
completion_cx::as_future()typically leaks - issue #371:
team_ids are not "universal" as documented - issue #373: No
pythonin$PATHin recent Linux distros - issue #380: Compile regression on bulk
upcxx::rputwith source+operation completions
Breaking changes:
- Configure-time envvar
CROSShas been renamed toUPCXX_CROSS.
For backward compatibility, the former is still accepted when the latter is unset. - Construction of
upcxx::team_idis no longer Trivial (was never guaranteed to be).
It remains DefaultConstructible, TriviallyCopyable, StandardLayoutType, EqualityComparable