Skip to content

Enzyme is not aware of Fortran descriptors #2822

Description

@joewallwork

Flang represents allocatable arrays using descriptor structs containing both differentiable and non-differentiable metadata but Enzyme isn't aware of this distinction. This means that it currently tries to differentiate with respect to implicit integer arguments that come with 'assumed shape' array arguments. This is the deeper issue underpinning #2820.

Making Enzyme aware of Fortran descriptor information would likely be greatly beneficial for improving the user experience in Fortran.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfortranRelated to Enzyme's Fortran bindings

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions