Skip to content

Slang compiler bugs: generic vector crash and polynomial_vectors derivative returns zero #940

@jhelferty-nv

Description

@jhelferty-nv

Summary

Two pre-existing test skips reference Slang compiler bugs without issue tracking.

1. Generic vector explicit type map crash

test_add_vectors_generic_explicit in test_torchintegration.py crashes when calling add_vectors_generic.map("float3", "float3"). The Slang compiler cannot currently infer generic vector types from tensor shapes, and the explicit type map workaround crashes.

2. Polynomial vectors derivative returns zero

The polynomial_vectors case in test_polynomials (also test_torchintegration.py) is skipped because the Slang compiler produces zero derivatives for vector polynomial operations.

Affected tests

In slangpy/tests/slangpy_tests/test_torchintegration.py:

  • test_add_vectors_generic_explicit — all device types, all extra_dims
  • test_polynomials[...-polynomial_vectors_...] — all parametrizations

Notes

These are upstream Slang compiler issues, not SlangPy bugs. This issue tracks the test-side references so they can be re-enabled when the compiler fixes land.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions