Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Slice setitem requires NRT in GPU target regions. #23

@DrTodd13

Description

@DrTodd13

local_forcefield_rhs[i, :] = forcefield_rhe[i, :]

The above line will try to generate two code copies....one where it is proven there is no overlap and another where there could be overlap. If there could be overlap then an intermediate array must be created which requires NRT at the moment. So, even if your particular usage doesn't need to allocate it, the analysis to determine that isn't done at compile time but handled at runtime and so will still fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions