Skip to content

[FEA] Add support for CPU-GPU agnostic kernel programming #304

@cchapmanbird

Description

@cchapmanbird

Is your feature request related to a problem? Please describe.
Currently, top-level kernels cannot be written in a CPU/GPU agnostic format (in particular, the CPU kernel will fail to compile due to references to numba.cuda). This slows development as near-identical CPU and GPU kernels must be written and separately maintained.

Describe the solution you'd like
I would like support for compiling kernels written with GPU logic on the CPU (guarded appropriately with if statements). Similarly, a way to poll whether the kernel is being executed on CPU or GPU would make this even easier, rather than needing to pass an additional argument to indicate to the internal logic if a CPU or GPU is being used.

Describe alternatives you've considered
I have not found any work-arounds for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions