Skip to content

moving jit_variable callsite to lambda body #494

Description

@johnbowen42

Some of our users have expressed concerns with having jit_variable located in the lambda capture list. Our LLVM IR analysis would work equally well if jit_variable became a __host__ __device__ function and was callable from the body of a lambda. Concretely, our interface would change from

auto lambda = [=, a = jit_variable(a)] { printf("%d\n", a); }

to

auto lambda = [=] { a = jit_variable(a); printf("%d\n", a); }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions