Repository navigation
SyclReproSum 1.2.4
SyclReproSum 1.2.4 works around an Intel IGC miscompilation affecting
two-fold (K=2) binned-accumulator merges. It also moves AMD libspirv
compatibility handling into a project-local Clang resource overlay and adds
Intel Arc Pro B70 benchmark results.
The library remains header-only, source-compatible with version 1.2.3,
C++17, and based on the Ahrens-Demmel-Nguyen (ADN) binned floating-point
format. The binned primitives remain adaptations of the ReproBLAS reference
implementation.
Highlights
- Work around an Intel IGC
K=2merge miscompilation with a loop-free
specialization. - Add double- and single-precision regression coverage across shuffled
inputs and multiple work-group sizes. - Create the AMD libspirv compatibility layout under the project build
directory instead of modifying the compiler installation. - Re-emit the AMD signed-character libspirv bitcode with the expected
AMDGCN target triple. - Add Intel Arc Pro B70 throughput and cross-device reproducibility results.
- Update the encoded library version to 1.2.4.
Intel IGC K=2 merge workaround
Intel IGC's PropagateCmpUniformity pass could miscompile the generic
two-iteration merge loop used by K=2 accumulators, merging bin zero twice
and skipping bin one.
Version 1.2.4 provides an explicit, loop-free K=2 specialization. It
preserves the original bin additions, carry updates, evaluation order, and
final renormalization. The generic merge path for K > 2 is unchanged.
New double- and single-precision regression tests cover:
- The minimal
1 + 1reduction. - Cancellation-heavy inputs with a small residual signal.
- Multiple shuffled input orders.
- Work-group sizes 64, 128, and 256.
- Bit-identical results across all tested configurations.
The workaround does not introduce FMA, reassociation, or order-dependent
rounding.
Project-local AMD resource overlay
Previous releases created an AMD libspirv compatibility alias inside the
selected compiler's resource directory.
Version 1.2.4 instead creates a configuration-specific overlay under:
build/clang-resource-<configuration-key>
The overlay reuses the compiler's normal resources while re-emitting
libspirv.l64.signed_char.bc with the expected amdgcn-amd-amdhsa target
triple. It is selected automatically for AMD-enabled builds and removed by
make clean.
This avoids modifying the DPC++ installation and requires write access only
to the project build directory. Existing AMD_GPU_ARCH and AMD_LIBSPIRV
overrides remain available.
Intel Arc Pro B70 results
The README now includes Intel Arc Pro B70 Level Zero measurements using
100-million-element inputs.
| Operation | Double ADN / baseline | Float ADN / baseline |
|---|---|---|
adn::sum |
21.1 / 52.6 (2.5x slower) | 47.4 / 85.5 (1.8x slower) |
adn::cumsum |
2.945 / 18.047 (6.1x slower) | 5.806 / 40.862 (7.0x slower) |
The documented wide-range cross-device sum produces
0x430FC878C605717F on the Intel Arc Pro B70, matching the NVIDIA, AMD,
Intel iGPU, and Intel CPU results, including after input shuffling.
Reproducibility and numerical behavior
Version 1.2.4 restores the intended K=2 behavior on affected Intel IGC
versions without changing the public API.
The accumulator bin layout, deposit, renormalization, and conversion paths
are unchanged. Within the documented capacity:
- Scalar sums remain independent of input permutation, work-group size,
scheduling, and validated device. - Cumulative prefixes remain bit-identical across runs, supported
work-group sizes, and validated devices for a fixed input sequence. - The last cumulative output remains bit-identical to the corresponding
scalar sum. - NaN, infinity, signed-zero, subnormal, and capacity behavior is unchanged.
Testing and validation
The complete suite now contains:
- 176 correctness cases and four throughput benchmarks per selected device.
- Ten cross-device reproducibility cases.
- One version test.
- 731 total tests on the four-device validation system.
Validation covered:
- NVIDIA RTX PRO 4500 Blackwell via CUDA (
sm_120). - AMD Radeon Pro W7500 via HIP (
gfx1102). - Intel Graphics [0x7d67] via Level Zero.
- Intel Core Ultra 7 265 CPU via OpenCL.
Release validation results:
- CUDA, SPIR-V, and AMDGCN example and test fat binaries built successfully.
- The example ran successfully.
- All 715 non-benchmark tests passed.
- The same 715 tests passed under hostile host floating-point modes.
- Both unsafe-device variants passed all expected rejection tests.
- The compile-time unsafe evaluation-mode rejection check passed.
- All 731 tests passed, including sixteen 100-million-element benchmarks.
- The GitHub clang-format workflow and release-diff whitespace checks passed.
Compatibility and upgrade notes
- Version 1.2.4 is source-compatible with version 1.2.3.
- Existing
adn::sum,adn::cumsum, andadn::validate_environmentcalls
require no changes. - Users running
K=2reductions on Intel GPUs should upgrade. K > 2merge behavior is unchanged.- AMD-enabled builds no longer modify the compiler resource directory.
- Backend switches, architecture overrides, and runtime device selection are
unchanged. - No compiled library is required; update
repro_sum.hppand continue
compiling as C++17 with SYCL.
Changes since 1.2.3
- Add a loop-free
K=2merge specialization. - Work around the Intel IGC two-iteration merge-loop miscompilation.
- Add double- and single-precision
K=2regression tests. - Move AMD libspirv handling into a project-local resource overlay.
- Re-emit the signed-character libspirv bitcode with the AMDGCN target triple.
- Add Intel Arc Pro B70 benchmark and reproducibility results.
- Update the encoded library version from 1.2.3 to 1.2.4.
Full comparison:
v1.2.3...v1.2.4
Attribution and license
SyclReproSum is licensed under the BSD 3-Clause License. Portions of the
binned accumulator primitives are adapted from ReproBLAS, Copyright 2016,
University of California. See THIRD_PARTY_NOTICES for the complete
attribution and license terms.