Skip to content

Add support for complex numbers as kernel arguments #85

Open

Description

@diptorupd

We will eventually need to support complexes as well.

This is not straightforward with ctypes: https://stackoverflow.com/questions/13373291/complex-number-in-ctypes

So down the road we might just introduce our own scalar type in dpctl.

Originally posted by @oleksandr-pavlyk in #80 (comment)

Activity

  1. changed the title [-]Add support for complexe numbers as kernel arguments[/-] [+]Add support for complex numbers as kernel arguments[/+] on Oct 4, 2020
  2. added this to the gold milestone on Oct 5, 2020
  3. diptorupd commented on Mar 1, 2024

    @diptorupd
    ContributorAuthor

    Complex number support for numba-dpex works using current dpctl. Numba represents complex values as a 2-tuple of floats and we pass the arguments as flattened arguments to kernels. Thus, no change is needed on dpctl's side.

  4. ndgrigorian commented on Mar 21, 2025

    @ndgrigorian
    Collaborator

    Reopening as, while not needed for numba-dpex, dpctl supporting complex kernel arguments would be a nice feature in the future

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions