Skip to content

Multidimensional zippering thwarts GPU transformations #25533

Open
@e-kayrakli

Description

@e-kayrakli
on here.gpus[0] {
  var D = {1..10, 1..10};
  var A: [D] int;
  @assertOnGpu
  foreach (a,i) in zip(A,D) {
    A[i] = a;
  }

  writeln(A);
}

Fails because of assertOnGpu. It looks like there is some kind of dynamic memory allocation for non-inlined, multidimensional iterators. I don't have a good idea as to what that is or whether there's a bandaid without trying to inline multidimensional zippering.

Note that:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @e-kayrakli

        Issue actions

          Multidimensional zippering thwarts GPU transformations · Issue #25533 · chapel-lang/chapel