All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Support builds for single-node multi-device setups without MPI by specifying
-DCELERITY_ENABLE_MPI=0
in CMake (#282) - Add
celerity::once
tag type for host tasks (equivalent torange<0>{}
) as a replacement foron_master_node
(#282) - Replace
celerity::distr_queue
withcelerity::queue
, which permits multiple instances and aligns closer with SYCL (#283) - The runtime can be explicitly shut down using
celerity::shutdown()
, complementingcelerity::init()
(#283) handler::parallel_for(size_t, [size_t,] ...)
now acts as a shorthand forparallel_for(range<1>, [id<1>,] ...)
(#288)- Experimental support for the AdaptiveCpp generic single-pass compiler (#294)
- Constructor overloads to the
access::neighborhood
range mapper for reads in 3/5/7-point stencil codes (#292)
- Celerity now requires C++20 (#291)
- Automatic runtime shutdown, which was previously triggered by the last queue / buffer / host object going out of scope,
is now postponed until process termination (
atexit()
). This allows multiple non-overlapping sections of Celerity code to execute in the same process (#283) - Celerity warns on excessive calls to
queue::wait()
ordistr_queue::slow_full_sync()
in a long running program. This operation has a much more pronounced performance penalty than its SYCL counterpart (#283) - On systems that do not support device-to-device copies, data is now staged in linearized buffers for better performance (#287)
- The
access::neighborhood
built-in range mapper now receives arange
instead of a coordinate list (#292)
- Host-initialized buffers will not read from user-provided memory after the last reference to the buffer has been dropped (#283)
celerity::distr_queue
is deprecated in favor ofcelerity::queue
(#283)- The coordinate-list constructors of
access::neighborhood
are deprecated in favor of therange
overload (#292)
This release includes changes that may require adjustments when upgrading:
- A single Celerity process can now manage multiple devices. This means that on a cluster with 4 GPUs per node, only a single MPI rank needs to be spawned per node.
- The previous behavior of having a separate process per device is still supported but discouraged, as it incurs additional overhead.
- It is no longer possible to assign a device to a Celerity process using the
CELERITY_DEVICES
environment variable. Please use vendor-specific mechanisms (such asCUDA_VISIBLE_DEVICES
) for limiting the set of visible devices instead. - We recommend performing a clean build when updating Celerity so that updated submodule dependencies are properly propagated.
We recommend using the following SYCL versions with this release:
- DPC++: 89327e0a or newer
- AdaptiveCpp (formerly hipSYCL): v24.06
- SimSYCL: master
See our platform support guide for a complete list of all officially supported configurations.
- Add support for SimSYCL as a SYCL implementation (#238)
- Extend compiler support to GCC (optionally with sanitizers) and C++20 code bases (#238)
celerity::hints::oversubscribe
can be passed to a command group to increase split granularity and improve computation-communication overlap (#249)- Reductions are now unconditionally supported on all SYCL implementations (#265)
- Add support for profiling with Tracy, via
CELERITY_TRACY_SUPPORT
and environment variableCELERITY_TRACY
(#267) - The active SYCL implementation can now be queried via
CELERITY_SYCL_IS_*
macros (#277)
- All low-level host / device operations such as memory allocations, copies, and kernel launches are now represented in the single Instruction Graph for improved asynchronicity (#249)
- Celerity can now maintain multiple disjoint backing allocations per buffer, so disjoint accesses to the same buffer do not trigger bounding-box allocations (#249)
- The previous implicit size limit of 128 GiB on buffer transfers is lifted (#249, #252)
- Celerity now manages multiple devices per node / MPI rank. This significantly reduces overhead in multi-GPU setups (#265)
- Runtime lifetime is extended until destruction of the last queue, buffer, or host object (#265)
- Host object instances are now destroyed from a runtime background thread instead of the application thread (#265)
- Collective host tasks in the same collective group continue to execute on the same communicator, but not necessarily on the same background thread anymore (#265)
- Updated the internal libenvpp dependency to 1.4.1 and use its new features (#271)
- Celerity's compile-time feature flags and options are now written to
version.h
instead of being passed on the command line (#277)
- Scheduler tracking structures are now garbage-collected after buffers and host objects go out of scope (#246)
- The previous requirement to order accessors by access mode is lifted (#265)
- SYCL reductions to which only some Celerity nodes contribute partial results would read uninitialized data (#265)
- Celerity does not attempt to spill device allocations to the host if resizing buffers fails due to an out-of-memory condition (#265)
- The
CELERITY_DEVICES
environment variable is removed in favor of platform-specific visibility specifiers such asCUDA_VISIBLE_DEVICES
(#265) - The obsolete
experimental::user_benchmarker
infrastructure has been removed (#268).
We recommend using the following SYCL versions with this release:
- DPC++: 61e51015 or newer
- hipSYCL: d2bd9fc7 or newer
- Add new environment variable
CELERITY_PRINT_GRAPHS
to control whether task and command graphs are logged (#197, #236) - Introduce new experimental
for_each_item
utility to iterate over a celerity range (#199) - Add new environment variables
CELERITY_HORIZON_STEP
andCELERITY_HORIZON_MAX_PARALLELISM
to control Horizon generation (#199) - Add support for out-of-bounds checking for host accessors (also enabled via
CELERITY_ACCESSOR_BOUNDARY_CHECK
) (#211) - Add new
debug::set_task_name
utility for naming tasks to aid debugging (#213) - Add new
experimental::constrain_split
API to limit how a kernel can be split (#212) - Add GDB pretty-printers for common Celerity types (#207)
distr_queue::fence
andbuffer_snapshot
are now stable, subsuming theexperimental::
APIs of the same name (#225)- Celerity now warns at runtime when a task declares reads from uninitialized buffers or writes with overlapping ranges between nodes (#224)
- Introduce new
experimental::hint
API for providing the runtime with additional information on how to execute a task (#227) - Introduce new
experimental::hints::split_1d
andexperimental::hints::split_2d
task hints for controlling how a task is split into chunks (#227)
- Horizons can now also be triggered by graph breadth. This improves performance in some scenarios, and prevents programs with many independent tasks from running out of task queue space (#199)
- In edge cases, command graph generation would fail to generate await-push commands when re-distributing reduction results (#223)
- Command graph generation was missing an anti-dependency between push-commands of partial reduction results and the final reduction command (#223)
- Don't create multiple smaller push-commands instead of a single large one in some rare situations (#229)
- Unit tests that inspect logs contained a race that would cause spurious failures (#234)
- Improve command graph testing infrastructure (#198)
- Overhaul internal grid region and box representation, remove AllScale dependency (#204)
We recommend using the following SYCL versions with this release:
- DPC++: 61e51015 or newer
- hipSYCL: d2bd9fc7 or newer
See our platform support guide for a complete list of all officially supported configurations.
- Remove outdated workarounds for unsupported SYCL versions (#200, 85b7479c)
- Fix the behavior of dry runs (
CELERITY_DRY_RUN_NODES
) in the presence of fences or graph horizons (#196, 069f5029) - Compatibility with recent hipSYCL >= d2bd9fc7 (#200, b174df7d)
- Compatibility with recent versions of Intel oneAPI and Arc-series dedicated GPUs (requires deactivating mimalloc, #203, c1519624)
- Work around a bug in DPC++ that breaks selection of the non-default device (#210, 2b652f8)
We recommend using the following SYCL versions with this release:
- DPC++: 61e51015 or newer
- hipSYCL: 24980221 or newer
See our platform support guide for a complete list of all officially supported configurations.
- Introduce new experimental
host_object
andside_effect
APIs to express non-buffer dependencies between host tasks (#68, 7a5326a) - Add new
CELERITY_GRAPH_PRINT_MAX_VERTS
config options (#80, d3dd722) - Named threads for better debugging (#98, 25d769d, #131, ff5fbec)
- Add support for passing device selectors to distr_queue constructor (#113, 556b6f2)
- Add new
CELERITY_DRY_RUN_NODES
environment variable to simulate the scheduling of an application on a large number of nodes (without execution or data transfers) (#125, 299ebbf) - Add ability to name buffers for debugging (#132, 1076522)
- Introduce experimental
fence
API for accessing buffer and host-object data from the main thread (#151, 6b803f8) - Introduce backend system for vendor-specific code paths (#162, 750f32a)
- Add
CELERITY_USE_MIMALLOC
CMake configuration option to use the mimalloc allocator (enabled by default) (#170, 234e3d2) - Support 0-dimensional buffers, accessors and kernels (#163, 0685d94)
- Introduce new diagnostics utility for detecting erroneous reference captures into kernel functions, as well as unused accessors (#173, ff7ed02)
- Introduce
CELERITY_ACCESSOR_BOUNDARY_CHECK
CMake option to detect out-of-bounds buffer accesses inside device kernels (enabled by default for debug builds) (#178, 2c738c8) - Print more helpful error message when buffer allocations exceed available device memory (#179, 79f97c2)
- Update spdlog to 1.9.2 (#80, a178828)
- Overhaul logging mechanism (#80, 1b19bfc)
- Improve graph dependency tracking performance (#100, c9dab18)
- Improve task lookup performance (#112, 5139256)
- Introduce epochs as a mechanism for in-graph synchronization (#86, 61dd07e)
- Miscellaneous performance improvements (#115, 9a099d2, #137, b0254fd, #138, 02258c0, #145, f0b53ce)
- Improve scheduler performance by reducing lock contention (#111, 4547b5f)
- Improve graph generation and printing performance (#133, 8122798)
- Use libenvpp to validate all
CELERITY_*
environment variables (#158, b2ced9b) - Use native ("USM") pointers instead of SYCL buffers for backing buffer allocations (#162, 44497b3)
- Implement
range
andid
types instead of aliasing SYCL types (#163, 0685d94) - Disallow in-source builds (#176, 0a96d15)
- Lift restrictions on reductions for DPC++ (#175, efff21b)
- Remove multi-pass mechanism to allow reference capture of buffers and host-objects into command group functions, in alignment with the SYCL 2020 API (#173, 0a743c7)
- Drastically improve performance of buffer data location tracking (#184, adff79e)
- Switch to distributed scheduling model (#186, 0970bff)
- Passing
sycl::device
todistr_queue
constructor (use a device selector instead) (#113, 556b6f2) - Capturing buffers and host objects by value into command group functions (capture by reference instead) (#173, 0a743c7)
allow_by_ref
is no longer required to capture references into command group functions (#173, 0a743c7)
- Removed support for ComputeCpp (discontinued) (#167, 68367dd)
- Removed deprecated
host_memory_layout
(usebuffer_allocation_window
instead) (#187, f5e6510) - Removed deprecated kernel dimension template parameter on
one_to_one
,fixed
andall
range mappers (#187, 40a12a4) - Kernels can no longer receive
sycl::item
(usecelerity::item
instead), this was already broken in 0.3.2 (#163, 67ccacc)
- Improve performance for buffer transfers on IBM Spectrum MPI (#114, c60527f)
- Increase size limit on individual buffer transfer operations from 2 GiB to 128 GiB (#153, 972682f)
- Fix race between creating collective groups and submitting host tasks (#152, 0a4fca5)
- Align read-accessor
operator[]
with SYCL 2020 spec by returning const-reference instead of value (#156, 5011ded)
- Add microbenchmark suite (#100, c2853ca, #107, 51f5bc5)
- Update Catch2 to v3.3 (#102, 9a6f19d, #129, 0d1e36a, #162, 5aa33d6)
- Add all_tests unit test executable (#104, c12b052)
- Add custom CSV and Markdown reporters (#109, ba3af8b)
- Introduce automatic clang-tidy checks for CI (#128, ca94bee)
- Add support for ComputeCpp 2.7.0 and 2.8.0 with stable and experimental compilers. (2831b2a)
- Add support for using local memory with ComputeCpp. (8e2fce4)
- Print Celerity version upon runtime startup. (0681c16)
- Print warning when too few logical cores are available. (113e688)
- Fix race condition around reference-capture in matmul example. (76f49c9)
- Reduce hardware requirements for maximum work-group size in tests. (008a868, f0cf3f42)
- Update Catch2 submodule to v2.13.8 as a bugfix. (26ca0895)
- Do not create empty chunks when splitting tasks with a small execution range in dimension 0. (15fa9293)
- Correctly handle empty buffers and buffer requirements with empty ranges. (ad99522b)
- Suppress unhelpful deprecation warnings around
sycl::atomic
from DPC++. (39dacdf5) - Throw when submitting compute tasks with an empty execution range instead of accepting SYCL misbehavior. (baa242ad)
We recommend Clang >= 10.0 as the host compiler to avoid false-positive deprecation warnings.
- Remove blanket-statement error message upon early buffer deallocation, which in many cases is now legal. (6851145)
- Properly apply horizons to collective host task order-dependencies. (4488724)
- Avoid race between horizon task generation and horizon command execution. (f670868)
- Fix data race in
task_manager::notify_horizon_executed
(only in debug builds). (f641bcb) - Don't rely on static destruction order for
user_benchmarker
. (d1c9e51) - Restructure
wave_sim
example to avoid host side race condition for certain--sample-rate
configurations. (d226b95) - Hard-code paths for CMake dependencies in installed Celerity config to avoid mismatches. (4e88657)
We recommend using the following SYCL versions with this release:
- ComputeCpp: 2.6.0 (an earlier version of this document used to recommend "2.6.0 or newer")
- DPC++: 7735139 or newer
- hipSYCL: 7b00e2e or newer
- Introduce aliases or custom implementations in
::celerity
namespace for most supported SYCL features (e.g.celerity::access_mode
,celerity::item
and so on). (c36f55e, 44c181e, f7ca077, 2588d7e, fd58422, e706db3, 7552445) CELERITY_PROFILE_KERNEL
is now also supported for hipSYCL. (0521e9e)- Add support for unnamed kernels (hipSYCL and DPC++ only). (7a3431e)
- Add support for nd-range
parallel_for
alongsidelocal_accessor
(hipSYCL and DPC++ only) andgroup
functions. (2588d7e) - Add support for SYCL 2020-style reductions (hipSYCL with required patch, DPC++ partially, ComputeCpp unsupported). (e79f765)
- Add support for DPC++ as a SYCL implementation. (44c181e)
- The API for accessing distributed data from within host tasks (previously
known as
host_memory_layout
) is streamlined into a newbuffer_allocation_window
API. (ad66329) - Add support for multi-dimensional subscript operators for host and device accessors. (c720ffb)
- Add support for SYCL 2020-style accessor constructors as well as new
access_mode
andtarget
enums. (c36f55e)
- Celerity will now fall back to using any available SYCL devices instead of aborting in case no GPUs can be found. (0d87461)
- Improve performance of some applications with large task graphs. (1417296)
- Rename
CELERITY_PROFILE_OCL
toCELERITY_PROFILE_KERNEL
. (ae94ef4) - Improve handling of configuration environment variables such as
CELERITY_DEVICES
. (fc595d2) - Terminate execution in case an asynchronous SYCL error is reported. (10d3d75)
- Remove dependency on Boost. (ae66f22)
- Report an error when more than one build configuration (Debug, Release, ...) of Celerity is installed to the same location. (2c12944)
host_memory_layout
and associated functions are being deprecated in favor ofbuffer_allocation_window
. (ad66329)- Range mappers no longer require kernel and buffer dimensions to be explicitly specified. Doing so will now trigger a deprecation warning. (50dd62d)
- Remove support for
CELERITY_FORCE_WG
configuration environment variable. (afe81cc)
- Fix a crash occurring when creating new buffers after a number of tasks have already been processed. (d33c8d2)
- Forward correct offset / range to SYCL accessors internally. (349d58b)
- Fix a crash that could happen when building a Debug executable against a Release installation of Celerity or vice-versa. (2c12944)
- Fix a bug that could cause nested SYCL command groups to be submitted. (750b28a)
- Re-enable ComputeCpp workaround for explicit copy operations. (f58b146b)
- Fix compilation on Windows by avoiding the
TRUE
literal as enum value. (8de922e9) - Fix compilation with Boost < 1.67 by using backwards compatible header. (a51c98a7)
- Following the release of the SYCL 2020 provisional spec, master access tasks have been retired in favor of host tasks. These are scheduled in command groups in the same fashion as compute tasks. In addition to master-only execution, they allow distributing host code amongst nodes. (bbf90637)
- Celerity buffers are now fully virtualized, meaning that your Celerity application only allocates as much memory as required on each node. (8a203872)
- (Experimental) Collective host tasks allow integration of distributed I/O by providing an infrastructure to call MPI collective APIs like parallel HDF5 from within asynchronous Celerity tasks. (bbf90637)
- Properly support 3D kernels. (e5543bd0)
- Celerity now uses (and requires) C++17. (5eec3e02)
- Celerity should now perform better with large command graphs. (5d876a5a)
- Celerity should now be able to automatically assign a unique compute device to each node on a host, given that a sufficient number of devices is available. (9d3da06e)
- Don't print an error message regarding buffer lifetime for trivial programs (i.e., programs containing no tasks). (ae133458)
- Removed
celerity::queue::with_master_access
, which is replaced by the more powerfulcelerity::handler::host_task
. (bbf90637)
Hello, World! This is our first release!