Skip to content

Fix move_dims bug when moving to parameter space#12

Merged
inducer merged 1 commit into
inducer:mainfrom
a-alveyblanc:fix-anonymous-parameter-names
Jul 16, 2026
Merged

Fix move_dims bug when moving to parameter space#12
inducer merged 1 commit into
inducer:mainfrom
a-alveyblanc:fix-anonymous-parameter-names

Conversation

@a-alveyblanc

@a-alveyblanc a-alveyblanc commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

ISL objects must have named parameter dimensions. Current namedisl move_dims behavior blindly moves requested dimensions into parameter space upon request resulting in an error like islpy._isl.Error: call to isl_set_set_dim_name failed: spaces don't match in /project/isl/isl_type_check_equal_space_templ.c:21 from islpy.

This PR fixes the bug by explicitly naming dimensions in the underlying ISL object if the destination is DimType.param. Also adds a regression test.

@inducer
inducer force-pushed the fix-anonymous-parameter-names branch from 5027273 to 07a59a4 Compare July 16, 2026 18:36
@inducer
inducer force-pushed the fix-anonymous-parameter-names branch from 07a59a4 to 1b2c606 Compare July 16, 2026 18:45
@inducer
inducer enabled auto-merge (rebase) July 16, 2026 18:45
@inducer
inducer merged commit f9dbac4 into inducer:main Jul 16, 2026
11 checks passed
@inducer

inducer commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Thx!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants