Skip to content
Snippets Groups Projects

Extend mdspan interface and fix mdspan memory layout mapping

Merged Frederik Hennig requested to merge fhennig/mdspan-fixes into master
All threads resolved!

This MR fixes the way memory layouts for std::mdspan are modelled and inferred.

  • Add the layout_policy template parameter to the StdMdspan class.
  • Use layout_strided by default (cannot infer layout from field instance, because of pystencils#117)
  • Extend mdspan AugExpr interface
  • Extend mdspan documentation
  • Add test cases for checking shape and strides of mdspans created from fixed-shape fields
  • Add test cases for checking shape and strides of mdspans created from var-shape fields
Edited by Frederik Hennig

Merge request reports

Pipeline #71135 passed

Pipeline passed for ea5bac92 on fhennig/mdspan-fixes

Test coverage 85.00% (0.00%) from 1 job
Approval is optional

Merged by Christoph AltChristoph Alt 5 months ago (Dec 18, 2024 1:47pm UTC)

Merge details

  • Changes merged into master with 94fbd0a9 (commits were squashed).
  • Deleted the source branch.

Pipeline #71136 passed

Pipeline passed for 94fbd0a9 on master

Test coverage 85.00% (0.00%) from 1 job

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    Compare with previous version

  • Christoph Alt resolved all threads

    resolved all threads

  • Christoph Alt mentioned in commit 94fbd0a9

    mentioned in commit 94fbd0a9

  • Please register or sign in to reply
    Loading