Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fn backend copy stencil of tuple fails in nvcc #1781

Open
tehrengruber opened this issue Jun 11, 2024 · 0 comments
Open

fn backend copy stencil of tuple fails in nvcc #1781

tehrengruber opened this issue Jun 11, 2024 · 0 comments

Comments

@tehrengruber
Copy link
Contributor

tehrengruber commented Jun 11, 2024

GT4Py frontend code

@field_operator(backend=build_config.backend, grid_type=GridType.UNSTRUCTURED)
def _velocity_backup(
    u: Vec3VertexKField,
) -> Vec3VertexKField:
    return (
        u[0],
        u[1],
        u[2],
    )

def velocity_backup(config: Config, fields: StateContainer) -> None:
    _velocity_backup(
        u=fields.uvel,
        out=fields.uvel_bck,
        offset_provider=config.mesh.offset_provider,
    )

nvcc version tested: 12.5, 12.1

generated Gridtools C++:
__field_operator__velocity_backup_63e509ab74fa6b5b26de982401856de036ed55ba1c59e03010d298dcd9b3fbe6.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

1 participant