Skip to content

Use macros in nested functions #377

@simonbyrne

Description

@simonbyrne

I would like to be able to call macros (e.g. @localmem) from functions which are called (perhaps indirectly) from the @kernel function. e.g.
here:
https://github.com/CliMA/ClimaCore.jl/blob/14712189be7c4a2ea8bc329955b219c17c604ca3/src/Operators/spectralelement.jl#L564-L565

I guess we could do this by explicitly passing the secret __ctx__ arg through, but it's not clear that is part of the API.

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