Skip to content

Error on CPU dynamic dispatch #119

Closed

Description

@simonbyrne

It would be handy if there was a mode where dynamic dispatch on a CPU would throw an error.

Activity

  1. vchuravy commented on Sep 9, 2020

    @vchuravy
    Member

    We could add a separate backend that then uses GPUCompiler to do so. Or add tools to use Cthulhu to find dynamic dispatch.

  2. added
    kernels
    pocl
    on Oct 19, 2026
  3. maleadt commented on Oct 19, 2026

    @maleadt
    Member

    Implemented by #556: the CPU backend now compiles kernels with GPUCompiler like the GPU backends, so dynamic dispatch in a kernel is reported as an InvalidIRError ("unsupported dynamic function invocation") on the CPU too.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kernelspocl

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions