Skip to content

Conversation

@jeongseok-meta
Copy link
Contributor

Summary:
Fix rasterizer test std::bad_alloc failures in conda-forge caused by misconfigured drjit::DefaultSize.

  • Compile-time: static_assert kSimdPacketSize is 1-64 and power of 2
  • Runtime: MT_THROW_IF for allocations >256M elements
  • Better errors: MT_THROW with size, extents, and SIMD config on bad_alloc
  • Test diagnostics: SCOPED_TRACE showing SIMD configuration

Fixes OneQuad, EyeZIsZero, Splats, AlphaMatte test failures in conda-forge while maintaining compatibility with GitHub CI and fbsource builds.

Differential Revision: D84325103

Summary:
Fix rasterizer test std::bad_alloc failures in conda-forge caused by misconfigured drjit::DefaultSize.

- Compile-time: static_assert kSimdPacketSize is 1-64 and power of 2
- Runtime: MT_THROW_IF for allocations >256M elements
- Better errors: MT_THROW with size, extents, and SIMD config on bad_alloc
- Test diagnostics: SCOPED_TRACE showing SIMD configuration

Fixes OneQuad, EyeZIsZero, Splats, AlphaMatte test failures in conda-forge while maintaining compatibility with GitHub CI and fbsource builds.

Differential Revision: D84325103
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 10, 2025
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Oct 10, 2025

@jeongseok-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84325103.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant