Skip to content

What's the reason to pass primitive kernel args by reference? #691

Description

@stgeke

It's quite error prone. Example: If the kernel argument is e.g. float one need to pass 0.f instead of simply 0. In other words the data type has to match exactly. It would be nice to pass primitive/scalar variables by value in order to benefit from implicit conversion.

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